Skip to content

dburns7/genMC_condor

Repository files navigation

These instructions are for generating MC in CMSSW

1) Generate events.lhe (unweighted_events.lhe?) file from MadGraph - Don't forget to replace.csh DM PID

2) Add the following block to the </header> section in the lhe file by running 

sed -i '/<header>/r MGParamCMS.txt' filename.lhe 

<MGParamCMS>
             5 = nqmatch    ! Max Jet Flavor
             3 = maxjets    ! Largest number (inclusive ktMLM matching multipl.)
             0 = minjets    ! Smallest number of additional light flavour jets
           5.0 = etaclmax   ! Maximum pseudorapidity for particles to cluster
          20.0 = qcut       ! Jet matching threshold for ktMLM scheme
</MGParamCMS>

3) Generate the first config file with the filein being the .lhe file

cmsDriver.py Configuration/Generator/python/Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff.py -s GEN,SIM --eventcontent RAWSIM --datatier GEN-SIM --mc --conditions auto:mc --filein=file:MG_LHE_Files/hxx_8TeV_1GeV.lhe --fileout=step1.root -n 1 --no_exec

4) Insert the varParsing blocks into the first config file

sed -i '/import FWCore.ParameterSet.Config as cms/r varParsing1.txt' Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff_py_GEN_SIM.py
sed -i '/# Production Info/r varParsing2.txt' Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff_py_GEN_SIM.py

5) Run the first config file with eventsToProcess input

cmsRun Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff_py_GEN_SIM.py eventsToProcess='1:1-1:10' 


cmsDriver.py Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff_py_GEN_SIM.py -s DIGI,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco --eventcontent FEVTDEBUGHLT --datatier GEN-SIM-DIGI-RAW-HLTDEBUG --conditions auto:startup -n 1 --filein=file:step1.root --fileout=step2.root

cmsDriver.py Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff_py_GEN_SIM_py_DIGI_L1_DIGI2RAW_HLT_RAW2DIGI_L1Reco.py --datatier GEN-SIM-RECO,DQM --conditions auto:startup -s RAW2DIGI,L1Reco,RECO,VALIDATION,DQM --eventcontent RECOSIM,DQM -n 1 --filein=file:step2.root --fileout=final.root

--no_exec

Example from runTheMatrix.py -n -e 
cmsDriver.py ZMM_8TeV_cfi  --conditions auto:startup -s GEN,SIM --datatier GEN-SIM -n 10 --relval 18000,200 --eventcontent RAWSIM
cmsDriver.py step2  --datatier GEN-SIM-DIGI-RAW-HLTDEBUG --conditions auto:startup -s DIGI,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco --eventcontent FEVTDEBUGHLT -n 100
cmsDriver.py step3  --datatier GEN-SIM-RECO,DQM --conditions auto:startup -s RAW2DIGI,L1Reco,RECO,VALIDATION,DQM --eventcontent RECOSIM,DQM -n 100

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published