1. cmsDriver.py guides/twikis:
SWGuideCmsDriver
SWGuideFastSimulationExamples
SWGuideGlobalHLT
2. General info/Usage:
- The best is to use a recent working config file before you want to make your first script using the cmsDriver
- Steps to do this:
- find a dataset of your choice, eg:
https://cmsweb.cern.ch/das/request?view=list&limit=100&instance=prod%2Fglobal&input=dataset%3D%2FMinBias*%2F*%2FGEN-SIM+|+sort+dataset.creation_time
- Go click on "Request" on the top of the page
- In the "Output dataset" field: type your chosen dataset
- In the "Actions column" click on "Get test command"
3) Find cmsDriver.py line, run it, modify script accordint to your likes, also use the CMSSW version there preferably
eg:
cmsDriver.py Configuration/GenProduction/python/FSQ-RunIIWinter15GS-00004-fragment.py --fileout file:FSQ-RunIIWinter15GS-00004.root --mc --eventcontent RAWSIM --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1,Configuration/DataProcessing/Utils.addMonitoring --datatier GEN-SIM --conditions MCRUN2_71_V1::All --beamspot NominalCollision2015 --step GEN,SIM --magField 38T_PostLS1 --python_filename FSQ-RunIIWinter15GS-00004_1_cfg.py --no_exec -n 183
2. Examples:
2.1 Generate MinBias GEN-SIM MC
cmsDriver.py MinBias_13TeV_cfi.py -s GEN,SIM --mc --conditions auto:run2_mc --beamspot NominalCollision2015 --magField 38T_PostLS1 -n 10
2.2 Generate MinBias GEN-SIM MC + HLT Step
- L1 and HLT should agree - L1 menu is specified in he
GlobalTag
cmsDriver ... -s GEN,...,HLT:7E33v4 --conditions auto:startup_7E33v4
- Working recpe:
cmsDriver.py MinBias_13TeV_cfi.py -s GEN,SIM,DIGI,L1,DIGI2RAW,HLT --mc --conditions auto:run2_mc --pileup=NoPileUp --beamspot NominalCollision2015 --magField 38T_PostLS1 --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 -n 10
2.3 ReReco Cosmics RAW data
cmsDriver.py step1 --conditions GR_R_53_V21A::All -s
RAW2DIGI ,RECO --scenario cosmics --process
RawToDigiToReco --data --dasquery=file dataset=/Cosmics/Commissioning12-26Mar2013-v1/RECO run=186160 --eventcontent RECO --fileout
file:Cosmics.root
--no_exec --python_filename=test/TimingStudy_Cosmics_RawData_CMSSW53X_cfg.py
For
TimingStudy :
- comment out process.schedule line
- Add a refitter, eg:
process.load("RecoTracker.TrackProducer.TrackRefitters_cff")
process.Refitter = process.TrackRefitterP5.clone()
process.Refitter.src = 'ctfWithMaterialTracksP5'
process.Refitter.TrajectoryInEvent = True
- Add TimingStudy module: process.TimingStudy = cms.EdAnalyzer("TimingStudy", ...
- Add new schedule:
process.TimingStudy_step = cms.Path(process.Refitter*process.TimingStudy)
process.schedule = cms.Schedule( process.raw2digi_step, process.reconstruction_step, process.TimingStudy_step )
--
JanosKarancsi - 2015-02-26