Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-05 03:57:40

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C11M9_cff import Phase2C11M9
0004 
0005 process = cms.Process('SIM',Phase2C11M9)
0006 
0007 # import of standard configurations
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0013 process.load('Configuration.StandardSequences.MagneticField_cff')
0014 process.load('Configuration.StandardSequences.Generator_cff')
0015 process.load('IOMC.EventVertexGenerators.VtxSmearedRun3RoundOptics25ns13TeVLowSigmaZ_cfi')
0016 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0017 process.load('Configuration.StandardSequences.SimIdeal_cff')
0018 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0019 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0020 process.load('Geometry.HcalCommonData.testPhase2GeometryXML_cfi')
0021 process.load('Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cff')
0022 process.load('Geometry.EcalCommonData.ecalSimulationParameters_cff')
0023 process.load('Geometry.HcalCommonData.hcalDDDSimConstants_cff')
0024 process.load('Geometry.MuonNumbering.muonGeometryConstants_cff')
0025 process.load('Geometry.MuonNumbering.muonOffsetESProducer_cff')
0026 process.load('Geometry.HGCalCommonData.hgcalParametersInitialization_cfi')
0027 process.load('Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi')
0028 process.load('Geometry.MTDNumberingBuilder.mtdNumberingGeometry_cff')
0029 
0030 if hasattr(process,'MessageLogger'):
0031     process.MessageLogger.EcalGeom=dict()
0032 #    process.MessageLogger.Geometry=dict()
0033 #    process.MessageLogger.TrackerGeometryBuilder=dict()
0034 #    process.MessageLogger.TrackerSimInfoNumbering=dict()
0035 
0036 process.maxEvents = cms.untracked.PSet(
0037     input = cms.untracked.int32(10),
0038     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0039 )
0040 
0041 # Input source
0042 process.source = cms.Source("EmptySource")
0043 
0044 process.options = cms.untracked.PSet(
0045     FailPath = cms.untracked.vstring(),
0046     IgnoreCompletely = cms.untracked.vstring(),
0047     Rethrow = cms.untracked.vstring(),
0048     SkipEvent = cms.untracked.vstring(),
0049     allowUnscheduled = cms.obsolete.untracked.bool,
0050     canDeleteEarly = cms.untracked.vstring(),
0051     emptyRunLumiMode = cms.obsolete.untracked.string,
0052     eventSetup = cms.untracked.PSet(
0053         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0054 
0055         ),
0056         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0057     ),
0058     fileMode = cms.untracked.string('FULLMERGE'),
0059     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0060     makeTriggerResults = cms.obsolete.untracked.bool,
0061     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0062     numberOfConcurrentRuns = cms.untracked.uint32(1),
0063     numberOfStreams = cms.untracked.uint32(0),
0064     numberOfThreads = cms.untracked.uint32(1),
0065     printDependencies = cms.untracked.bool(False),
0066     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0067     throwIfIllegalParameter = cms.untracked.bool(True),
0068     wantSummary = cms.untracked.bool(False)
0069 )
0070 
0071 # Production Info
0072 process.configurationMetadata = cms.untracked.PSet(
0073     annotation = cms.untracked.string('ZMM_14TeV_TuneCP5_cfi nevts:10'),
0074     name = cms.untracked.string('Applications'),
0075     version = cms.untracked.string('$Revision: 1.19 $')
0076 )
0077 
0078 # Output definition
0079 
0080 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0081     SelectEvents = cms.untracked.PSet(
0082         SelectEvents = cms.vstring('generation_step')
0083     ),
0084     dataset = cms.untracked.PSet(
0085         dataTier = cms.untracked.string('GEN-SIM'),
0086         filterName = cms.untracked.string('')
0087     ),
0088     fileName = cms.untracked.string('file:step1_ZMM_phase2.root'),
0089     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0090     splitLevel = cms.untracked.int32(0)
0091 )
0092 
0093 # Additional output definition
0094 
0095 # Other statements
0096 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0097 from Configuration.AlCa.GlobalTag import GlobalTag 
0098 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0099 
0100 process.generator = cms.EDFilter("Pythia8GeneratorFilter",
0101                                  pythiaHepMCVerbosity = cms.untracked.bool(False),
0102                                  maxEventsToPrint = cms.untracked.int32(0),
0103                                  pythiaPylistVerbosity = cms.untracked.int32(0),
0104                                  filterEfficiency = cms.untracked.double(1.0),
0105                                  comEnergy = cms.double(14000.0),
0106                                  PythiaParameters = cms.PSet(
0107                                      pythia8CommonSettings = cms.vstring(
0108                                          'Tune:preferLHAPDF = 2',
0109                                          'Main:timesAllowErrors = 10000',
0110                                          'Check:epTolErr = 0.01',
0111                                          'Beams:setProductionScalesFromLHEF = off',
0112                                          'SLHA:minMassSM = 1000.',
0113                                          'ParticleDecays:limitTau0 = on',
0114                                          'ParticleDecays:tau0Max = 10',
0115                                         'ParticleDecays:allowPhotonRadiation = on',
0116                                      ),
0117                                      pythia8CP5Settings = cms.vstring(
0118                                          'Tune:pp 14',
0119                                          'Tune:ee 7',
0120                                          'MultipartonInteractions:ecmPow=0.03344',
0121                                          'MultipartonInteractions:bProfile=2',
0122                                          'MultipartonInteractions:pT0Ref=1.41',
0123                                          'MultipartonInteractions:coreRadius=0.7634',
0124                                          'MultipartonInteractions:coreFraction=0.63',
0125                                          'ColourReconnection:range=5.176',
0126                                          'SigmaTotal:zeroAXB=off',
0127                                          'SpaceShower:alphaSorder=2',
0128                                          'SpaceShower:alphaSvalue=0.118',
0129                                          'SigmaProcess:alphaSvalue=0.118',
0130                                          'SigmaProcess:alphaSorder=2',
0131                                          'MultipartonInteractions:alphaSvalue=0.118',
0132                                          'MultipartonInteractions:alphaSorder=2',
0133                                          'TimeShower:alphaSorder=2',
0134                                          'TimeShower:alphaSvalue=0.118',
0135                                          'SigmaTotal:mode = 0',
0136                                          'SigmaTotal:sigmaEl = 21.89',
0137                                          'SigmaTotal:sigmaTot = 100.309',
0138                                          'PDF:pSet=LHAPDF6:NNPDF31_nnlo_as_0118',
0139                                      ),
0140                                      processParameters = cms.vstring(
0141                                          'WeakSingleBoson:ffbar2gmZ = on',
0142                                          '23:onMode = off',
0143                                          '23:onIfAny = 13',
0144                                          'PhaseSpace:mHatMin = 75.',
0145                                      ),
0146                                      parameterSets = cms.vstring('pythia8CommonSettings',
0147                                                                  'pythia8CP5Settings',
0148                                                                  'processParameters',
0149                                                              )
0150                                  )
0151 )
0152 
0153 process.mumugenfilter = cms.EDFilter("MCParticlePairFilter",
0154     MaxEta = cms.untracked.vdouble(4.0, 4.0),
0155     MinEta = cms.untracked.vdouble(-4.0, -4.0),
0156     MinPt = cms.untracked.vdouble(2.5, 2.5),
0157     ParticleCharge = cms.untracked.int32(-1),
0158     ParticleID1 = cms.untracked.vint32(13),
0159     ParticleID2 = cms.untracked.vint32(13),
0160     Status = cms.untracked.vint32(1, 1)
0161 )
0162 
0163 
0164 process.ProductionFilterSequence = cms.Sequence(process.generator+process.mumugenfilter)
0165 
0166 # Path and EndPath definitions
0167 process.generation_step = cms.Path(process.pgen)
0168 process.simulation_step = cms.Path(process.psim)
0169 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0170 process.endjob_step = cms.EndPath(process.endOfProcess)
0171 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0172 
0173 # Schedule definition
0174 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0175 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0176 associatePatAlgosToolsTask(process)
0177 # filter all path with the production filter sequence
0178 for path in process.paths:
0179     getattr(process,path).insert(0, process.ProductionFilterSequence)
0180 
0181 
0182 # Customisation from command line
0183 
0184 # Add early deletion of temporary data products to reduce peak memory need
0185 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0186 process = customiseEarlyDelete(process)
0187 # End adding early deletion