Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:48

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.VtxSmearedRealistic25ns13p6TeVEarly2022Collision_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     IgnoreCompletely = cms.untracked.vstring(),
0046     Rethrow = cms.untracked.vstring(),
0047     TryToContinue = cms.untracked.vstring(),
0048     allowUnscheduled = cms.obsolete.untracked.bool,
0049     canDeleteEarly = cms.untracked.vstring(),
0050     emptyRunLumiMode = cms.obsolete.untracked.string,
0051     eventSetup = cms.untracked.PSet(
0052         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0053 
0054         ),
0055         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0056     ),
0057     fileMode = cms.untracked.string('FULLMERGE'),
0058     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0059     makeTriggerResults = cms.obsolete.untracked.bool,
0060     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0061     numberOfConcurrentRuns = cms.untracked.uint32(1),
0062     numberOfStreams = cms.untracked.uint32(0),
0063     numberOfThreads = cms.untracked.uint32(1),
0064     printDependencies = cms.untracked.bool(False),
0065     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0066     throwIfIllegalParameter = cms.untracked.bool(True),
0067     wantSummary = cms.untracked.bool(False)
0068 )
0069 
0070 # Production Info
0071 process.configurationMetadata = cms.untracked.PSet(
0072     annotation = cms.untracked.string('ZMM_14TeV_TuneCP5_cfi nevts:10'),
0073     name = cms.untracked.string('Applications'),
0074     version = cms.untracked.string('$Revision: 1.19 $')
0075 )
0076 
0077 # Output definition
0078 
0079 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0080     SelectEvents = cms.untracked.PSet(
0081         SelectEvents = cms.vstring('generation_step')
0082     ),
0083     dataset = cms.untracked.PSet(
0084         dataTier = cms.untracked.string('GEN-SIM'),
0085         filterName = cms.untracked.string('')
0086     ),
0087     fileName = cms.untracked.string('file:step1_ZMM_phase2.root'),
0088     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0089     splitLevel = cms.untracked.int32(0)
0090 )
0091 
0092 # Additional output definition
0093 
0094 # Other statements
0095 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0096 from Configuration.AlCa.GlobalTag import GlobalTag 
0097 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0098 
0099 process.generator = cms.EDFilter("Pythia8GeneratorFilter",
0100                                  pythiaHepMCVerbosity = cms.untracked.bool(False),
0101                                  maxEventsToPrint = cms.untracked.int32(0),
0102                                  pythiaPylistVerbosity = cms.untracked.int32(0),
0103                                  filterEfficiency = cms.untracked.double(1.0),
0104                                  comEnergy = cms.double(14000.0),
0105                                  PythiaParameters = cms.PSet(
0106                                      pythia8CommonSettings = cms.vstring(
0107                                          'Tune:preferLHAPDF = 2',
0108                                          'Main:timesAllowErrors = 10000',
0109                                          'Check:epTolErr = 0.01',
0110                                          'Beams:setProductionScalesFromLHEF = off',
0111                                          'SLHA:minMassSM = 1000.',
0112                                          'ParticleDecays:limitTau0 = on',
0113                                          'ParticleDecays:tau0Max = 10',
0114                                         'ParticleDecays:allowPhotonRadiation = on',
0115                                      ),
0116                                      pythia8CP5Settings = cms.vstring(
0117                                          'Tune:pp 14',
0118                                          'Tune:ee 7',
0119                                          'MultipartonInteractions:ecmPow=0.03344',
0120                                          'MultipartonInteractions:bProfile=2',
0121                                          'MultipartonInteractions:pT0Ref=1.41',
0122                                          'MultipartonInteractions:coreRadius=0.7634',
0123                                          'MultipartonInteractions:coreFraction=0.63',
0124                                          'ColourReconnection:range=5.176',
0125                                          'SigmaTotal:zeroAXB=off',
0126                                          'SpaceShower:alphaSorder=2',
0127                                          'SpaceShower:alphaSvalue=0.118',
0128                                          'SigmaProcess:alphaSvalue=0.118',
0129                                          'SigmaProcess:alphaSorder=2',
0130                                          'MultipartonInteractions:alphaSvalue=0.118',
0131                                          'MultipartonInteractions:alphaSorder=2',
0132                                          'TimeShower:alphaSorder=2',
0133                                          'TimeShower:alphaSvalue=0.118',
0134                                          'SigmaTotal:mode = 0',
0135                                          'SigmaTotal:sigmaEl = 21.89',
0136                                          'SigmaTotal:sigmaTot = 100.309',
0137                                          'PDF:pSet=LHAPDF6:NNPDF31_nnlo_as_0118',
0138                                      ),
0139                                      processParameters = cms.vstring(
0140                                          'WeakSingleBoson:ffbar2gmZ = on',
0141                                          '23:onMode = off',
0142                                          '23:onIfAny = 13',
0143                                          'PhaseSpace:mHatMin = 75.',
0144                                      ),
0145                                      parameterSets = cms.vstring('pythia8CommonSettings',
0146                                                                  'pythia8CP5Settings',
0147                                                                  'processParameters',
0148                                                              )
0149                                  )
0150 )
0151 
0152 process.mumugenfilter = cms.EDFilter("MCParticlePairFilter",
0153     MaxEta = cms.untracked.vdouble(4.0, 4.0),
0154     MinEta = cms.untracked.vdouble(-4.0, -4.0),
0155     MinPt = cms.untracked.vdouble(2.5, 2.5),
0156     ParticleCharge = cms.untracked.int32(-1),
0157     ParticleID1 = cms.untracked.vint32(13),
0158     ParticleID2 = cms.untracked.vint32(13),
0159     Status = cms.untracked.vint32(1, 1)
0160 )
0161 
0162 
0163 process.ProductionFilterSequence = cms.Sequence(process.generator+process.mumugenfilter)
0164 
0165 # Path and EndPath definitions
0166 process.generation_step = cms.Path(process.pgen)
0167 process.simulation_step = cms.Path(process.psim)
0168 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0169 process.endjob_step = cms.EndPath(process.endOfProcess)
0170 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0171 
0172 # Schedule definition
0173 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0174 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0175 associatePatAlgosToolsTask(process)
0176 # filter all path with the production filter sequence
0177 for path in process.paths:
0178     getattr(process,path).insert(0, process.ProductionFilterSequence)
0179 
0180 
0181 # Customisation from command line
0182 
0183 # Add early deletion of temporary data products to reduce peak memory need
0184 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0185 process = customiseEarlyDelete(process)
0186 # End adding early deletion