Avoiding wmLHEGEN Step
Why Avoid wmLHEGEN Step
Warning note for wmLHEGEN step. There's a buggy-like issue with the CRAB publications. wmLHEGEN step gives you two output paths which are RAWSIMoutput and LHEoutput. Until last year, the two paths stored the corresponding output files correctly. For some unknown reason reported to hypernews link1 link2, there are some crazy mixups that the output files and the paths which makes it difficult to proceed further. There are two ways you can go around this issue : 1. Generate the LHE files from gridpacks and then start with GEN step giving the LHE files as an input (RECOMMENDED). 2. Double the number of events that you would like to produce and just use half of the RAWSIMoutput files (NOT RECOMMENDED).
Instructions
1. Untar the gridpacks and create LHE files from it. It should be one LHE file that contains the number of events you wish to distribute through CRAB. e.g.) If you want 200,000 events, the one LHE file should store 200,000 events. If matching/filtering efficiency is 40%, you will only get 200,000 X 0.4 = 80,000 events at the end. 2. Place the LHE file where could be accessed using XRootD. e.g.) root://eoscms.cern.ch//store/group/phys_exotica/MCandInterpretations/LHEfiles/DMSimp_monojet_NLO_Axial_GQ0p25_GDM1p0_MY1-1000p0_MXd-1p0.lhe 3. Prepare a CSV file with inputs in following order to run GEN step (split with commas) :
DATASETNAME : Name of the dataset that will be used for DAS publication.\
GENFRAGMENT : Generator fragment python file that will be used for hadronizer. It should be stored in skeleton/genfragments directory.\
NEVENTS : Number of events in total that is stored in the LHE file.\
NSPLITJOBS : Number of jobs that will be split into CRAB.\
INPUTLHE : XrootD path to the LHE file.
4. Now go back to How-to : Sample Production, but keep in mind that when executing the config_GEN.py file, --inputLHE option should be added.
Last updated