|
2 | 2 | # using: |
3 | 3 | # Revision: 1.19 |
4 | 4 | # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v |
5 | | -# with command line options: Configuration/GenProduction/python/BTV-RunIISummer20UL17GEN-00002-fragment.py --python_filename BTV-RunIISummer20UL17GEN-00002_1_cfg.py --eventcontent RAWSIM --customise Configuration/DataProcessing/Utils.addMonitoring --datatier GEN --fileout file:BTV-RunIISummer20UL17GEN-00002.root --conditions 106X_mc2017_realistic_v6 --beamspot Realistic25ns13TeVEarly2017Collision --customise_commands process.source.numberEventsInLuminosityBlock=cms.untracked.uint32(100) --step GEN --geometry DB:Extended --era Run2_2017 --no_exec --mc -n 100 --nThreads 4 |
| 5 | +# with command line options: Configuration/GenProduction/python/BTV-RunIISummer20UL17GEN-00002-fragment.py --python_filename BTV-RunIISummer20UL17GEN-00002_1_cfg.py --eventcontent RAWSIM --customise Configuration/DataProcessing/Utils.addMonitoring --datatier GEN --fileout file:BTV-RunIISummer20UL17GEN-00002.root --conditions auto:run2_mc --beamspot Realistic25ns13TeVEarly2017Collision --customise_commands process.source.numberEventsInLuminosityBlock=cms.untracked.uint32(100) --step GEN --geometry DB:Extended --era Run2_2017 --no_exec --mc -n 100 --nThreads 4 --nConcurrentLumis 1 |
6 | 6 | import FWCore.ParameterSet.Config as cms |
7 | 7 |
|
8 | 8 | from Configuration.Eras.Era_Run2_2017_cff import Run2_2017 |
|
24 | 24 | process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') |
25 | 25 |
|
26 | 26 | process.maxEvents = cms.untracked.PSet( |
27 | | - input = cms.untracked.int32(100) |
| 27 | + input = cms.untracked.int32(100), |
| 28 | + output = cms.optional.untracked.allowed(cms.int32,cms.PSet) |
28 | 29 | ) |
29 | 30 |
|
30 | 31 | # Input source |
31 | 32 | process.source = cms.Source("EmptySource") |
32 | 33 |
|
33 | 34 | process.options = cms.untracked.PSet( |
34 | | - |
| 35 | + FailPath = cms.untracked.vstring(), |
| 36 | + IgnoreCompletely = cms.untracked.vstring(), |
| 37 | + Rethrow = cms.untracked.vstring(), |
| 38 | + SkipEvent = cms.untracked.vstring(), |
| 39 | + allowUnscheduled = cms.obsolete.untracked.bool, |
| 40 | + canDeleteEarly = cms.untracked.vstring(), |
| 41 | + deleteNonConsumedUnscheduledModules = cms.untracked.bool(True), |
| 42 | + emptyRunLumiMode = cms.obsolete.untracked.string, |
| 43 | + eventSetup = cms.untracked.PSet( |
| 44 | + forceNumberOfConcurrentIOVs = cms.untracked.PSet( |
| 45 | + allowAnyLabel_=cms.required.untracked.uint32 |
| 46 | + ), |
| 47 | + numberOfConcurrentIOVs = cms.untracked.uint32(1) |
| 48 | + ), |
| 49 | + fileMode = cms.untracked.string('FULLMERGE'), |
| 50 | + forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False), |
| 51 | + makeTriggerResults = cms.obsolete.untracked.bool, |
| 52 | + numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1), |
| 53 | + numberOfConcurrentRuns = cms.untracked.uint32(1), |
| 54 | + numberOfStreams = cms.untracked.uint32(0), |
| 55 | + numberOfThreads = cms.untracked.uint32(1), |
| 56 | + printDependencies = cms.untracked.bool(False), |
| 57 | + sizeOfStackForThreadsInKB = cms.optional.untracked.uint32, |
| 58 | + throwIfIllegalParameter = cms.untracked.bool(True), |
| 59 | + wantSummary = cms.untracked.bool(False) |
35 | 60 | ) |
36 | 61 |
|
37 | 62 | # Production Info |
|
64 | 89 | # Other statements |
65 | 90 | process.genstepfilter.triggerConditions=cms.vstring("generation_step") |
66 | 91 | from Configuration.AlCa.GlobalTag import GlobalTag |
67 | | -process.GlobalTag = GlobalTag(process.GlobalTag, '106X_mc2017_realistic_v6', '') |
| 92 | +process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') |
68 | 93 |
|
69 | 94 | process.generator = cms.EDFilter("Pythia8ConcurrentGeneratorFilter", |
70 | 95 | PythiaParameters = cms.PSet( |
71 | 96 | parameterSets = cms.vstring( |
72 | | - 'pythia8CommonSettings', |
73 | | - 'pythia8CP5Settings', |
74 | | - 'pythia8PSweightsSettings', |
| 97 | + 'pythia8CommonSettings', |
| 98 | + 'pythia8CP5Settings', |
| 99 | + 'pythia8PSweightsSettings', |
75 | 100 | 'processParameters' |
76 | 101 | ), |
77 | 102 | processParameters = cms.vstring('WeakDoubleBoson:ffbar2ZW = on'), |
78 | 103 | pythia8CP5Settings = cms.vstring( |
79 | | - 'Tune:pp 14', |
80 | | - 'Tune:ee 7', |
81 | | - 'MultipartonInteractions:ecmPow=0.03344', |
82 | | - 'MultipartonInteractions:bProfile=2', |
83 | | - 'MultipartonInteractions:pT0Ref=1.41', |
84 | | - 'MultipartonInteractions:coreRadius=0.7634', |
85 | | - 'MultipartonInteractions:coreFraction=0.63', |
86 | | - 'ColourReconnection:range=5.176', |
87 | | - 'SigmaTotal:zeroAXB=off', |
88 | | - 'SpaceShower:alphaSorder=2', |
89 | | - 'SpaceShower:alphaSvalue=0.118', |
90 | | - 'SigmaProcess:alphaSvalue=0.118', |
91 | | - 'SigmaProcess:alphaSorder=2', |
92 | | - 'MultipartonInteractions:alphaSvalue=0.118', |
93 | | - 'MultipartonInteractions:alphaSorder=2', |
94 | | - 'TimeShower:alphaSorder=2', |
95 | | - 'TimeShower:alphaSvalue=0.118', |
96 | | - 'SigmaTotal:mode = 0', |
97 | | - 'SigmaTotal:sigmaEl = 21.89', |
98 | | - 'SigmaTotal:sigmaTot = 100.309', |
| 104 | + 'Tune:pp 14', |
| 105 | + 'Tune:ee 7', |
| 106 | + 'MultipartonInteractions:ecmPow=0.03344', |
| 107 | + 'MultipartonInteractions:bProfile=2', |
| 108 | + 'MultipartonInteractions:pT0Ref=1.41', |
| 109 | + 'MultipartonInteractions:coreRadius=0.7634', |
| 110 | + 'MultipartonInteractions:coreFraction=0.63', |
| 111 | + 'ColourReconnection:range=5.176', |
| 112 | + 'SigmaTotal:zeroAXB=off', |
| 113 | + 'SpaceShower:alphaSorder=2', |
| 114 | + 'SpaceShower:alphaSvalue=0.118', |
| 115 | + 'SigmaProcess:alphaSvalue=0.118', |
| 116 | + 'SigmaProcess:alphaSorder=2', |
| 117 | + 'MultipartonInteractions:alphaSvalue=0.118', |
| 118 | + 'MultipartonInteractions:alphaSorder=2', |
| 119 | + 'TimeShower:alphaSorder=2', |
| 120 | + 'TimeShower:alphaSvalue=0.118', |
| 121 | + 'SigmaTotal:mode = 0', |
| 122 | + 'SigmaTotal:sigmaEl = 21.89', |
| 123 | + 'SigmaTotal:sigmaTot = 100.309', |
99 | 124 | 'PDF:pSet=LHAPDF6:NNPDF31_nnlo_as_0118' |
100 | 125 | ), |
101 | 126 | pythia8CommonSettings = cms.vstring( |
102 | | - 'Tune:preferLHAPDF = 2', |
103 | | - 'Main:timesAllowErrors = 10000', |
104 | | - 'Check:epTolErr = 0.01', |
105 | | - 'Beams:setProductionScalesFromLHEF = off', |
106 | | - 'SLHA:keepSM = on', |
107 | | - 'SLHA:minMassSM = 1000.', |
108 | | - 'ParticleDecays:limitTau0 = on', |
109 | | - 'ParticleDecays:tau0Max = 10', |
| 127 | + 'Tune:preferLHAPDF = 2', |
| 128 | + 'Main:timesAllowErrors = 10000', |
| 129 | + 'Check:epTolErr = 0.01', |
| 130 | + 'Beams:setProductionScalesFromLHEF = off', |
| 131 | + 'SLHA:minMassSM = 1000.', |
| 132 | + 'ParticleDecays:limitTau0 = on', |
| 133 | + 'ParticleDecays:tau0Max = 10', |
110 | 134 | 'ParticleDecays:allowPhotonRadiation = on' |
111 | 135 | ), |
112 | 136 | pythia8PSweightsSettings = cms.vstring( |
113 | | - 'UncertaintyBands:doVariations = on', |
114 | | - 'UncertaintyBands:List = {isrRedHi isr:muRfac=0.707,fsrRedHi fsr:muRfac=0.707,isrRedLo isr:muRfac=1.414,fsrRedLo fsr:muRfac=1.414,isrDefHi isr:muRfac=0.5,fsrDefHi fsr:muRfac=0.5,isrDefLo isr:muRfac=2.0,fsrDefLo fsr:muRfac=2.0,isrConHi isr:muRfac=0.25,fsrConHi fsr:muRfac=0.25,isrConLo isr:muRfac=4.0,fsrConLo fsr:muRfac=4.0,fsr_G2GG_muR_dn fsr:G2GG:muRfac=0.5,fsr_G2GG_muR_up fsr:G2GG:muRfac=2.0,fsr_G2QQ_muR_dn fsr:G2QQ:muRfac=0.5,fsr_G2QQ_muR_up fsr:G2QQ:muRfac=2.0,fsr_Q2QG_muR_dn fsr:Q2QG:muRfac=0.5,fsr_Q2QG_muR_up fsr:Q2QG:muRfac=2.0,fsr_X2XG_muR_dn fsr:X2XG:muRfac=0.5,fsr_X2XG_muR_up fsr:X2XG:muRfac=2.0,fsr_G2GG_cNS_dn fsr:G2GG:cNS=-2.0,fsr_G2GG_cNS_up fsr:G2GG:cNS=2.0,fsr_G2QQ_cNS_dn fsr:G2QQ:cNS=-2.0,fsr_G2QQ_cNS_up fsr:G2QQ:cNS=2.0,fsr_Q2QG_cNS_dn fsr:Q2QG:cNS=-2.0,fsr_Q2QG_cNS_up fsr:Q2QG:cNS=2.0,fsr_X2XG_cNS_dn fsr:X2XG:cNS=-2.0,fsr_X2XG_cNS_up fsr:X2XG:cNS=2.0,isr_G2GG_muR_dn isr:G2GG:muRfac=0.5,isr_G2GG_muR_up isr:G2GG:muRfac=2.0,isr_G2QQ_muR_dn isr:G2QQ:muRfac=0.5,isr_G2QQ_muR_up isr:G2QQ:muRfac=2.0,isr_Q2QG_muR_dn isr:Q2QG:muRfac=0.5,isr_Q2QG_muR_up isr:Q2QG:muRfac=2.0,isr_X2XG_muR_dn isr:X2XG:muRfac=0.5,isr_X2XG_muR_up isr:X2XG:muRfac=2.0,isr_G2GG_cNS_dn isr:G2GG:cNS=-2.0,isr_G2GG_cNS_up isr:G2GG:cNS=2.0,isr_G2QQ_cNS_dn isr:G2QQ:cNS=-2.0,isr_G2QQ_cNS_up isr:G2QQ:cNS=2.0,isr_Q2QG_cNS_dn isr:Q2QG:cNS=-2.0,isr_Q2QG_cNS_up isr:Q2QG:cNS=2.0,isr_X2XG_cNS_dn isr:X2XG:cNS=-2.0,isr_X2XG_cNS_up isr:X2XG:cNS=2.0}', |
115 | | - 'UncertaintyBands:nFlavQ = 4', |
116 | | - 'UncertaintyBands:MPIshowers = on', |
117 | | - 'UncertaintyBands:overSampleFSR = 10.0', |
118 | | - 'UncertaintyBands:overSampleISR = 10.0', |
119 | | - 'UncertaintyBands:FSRpTmin2Fac = 20', |
| 137 | + 'UncertaintyBands:doVariations = on', |
| 138 | + 'UncertaintyBands:List = {isrRedHi isr:muRfac=0.707,fsrRedHi fsr:muRfac=0.707,isrRedLo isr:muRfac=1.414,fsrRedLo fsr:muRfac=1.414,isrDefHi isr:muRfac=0.5,fsrDefHi fsr:muRfac=0.5,isrDefLo isr:muRfac=2.0,fsrDefLo fsr:muRfac=2.0,isrConHi isr:muRfac=0.25,fsrConHi fsr:muRfac=0.25,isrConLo isr:muRfac=4.0,fsrConLo fsr:muRfac=4.0,fsr_G2GG_muR_dn fsr:G2GG:muRfac=0.5,fsr_G2GG_muR_up fsr:G2GG:muRfac=2.0,fsr_G2QQ_muR_dn fsr:G2QQ:muRfac=0.5,fsr_G2QQ_muR_up fsr:G2QQ:muRfac=2.0,fsr_Q2QG_muR_dn fsr:Q2QG:muRfac=0.5,fsr_Q2QG_muR_up fsr:Q2QG:muRfac=2.0,fsr_X2XG_muR_dn fsr:X2XG:muRfac=0.5,fsr_X2XG_muR_up fsr:X2XG:muRfac=2.0,fsr_G2GG_cNS_dn fsr:G2GG:cNS=-2.0,fsr_G2GG_cNS_up fsr:G2GG:cNS=2.0,fsr_G2QQ_cNS_dn fsr:G2QQ:cNS=-2.0,fsr_G2QQ_cNS_up fsr:G2QQ:cNS=2.0,fsr_Q2QG_cNS_dn fsr:Q2QG:cNS=-2.0,fsr_Q2QG_cNS_up fsr:Q2QG:cNS=2.0,fsr_X2XG_cNS_dn fsr:X2XG:cNS=-2.0,fsr_X2XG_cNS_up fsr:X2XG:cNS=2.0,isr_G2GG_muR_dn isr:G2GG:muRfac=0.5,isr_G2GG_muR_up isr:G2GG:muRfac=2.0,isr_G2QQ_muR_dn isr:G2QQ:muRfac=0.5,isr_G2QQ_muR_up isr:G2QQ:muRfac=2.0,isr_Q2QG_muR_dn isr:Q2QG:muRfac=0.5,isr_Q2QG_muR_up isr:Q2QG:muRfac=2.0,isr_X2XG_muR_dn isr:X2XG:muRfac=0.5,isr_X2XG_muR_up isr:X2XG:muRfac=2.0,isr_G2GG_cNS_dn isr:G2GG:cNS=-2.0,isr_G2GG_cNS_up isr:G2GG:cNS=2.0,isr_G2QQ_cNS_dn isr:G2QQ:cNS=-2.0,isr_G2QQ_cNS_up isr:G2QQ:cNS=2.0,isr_Q2QG_cNS_dn isr:Q2QG:cNS=-2.0,isr_Q2QG_cNS_up isr:Q2QG:cNS=2.0,isr_X2XG_cNS_dn isr:X2XG:cNS=-2.0,isr_X2XG_cNS_up isr:X2XG:cNS=2.0}', |
| 139 | + 'UncertaintyBands:nFlavQ = 4', |
| 140 | + 'UncertaintyBands:MPIshowers = on', |
| 141 | + 'UncertaintyBands:overSampleFSR = 10.0', |
| 142 | + 'UncertaintyBands:overSampleISR = 10.0', |
| 143 | + 'UncertaintyBands:FSRpTmin2Fac = 20', |
120 | 144 | 'UncertaintyBands:ISRpTmin2Fac = 1' |
121 | 145 | ) |
122 | 146 | ), |
|
141 | 165 | associatePatAlgosToolsTask(process) |
142 | 166 |
|
143 | 167 | #Setup FWK for multithreaded |
144 | | -process.options.numberOfThreads=cms.untracked.uint32(4) |
145 | | -process.options.numberOfStreams=cms.untracked.uint32(0) |
146 | | -process.options.numberOfConcurrentLuminosityBlocks=cms.untracked.uint32(1) |
| 168 | +process.options.numberOfThreads = cms.untracked.uint32(4) |
| 169 | +process.options.numberOfStreams = cms.untracked.uint32(0) |
| 170 | +process.options.numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1) |
| 171 | +process.options.eventSetup.numberOfConcurrentIOVs = cms.untracked.uint32(1) |
147 | 172 | # filter all path with the production filter sequence |
148 | 173 | for path in process.paths: |
149 | 174 | getattr(process,path).insert(0, process.generator) |
|
158 | 183 |
|
159 | 184 | # End of customisation functions |
160 | 185 |
|
| 186 | + |
161 | 187 | # Customisation from command line |
162 | 188 |
|
163 | 189 | process.source.numberEventsInLuminosityBlock=cms.untracked.uint32(100) |
|
0 commit comments