Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck in reweighting #541

Open
kys-sheng opened this issue May 3, 2023 · 0 comments
Open

Stuck in reweighting #541

kys-sheng opened this issue May 3, 2023 · 0 comments

Comments

@kys-sheng
Copy link

I tried running the2a_parton_level_analysis.ipynband it get stuck at the:

miner.run(
    sample_benchmark="sm",
    mg_directory=mg_dir,
    mg_process_directory="./mg_processes/signal1",
    proc_card_file="cards/proc_card_signal.dat",
    param_card_template_file="cards/param_card_template.dat",
    run_card_file="cards/run_card_signal_small.dat",
    #run_card_file="cards/run_card.dat",
    log_directory="./logs/signal",
    python_executable="python3",
)

And after having a look at the log file at logs/signal/run_0.log , I noticed that it stucked at

  === Results Summary for run: run_01 tag: tag_1 ===

     Cross-section :   0.001037 +- 3.345e-06 pb
     Nb of events :  10000
 
store_events
INFO: Storing parton level results 
INFO: End Parton 
reweight -from_cards
INFO: Extracting the banner ... 
INFO: process: u d > u d h  
INFO: options: / a z QCD=0 QED=99 NP=2, h > a a QCD=0 QED=99 NP=0 
INFO: Running Reweighting 
change output default
change helicity False
launch --rwgt_name=w
INFO: detected model: EWdim6-full. Loading... 
INFO: generating the square matrix element for reweighting 
INFO: generate u d > u d h / a z QCD=0 QED=99 NP=2, h > a a QCD=0 QED=99 NP=0 ; 
INFO: Done 0.9513 
Do you want to edit a card (press enter to bypass editing)?
/------------------------------------------------------------\
|  ESC[31m1ESC[0m. param : ESC[32mparam_card.datESC[0m                                 |
|  ESC[31m9ESC[0m. plot  : ESC[32mplot_card.datESC[0m                                  |
\------------------------------------------------------------/
 you can also
   - enter the path to a valid card or banner.
   - use the 'set' command to modify a parameter directly.
     The set option works only for param_card and run_card.
     Type 'help set' for more information on this command.
   - call an external program (ASperGE/MadWidth/...).
     Type 'help' for the list of available command
 [ESC[4m0ESC[0m, done, 1, param, 9, plot, enter path]
>

and it doesnt continue with it despite having all the relevant cards generated by Madminer. I have no problems running the process using the cards from madminer by myself at the terminal, it doesnt get stuck at the terminal. It seem as though when madminer runs madgraph it gets stuck at the card part.

This problem occur in both MG5_aMC_v2_9_3 and MG5_aMC_v2_9_14. Since all the reweight cards are written internally by madminer, im not sure how to include a line of command that skip this card input phase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant