MC Production 2015

Madgraph Gridpack:

The madgraph gridpack is prepared with the followings:
  1. Card files: define the process, run and param for MG5
  2. MG distribution: special source tarball for CMS env.
  3. Script for launching the production with CMSSW

Details are described in the generator group twiki page: https://twiki.cern.ch/twiki/bin/viewauth/CMS/MadGraphGridpackGenerationInstrucions

http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/Configuration/GenProduction/bin/MadGraph/

  • tutorial for running Madgraph in CMSSW

https://indico.cern.ch/getFile.py/access?contribId=1&resId=0&materialId=slides&confId=167477

  • convert lhe to edm DQM

http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/Validation/EventGenerator/test/convertLHE2HepMCReweightandValidate8TeV_cfg.py?revision=1.1&view=markup

https://twiki.cern.ch/twiki/bin/view/CMS/PdmVProductionSummer12

MG5_aNLO Gridpack Production

https://twiki.cern.ch/twiki/bin/view/CMS/QuickGuideMadGraph5aMCatNLO

Quick tutorial on how to produce a gridpack


git clone git@github.com:cms-sw/genproductions.git genproductions
cd genproductions/bin/MadGraph5_aMCatNLO/
./gridpack_generation.sh <name of process card without _proc_card.dat> <folder containing cards relative to current location> <queue>


./submit_gridpack_generation.sh <memoryInMBytes> <diskInMBytes> <queueForMasterJob> <name of process card without _proc_card.dat> <folder containing cards relative to current location> <queue>

./submit_gridpack_generation.sh 12000 12000 2nw wplustest_4f_LO cards/examples/wplustest_4f_LO 8nh


Standalone production: running the gridpack from CMSSW

cmsrel CMSSW_X_Y_Z 
cd CMSSW_X_Y_Z/src
cmsenv
tar -xavf <path of gridpack creation>/wplustest_LO/wplustest_LO_tarball.tar.xz
bash
./runcmsgrid.sh <NEvents> <RandomSeed> <NumberOfCPUs>

GEN-SIM

Following the instructions given by SRIMANOBHAS Norraphat:

https://hypernews.cern.ch/HyperNews/CMS/get/generators/2775/2.html

source /cvmfs/cms.cern.ch/cmsset_default.csh
scram list CMSSW_7_1
cmsrel CMSSW_7_1_20
cd CMSSW_7_1_20/src
cmsenv

mkdir -p Configuration/GenProduction/
git clone git@github.com:cms-sw/genproductions.git Configuration/GenProduction/

scramv1 b

cmsDriver.py Configuration/GenProduction/python/EGM-RunIIWinter15GS-00001-fragment.py --fileout file:EGM-RunIIWinter15GS-00001.root --mc --eventcontent RAWSIM --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 --datatier GEN-SIM --conditions MCRUN2_71_V1::All --beamspot NominalCollision2015 --step GEN,SIM --magField 38T_PostLS1 


scramv1 b
cmsRun gensim_GEN_SIM.py

=================================== Gen-Sim: CMSSW_7_1_20

cmsDriver.py Configuration/GenProduction/python/EGM-RunIIWinter15GS-00001-fragment.py --fileout file:EGM-RunIIWinter15GS-00001.root --mc --eventcontent RAWSIM --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 --datatier GEN-SIM --conditions MCRUN2_71_V1::All --beamspot NominalCollision2015 --step GEN,SIM --magField 38T_PostLS1 --no_exec -n 10

  • POWHEG BOX

cmsDriver.py Configuration/GenProduction/python/ThirteenTeV/Hadronizer_TuneCUETP8M1_13TeV_powhegEmissionVeto_1p_LHE_pythia8_cff.py --mc --eventcontent RAWSIM --datatier GEN-SIM --conditions MCRUN2_71_V1::All --beamspot NominalCollision2015 --step GEN,SIM --magField 38T_PostLS1 --filein file:cmsgrid_final.lhe --no_exec --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 -n 10

=================================== Digi-Reco-Miniaod version 1: CMSSW_7_4_1_patch4

cmsDriver.py step1 --filein "dbs:/SinglePion_FlatPt-1To15/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM" --fileout file:EGM-RunIISpring15DR74-00001_step1.root --pileup_input "dbs:/MinBias_TuneCUETP8M1_13TeV-pythia8/RunIIWinter15GS-MCRUN2_71_V1-v1/GEN-SIM" --mc --eventcontent RAWSIM --pileup 2015_25ns_Startup_PoissonOOTPU --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 --datatier GEN-SIM-RAW --conditions MCRUN2_74_V9 --step DIGI,L1,DIGI2RAW,HLT:@frozen25ns --magField 38T_PostLS1

cmsDriver.py step2 --filein file:EGM-RunIISpring15DR74-00001_step1.root --fileout file:EGM-RunIISpring15DR74-00001_step2.root --mc --eventcontent AODSIM,DQM --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 --datatier AODSIM,DQMIO --conditions MCRUN2_74_V9 --step RAW2DIGI,L1Reco,RECO,EI,DQM:DQMOfflinePOGMC --magField 38T_PostLS1

cmsDriver.py step3 --filein file:EGM-RunIISpring15DR74-00001_step2.root --fileout file:EGM-RunIISpring15DR74-00001.root --mc --eventcontent MINIAODSIM --runUnscheduled --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 --datatier MINIAODSIM --conditions MCRUN2_74_V9 --step PAT

=================================== MiniAOD version 2: CMSSW_7_4_14 cmsDriver.py step1 --filein "dbs:/SinglePion_FlatPt-1To15/RunIISpring15DR74-Asympt25ns_MCRUN2_74_V9-v1/AODSIM" --fileout file:EGM-RunIISpring15MiniAODv2-00003.root --mc --eventcontent MINIAODSIM --runUnscheduled --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 --datatier MINIAODSIM --conditions 74X_mcRun2_asymptotic_v2 --step PAT

CMSSW MC Production

CMSSW_6_2_0_patch1

If working directly from LHE files, convert into EDM format and register into local DBS:

  • Preparing a working directory and CMSSW environment
setenv SCRAM_ARCH slc5_amd64_gcc472
cmsrel CMSSW_6_2_0_patch1
cd CMSSW_6_2_0_patch1
mkdir TTbar_Gridpack
cd TTbar_Gridpack
mkdir cards
cd cards

  • Getting the example card files.
wget http://jruizalv.web.cern.ch/jruizalv/tt_proc_card_mg5.dat
wget http://jruizalv.web.cern.ch/jruizalv/tt_run_card.dat
wget http://jruizalv.web.cern.ch/jruizalv/tt_param_card.dat
cd ..
wget --no-check-certificate https://cms-project-generators.web.cern.ch/cms-project-generators/slc5_amd64_gcc472/madgraph/V5_1.5.11/gridpack_generation_patched19092013.sh
wget --no-check-certificate https://cms-project-generators.web.cern.ch/cms-project-generators/slc5_amd64_gcc472/madgraph/V5_1.5.11/MG5v1.5.11_CERN_23082013_patched19092013.tar.gz
chmod a+x  ./gridpack_generation_patched19092013.sh
nohup ./gridpack_generation_patched19092013.sh tt 1nd > tt.log &
tail -f tt.log

  • Run the gridpack
cd madevent
./bin/compile
./bin/clean4grid
./run.sh 10000 37

Remember that madevent works with python 2.6 or greater, so depending on your config, you should set python correctly before runnin ./run.sh. A simple way to set this is to work on a CMSSW based area and do 'cmsenv'.

After this you will find a events.lhe.gz file containing the events you have requested.

  • Get the run script for LHE production within CMSSW

cvs co  Configuration/GenProduction                      

cmsDriver.py Configuration/GenProduction/python/EightTeV/Hadronizer_TuneZ2star_8TeV_generic_LHE_pythia_cff.py --python_filename tprime_GENSIM.py --fileout tprime_GEN_SIM.root -s GEN,SIM --conditions START52_V5::All --beamspot Realistic8TeVCollision --datatier GEN-SIM --eventcontent RAWSIM --filetype=LHE --filein file:LHEFILE.lhe --datamix NODATAMIXER --pileup NoPileUp --no_exec -n 50

Summer12_DR53X

Digitization, reconstruction with 53X

  • The pileup scenario is 2012_Summer_50ns_PoissonOOTPU Presentation by Mike
  • The minimum bias dataset for mixing is /MinBias_TuneZ2star_8TeV-pythia6/Summer12-START50_V13-v3/GEN-SIM HN post by Sanjay
  • The release is 5.3.2.patch1
  • The conditions are START53_V7A
step1

cmsDriver.py REDIGI --step DIGI,L1,DIGI2RAW,HLT:7E33v2 --conditions START53_V7A::All --pileup 2012_Summer_50ns_PoissonOOTPU --datamix NODATAMIXER --eventcontent RAWSIM --datatier GEN-SIM-RAW

step2

cmsDriver.py STEP2 --step RAW2DIGI,L1Reco,RECO,VALIDATION:validation_prod,DQM:DQMOfflinePOGMC --conditions START53_V7A::All --pileup 2012_Summer_50ns_PoissonOOTPU --datamix NODATAMIXER --eventcontent AODSIM,DQM --datatier AODSIM,DQM

  • Since 31/10/12
    • Software release: 5.3.5
    • Conditions: START53_V7C

-- YuanChao - 2015-05-11

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r5 - 2017-05-11 - YuanChao
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback