> On Jul 27, 2021, at 5:15 AM, Dhruvanshu Parmar wrote:>> [EXTERNAL EMAIL]>> Question #698042 on MadAnalysis 5 changed:> +question/698042>> Dhruvanshu Parmar posted a new comment:> Hi Jack and Olivier,>> Sorry for the late reply. I was travelling and hence was unable to get> back to it few days ago.>> Jack, I commented the lines in export_v4.py file as suggested by you. Surprisingly, it didnt return any traceback and code executed. Here is the output :> ```> (base) dhruvanshu@dhruvanshu-Inspiron-3501:/MG5_aMC_v3_1_0$ ./bin/mg5_aMC> ************************************************************> * *> * W E L C O M E to *> * M A D G R A P H 5 _ a M C @ N L O *> * *> * *> * * * *> * * * * * *> * * * * * 5 * * * * *> * * * * * *> * * * *> * *> * VERSION 3.1.0 2021-03-30 *> * *> * The MadGraph5_aMC@NLO Development Team - Find us at *> * *> * and *> * *> * *> * Type 'help' for in-line help. *> * Type 'tutorial' to learn how MG5 works *> * Type 'tutorial aMCatNLO' to learn how aMC@NLO works *> * Type 'tutorial MadLoop' to learn how MadLoop works *> * *> ************************************************************> load MG5 configuration from input/mg5_configuration.txt> fastjet-config does not seem to correspond to a valid fastjet-config executable (v3+). We will use fjcore instead.> Please set the 'fastjet'variable to the full (absolute) /PATH/TO/fastjet-config (including fastjet-config).> MG5_aMC> set fastjet /PATH/TO/fastjet-config>> set ninja to /home/dhruvanshu/MG5_aMC_v3_1_0/HEPTools/lib> set collier to /home/dhruvanshu/MG5_aMC_v3_1_0/HEPTools/lib> set lhapdf to /home/dhruvanshu/MG5_aMC_v3_1_0/HEPTools/lhapdf6_py3/bin/lhapdf-config> set lhapdf to /home/dhruvanshu/MG5_aMC_v3_1_0/HEPTools/lhapdf6_py3/bin/lhapdf-config> Using default text editor "vi". Set another one in ./input/mg5_configuration.txt> Using default eps viewer "evince". Set another one in ./input/mg5_configuration.txt> Using default web browser "firefox". Set another one in ./input/mg5_configuration.txt> Loading default model: sm> INFO: Restrict model sm with file models/sm/restrict_default.dat .> INFO: Run "set stdout_level DEBUG" before import for more information.> INFO: Change particles name to pass to MG5 convention> Defined multiparticle p = g u c d s u c d s> Defined multiparticle j = g u c d s u c d s> Defined multiparticle l+ = e+ mu+> Defined multiparticle l- = e- mu-> Defined multiparticle vl = ve vm vt> Defined multiparticle vl = ve vm vt> Defined multiparticle all = g u c d s u c d s a ve vm vt e- mu- ve vm vt e+ mu+ t b t b z w+ h w- ta- ta+> MG5_aMC>import model heft> INFO: Restrict model heft with file models/heft/restrict_default.dat .> INFO: Run "set stdout_level DEBUG" before import for more information.> INFO: Change particles name to pass to MG5 convention> Kept definitions of multiparticles p / j / l+ / l- / vl / vl unchanged> Defined multiparticle all = g u c d s u c d s a ve vm vt e- mu- ve vm vt e+ mu+ t b t b z w+ h h1 w- ta- ta+> MG5_aMC>generate p p > h> INFO: Checking for minimal orders which gives processes.> INFO: Please specify coupling orders to bypass this step.> INFO: Trying process: g g > h HIG h HIG ALOHA: aloha starts to compute helicity amplitudes> ALOHA: aloha creates 1 routines in 0.228 s> save configuration file to /home/dhruvanshu/MG5_aMC_v3_1_0/TRY1/Cards/me5_configuration.txt> INFO: Use Fortran compiler gfortran> INFO: Use c++ compiler g++> INFO: Generate jpeg diagrams> INFO: Generate web pages> INFO: Generating MadAnalysis5 default cards tailored to this process> INFO: Cards created in 1.63s> Output to directory /home/dhruvanshu/MG5_aMC_v3_1_0/TRY1 done.> Type "launch" to generate events from this process, or see> /home/dhruvanshu/MG5_aMC_v3_1_0/TRY1/README> Run "open index.html" to see more information about this process.> MG5_aMC>launch> ************************************************************> * *> * W E L C O M E to *> * M A D G R A P H 5 _ a M C @ N L O *> * M A D E V E N T *> * *> * * * *> * * * * * *> * * * * * 5 * * * * *> * * * * * *> * * * *> * *> * VERSION 3.1.0 2021-03-30 *> * *> * The MadGraph5_aMC@NLO Development Team - Find us at *> * *> * *> * Type 'help' for in-line help. *> * *> ************************************************************> INFO: load configuration from /home/dhruvanshu/MG5_aMC_v3_1_0/TRY1/Cards/me5_configuration.txt> INFO: load configuration from /home/dhruvanshu/MG5_aMC_v3_1_0/input/mg5_configuration.txt> INFO: load configuration from /home/dhruvanshu/MG5_aMC_v3_1_0/TRY1/Cards/me5_configuration.txt> Using default text editor "vi". Set another one in ./input/mg5_configuration.txt> generate_events run_01> The following switches determine which programs are run:> /=================== Description ===================================== values ======================== other options =====\> 1. Choose the shower/hadronization program shower = OFF Pythia8 > 2. Choose the detector simulation program detector = OFF Delphes > 3. Choose an analysis package (plot/convert) analysis = MadAnalysis5 OFF > 4. Decay onshell particles madspin = OFF ONonshellfull > 5. Add weights to events for new hypp. reweight = OFF ON > \===========================================================================================================================/> Either type the switch number (1 to 5) to change its setting,> Set any switch explicitly (e.g. type 'shower=Pythia8' at the prompt)> Type 'help' for the list of all valid option> Type '0', 'auto', 'done' or just press enter when you are done.[60s to answer]>> analysis=OFF> The following switches determine which programs are run:> /=================== Description ===================================== values ======================== other options =====\> 1. Choose the shower/hadronization program shower = OFF Pythia8 > 2. Choose the detector simulation program detector = OFF Delphes > 3. Choose an analysis package (plot/convert) analysis = OFF MadAnalysis5 > 4. Decay onshell particles madspin = OFF ONonshellfull > 5. Add weights to events for new hypp. reweight = OFF ON > \===========================================================================================================================/> Either type the switch number (1 to 5) to change its setting,> Set any switch explicitly (e.g. type 'shower=Pythia8' at the prompt)> Type 'help' for the list of all valid option> Type '0', 'auto', 'done' or just press enter when you are done.>>> Do you want to edit a card (press enter to bypass editing)?> /------------------------------------------------------------\> 1. param : param_card.dat > 2. run : run_card.dat > \------------------------------------------------------------/> 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> [0, done, 1, param, 2, run, enter path][90s to answer]>>> INFO: Update the dependent parameter of the param_card.dat> Generating 10000 events with run name run_01> survey run_01> INFO: compile directory> compile Source Directory> Using random number seed offset = 21> INFO: Running Survey> Creating Jobs> Working on SubProcesses> INFO: Compiling for process 1/1.> INFO: P1_gg_h> INFO: P1_gg_h> INFO: Idle: 1, Running: 0, Completed: 0 [ current time: 09h32 ]> INFO: Idle: 0, Running: 0, Completed: 1 [ 0.11s ]> INFO: Idle: 0, Running: 0, Completed: 1 [ 0.11s ]> INFO: End survey> refine 10000> Creating Jobs> INFO: Refine results to 10000> INFO: Generating 10000.0 unweighted events.> sum of cpu time of last step: 0 second> INFO: Effective Luminosity 683.4102169827438 pb^-1> INFO: need to improve 1 channels> - Current estimate of cross-section: 17.559 +- 0.07011> P1_gg_h> INFO: Idle: 4, Running: 8, Completed: 0 [ current time: 09h32 ]> INFO: Idle: 0, Running: 0, Completed: 12 [ 0.76s ]> INFO: Combining runs> sum of cpu time of last step: 8 seconds> INFO: finish refine> refine 10000 --treshold=0.9> No need for second refine due to stability of cross-section> INFO: Combining Events> === Results Summary for run: run_01 tag: tag_1 ===>> Cross-section : 17.62 +- 0.01573 pb> Nb of events : 10000>> fail> Failed to access python version of LHAPDF: If the python interface to LHAPDF is available on your system, try adding its location to the PYTHONPATH environment variable and theLHAPDF library location to LD_LIBRARY_PATH (linux) or DYLD_LIBRARY_PATH (mac os x).The required LD_LIBRARY_PATH is /home/dhruvanshu/MG5_aMC_v3_1_0/HEPTools/lhapdf6_py3/lib> INFO: can not run systematics since can not link python to lhapdf> store_events> INFO: Storing parton level results> INFO: End Parton> reweight -from_cards> decay_events -from_cards> INFO: storing files of previous run> INFO: Done> quit> INFO:> more information in /home/dhruvanshu/MG5_aMC_v3_1_0/TRY1/index.html> ```> Here are the changes made in that export_v4.py file, showing lines 360-380.> ```> for lvl in ['parton','hadron']:> if lvl in levels:> card_to_generate = pjoin(output_dir,'madanalysis5_%s_card_default.dat'%lvl)> #try:> #text = MA5_main.madgraph.generate_card(history, proc_defs, processes,lvl)> #except (Exception, SystemExit) as e:> # keep the default card (skip only)> #logger.warning('MadAnalysis5 failed to write a %s-level'%lvl+> #' default analysis card for this process.')> #logger.warning('Therefore, %s-level default analysis with MadAnalysis5 will be empty.'%lvl)> #error=StringIO()> #traceback.print_exc(file=error)> #logger.debug('MadAnalysis5 error was:')> #logger.debug('-'*60)> #logger.debug(error.getvalue()[:-1])> #logger.debug('-'*60)> #else:> #open(card_to_generate,'w').write(text)> stop = time.time()> if stop-start >1:> logger.info('Cards created in %.2fs' % (stop-start))> ```>> The execution didnt crash I think, so it didnt return traceback.>> Thanks,> Dhruvanshu>> --> You received this question notification because you are an answer> contact for MadAnalysis 5.
Signcut 1.63
2ff7e9595c
Comments