Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-08 22:39:52

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0005 # 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
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 from Configuration.Eras.Era_Run2_2017_cff import Run2_2017
0009 
0010 process = cms.Process('GEN',Run2_2017)
0011 
0012 # import of standard configurations
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016 process.load('Configuration.EventContent.EventContent_cff')
0017 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0018 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0019 process.load('Configuration.StandardSequences.MagneticField_cff')
0020 process.load('Configuration.StandardSequences.Generator_cff')
0021 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic25ns13TeVEarly2017Collision_cfi')
0022 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0023 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0024 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(100),
0028     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0029 )
0030 
0031 # Input source
0032 process.source = cms.Source("EmptySource")
0033 
0034 process.options = cms.untracked.PSet(
0035     FailPath = cms.untracked.vstring(),
0036     IgnoreCompletely = cms.untracked.vstring(),
0037     Rethrow = cms.untracked.vstring(),
0038     SkipEvent = cms.untracked.vstring(),
0039     allowUnscheduled = cms.obsolete.untracked.bool,
0040     canDeleteEarly = cms.untracked.vstring(),
0041     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0042     emptyRunLumiMode = cms.obsolete.untracked.string,
0043     eventSetup = cms.untracked.PSet(
0044         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0045             allowAnyLabel_=cms.required.untracked.uint32
0046         ),
0047         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0048     ),
0049     fileMode = cms.untracked.string('FULLMERGE'),
0050     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0051     makeTriggerResults = cms.obsolete.untracked.bool,
0052     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0053     numberOfConcurrentRuns = cms.untracked.uint32(1),
0054     numberOfStreams = cms.untracked.uint32(0),
0055     numberOfThreads = cms.untracked.uint32(1),
0056     printDependencies = cms.untracked.bool(False),
0057     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0058     throwIfIllegalParameter = cms.untracked.bool(True),
0059     wantSummary = cms.untracked.bool(False)
0060 )
0061 
0062 # Production Info
0063 process.configurationMetadata = cms.untracked.PSet(
0064     annotation = cms.untracked.string('WZ, 13 TeV, TuneCP5'),
0065     name = cms.untracked.string('\\$Source$'),
0066     version = cms.untracked.string('\\$Revision$')
0067 )
0068 
0069 # Output definition
0070 
0071 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0072     SelectEvents = cms.untracked.PSet(
0073         SelectEvents = cms.vstring('generation_step')
0074     ),
0075     compressionAlgorithm = cms.untracked.string('LZMA'),
0076     compressionLevel = cms.untracked.int32(1),
0077     dataset = cms.untracked.PSet(
0078         dataTier = cms.untracked.string('GEN'),
0079         filterName = cms.untracked.string('')
0080     ),
0081     eventAutoFlushCompressedSize = cms.untracked.int32(20971520),
0082     fileName = cms.untracked.string('file:BTV-RunIISummer20UL17GEN-00002.root'),
0083     outputCommands = process.RAWSIMEventContent.outputCommands,
0084     splitLevel = cms.untracked.int32(0)
0085 )
0086 
0087 # Additional output definition
0088 
0089 # Other statements
0090 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0091 from Configuration.AlCa.GlobalTag import GlobalTag
0092 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0093 
0094 process.generator = cms.EDFilter("Pythia8ConcurrentGeneratorFilter",
0095     PythiaParameters = cms.PSet(
0096         parameterSets = cms.vstring(
0097             'pythia8CommonSettings',
0098             'pythia8CP5Settings',
0099             'pythia8PSweightsSettings',
0100             'processParameters'
0101         ),
0102         processParameters = cms.vstring('WeakDoubleBoson:ffbar2ZW    = on'),
0103         pythia8CP5Settings = cms.vstring(
0104             'Tune:pp 14',
0105             'Tune:ee 7',
0106             'MultipartonInteractions:ecmPow=0.03344',
0107             'MultipartonInteractions:bProfile=2',
0108             'MultipartonInteractions:pT0Ref=1.41',
0109             'MultipartonInteractions:coreRadius=0.7634',
0110             'MultipartonInteractions:coreFraction=0.63',
0111             'ColourReconnection:range=5.176',
0112             'SigmaTotal:zeroAXB=off',
0113             'SpaceShower:alphaSorder=2',
0114             'SpaceShower:alphaSvalue=0.118',
0115             'SigmaProcess:alphaSvalue=0.118',
0116             'SigmaProcess:alphaSorder=2',
0117             'MultipartonInteractions:alphaSvalue=0.118',
0118             'MultipartonInteractions:alphaSorder=2',
0119             'TimeShower:alphaSorder=2',
0120             'TimeShower:alphaSvalue=0.118',
0121             'SigmaTotal:mode = 0',
0122             'SigmaTotal:sigmaEl = 21.89',
0123             'SigmaTotal:sigmaTot = 100.309',
0124             'PDF:pSet=LHAPDF6:NNPDF31_nnlo_as_0118'
0125         ),
0126         pythia8CommonSettings = cms.vstring(
0127             'Tune:preferLHAPDF = 2',
0128             'Main:timesAllowErrors = 10000',
0129             'Check:epTolErr = 0.01',
0130             'Beams:setProductionScalesFromLHEF = off',
0131             'SLHA:minMassSM = 1000.',
0132             'ParticleDecays:limitTau0 = on',
0133             'ParticleDecays:tau0Max = 10',
0134             'ParticleDecays:allowPhotonRadiation = on'
0135         ),
0136         pythia8PSweightsSettings = cms.vstring(
0137             'UncertaintyBands:doVariations = on',
0138             '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}',
0139             'UncertaintyBands:nFlavQ = 4',
0140             'UncertaintyBands:MPIshowers = on',
0141             'UncertaintyBands:overSampleFSR = 10.0',
0142             'UncertaintyBands:overSampleISR = 10.0',
0143             'UncertaintyBands:FSRpTmin2Fac = 20',
0144             'UncertaintyBands:ISRpTmin2Fac = 1'
0145         )
0146     ),
0147     comEnergy = cms.double(13000.0),
0148     crossSection = cms.untracked.double(27.6),
0149     filterEfficiency = cms.untracked.double(1.0),
0150     maxEventsToPrint = cms.untracked.int32(1),
0151     pythiaHepMCVerbosity = cms.untracked.bool(False),
0152     pythiaPylistVerbosity = cms.untracked.int32(1)
0153 )
0154 
0155 
0156 # Path and EndPath definitions
0157 process.generation_step = cms.Path(process.pgen)
0158 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0159 process.endjob_step = cms.EndPath(process.endOfProcess)
0160 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0161 
0162 # Schedule definition
0163 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.endjob_step,process.RAWSIMoutput_step)
0164 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0165 associatePatAlgosToolsTask(process)
0166 
0167 #Setup FWK for multithreaded
0168 process.options.numberOfThreads = cms.untracked.uint32(4)
0169 process.options.numberOfStreams = cms.untracked.uint32(0)
0170 process.options.numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1)
0171 process.options.eventSetup.numberOfConcurrentIOVs = cms.untracked.uint32(1)
0172 # filter all path with the production filter sequence
0173 for path in process.paths:
0174     getattr(process,path).insert(0, process.generator)
0175 
0176 # customisation of the process.
0177 
0178 # Automatic addition of the customisation function from Configuration.DataProcessing.Utils
0179 from Configuration.DataProcessing.Utils import addMonitoring 
0180 
0181 #call to customisation function addMonitoring imported from Configuration.DataProcessing.Utils
0182 process = addMonitoring(process)
0183 
0184 # End of customisation functions
0185 
0186 
0187 # Customisation from command line
0188 
0189 process.source.numberEventsInLuminosityBlock=cms.untracked.uint32(100)
0190 # Add early deletion of temporary data products to reduce peak memory need
0191 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0192 process = customiseEarlyDelete(process)
0193 # End adding early deletion