Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-17 02:28:26

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Phase2C11_dd4hep_cff import Phase2C11_dd4hep
0004 
0005 process = cms.Process('SIM',Phase2C11_dd4hep)
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('Geometry.EcalCommonData.ecalSimulationParameters_cff')
0014 process.load('Geometry.HcalCommonData.hcalDDDSimConstants_cff')
0015 process.load('Geometry.HGCalCommonData.hgcalEEParametersInitialization_cfi')
0016 process.load('Geometry.HGCalCommonData.hgcalEENumberingInitialization_cfi')
0017 process.load('Configuration.StandardSequences.MagneticField_cff')
0018 process.load('Configuration.StandardSequences.Generator_cff')
0019 process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC14TeV_cfi')
0020 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0021 process.load('Configuration.StandardSequences.SimIdeal_cff')
0022 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0023 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0024 
0025 process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer",
0026                                             confGeomXMLFiles = cms.FileInPath('Geometry/HGCalCommonData/data/dd4hep/cms-test-ddhgcalwaferF-algorithm.xml'),
0027                                             appendToDataLabel = cms.string('')
0028                                             )
0029 
0030 process.DDSpecParRegistryESProducer = cms.ESProducer("DDSpecParRegistryESProducer",
0031                                                      appendToDataLabel = cms.string('')
0032 )
0033 
0034 process.DDVectorRegistryESProducer = cms.ESProducer("DDVectorRegistryESProducer",
0035                                                     appendToDataLabel = cms.string(''))
0036 
0037 process.DDCompactViewESProducer = cms.ESProducer("DDCompactViewESProducer",
0038                                                  appendToDataLabel = cms.string('')
0039 )
0040 
0041 process.maxEvents = cms.untracked.PSet(
0042     input = cms.untracked.int32(10),
0043     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0044 )
0045 
0046 if hasattr(process,'MessageLogger'):
0047     process.MessageLogger.HGCalGeom=dict()
0048     process.MessageLogger.HGCSim=dict()
0049     process.MessageLogger.G4cout=dict()
0050     process.MessageLogger.G4cerr=dict()
0051     process.MessageLogger.SimG4CoreApplication=dict()
0052 
0053 # Input source
0054 process.source = cms.Source("EmptySource")
0055 
0056 process.options = cms.untracked.PSet(
0057     FailPath = cms.untracked.vstring(),
0058     IgnoreCompletely = cms.untracked.vstring(),
0059     Rethrow = cms.untracked.vstring(),
0060     SkipEvent = cms.untracked.vstring(),
0061     allowUnscheduled = cms.obsolete.untracked.bool,
0062     canDeleteEarly = cms.untracked.vstring(),
0063     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0064     emptyRunLumiMode = cms.obsolete.untracked.string,
0065     eventSetup = cms.untracked.PSet(
0066         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0067             allowAnyLabel_=cms.required.untracked.uint32
0068         ),
0069         numberOfConcurrentIOVs = cms.untracked.uint32(1)
0070     ),
0071     fileMode = cms.untracked.string('FULLMERGE'),
0072     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0073     makeTriggerResults = cms.obsolete.untracked.bool,
0074     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1),
0075     numberOfConcurrentRuns = cms.untracked.uint32(1),
0076     numberOfStreams = cms.untracked.uint32(0),
0077     numberOfThreads = cms.untracked.uint32(1),
0078     printDependencies = cms.untracked.bool(False),
0079     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0080     throwIfIllegalParameter = cms.untracked.bool(True),
0081     wantSummary = cms.untracked.bool(False)
0082 )
0083 
0084 # Production Info
0085 process.configurationMetadata = cms.untracked.PSet(
0086     annotation = cms.untracked.string('TTbar_14TeV_TuneCP5_cfi nevts:10'),
0087     name = cms.untracked.string('Applications'),
0088     version = cms.untracked.string('$Revision: 1.19 $')
0089 )
0090 
0091 # Output definition
0092 
0093 process.FEVTDEBUGoutput = cms.OutputModule("PoolOutputModule",
0094     SelectEvents = cms.untracked.PSet(
0095         SelectEvents = cms.vstring('generation_step')
0096     ),
0097     dataset = cms.untracked.PSet(
0098         dataTier = cms.untracked.string('GEN-SIM'),
0099         filterName = cms.untracked.string('')
0100     ),
0101     fileName = cms.untracked.string('file:step1.root'),
0102     outputCommands = process.FEVTDEBUGEventContent.outputCommands,
0103     splitLevel = cms.untracked.int32(0)
0104 )
0105 
0106 # Additional output definition
0107 
0108 # Other statements
0109 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0110 from Configuration.AlCa.GlobalTag import GlobalTag
0111 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0112 
0113 process.generator = cms.EDFilter("Pythia8GeneratorFilter",
0114     PythiaParameters = cms.PSet(
0115         parameterSets = cms.vstring(
0116             'pythia8CommonSettings', 
0117             'pythia8CP5Settings', 
0118             'processParameters'
0119         ),
0120         processParameters = cms.vstring(
0121             'Top:gg2ttbar = on ', 
0122             'Top:qqbar2ttbar = on ', 
0123             '6:m0 = 175 '
0124         ),
0125         pythia8CP5Settings = cms.vstring(
0126             'Tune:pp 14', 
0127             'Tune:ee 7', 
0128             'MultipartonInteractions:ecmPow=0.03344', 
0129             'MultipartonInteractions:bProfile=2', 
0130             'MultipartonInteractions:pT0Ref=1.41', 
0131             'MultipartonInteractions:coreRadius=0.7634', 
0132             'MultipartonInteractions:coreFraction=0.63', 
0133             'ColourReconnection:range=5.176', 
0134             'SigmaTotal:zeroAXB=off', 
0135             'SpaceShower:alphaSorder=2', 
0136             'SpaceShower:alphaSvalue=0.118', 
0137             'SigmaProcess:alphaSvalue=0.118', 
0138             'SigmaProcess:alphaSorder=2', 
0139             'MultipartonInteractions:alphaSvalue=0.118', 
0140             'MultipartonInteractions:alphaSorder=2', 
0141             'TimeShower:alphaSorder=2', 
0142             'TimeShower:alphaSvalue=0.118', 
0143             'SigmaTotal:mode = 0', 
0144             'SigmaTotal:sigmaEl = 21.89', 
0145             'SigmaTotal:sigmaTot = 100.309', 
0146             'PDF:pSet=LHAPDF6:NNPDF31_nnlo_as_0118'
0147         ),
0148         pythia8CommonSettings = cms.vstring(
0149             'Tune:preferLHAPDF = 2', 
0150             'Main:timesAllowErrors = 10000', 
0151             'Check:epTolErr = 0.01', 
0152             'Beams:setProductionScalesFromLHEF = off', 
0153             'SLHA:minMassSM = 1000.', 
0154             'ParticleDecays:limitTau0 = on', 
0155             'ParticleDecays:tau0Max = 10', 
0156             'ParticleDecays:allowPhotonRadiation = on'
0157         )
0158     ),
0159     comEnergy = cms.double(14000.0),
0160     filterEfficiency = cms.untracked.double(1.0),
0161     maxEventsToPrint = cms.untracked.int32(0),
0162     pythiaHepMCVerbosity = cms.untracked.bool(False),
0163     pythiaPylistVerbosity = cms.untracked.int32(0)
0164 )
0165 
0166 
0167 process.ProductionFilterSequence = cms.Sequence(process.generator)
0168 
0169 # Path and EndPath definitions
0170 process.generation_step = cms.Path(process.pgen)
0171 process.simulation_step = cms.Path(process.psim)
0172 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0173 process.endjob_step = cms.EndPath(process.endOfProcess)
0174 process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
0175 
0176 process.g4SimHits.OnlySDs = ['HGCalSensitiveDetector', 
0177                              'HGCScintillatorSensitiveDetector',
0178                              'CaloTrkProcessing',
0179                              'HGCSensitiveDetector',
0180                              'HcalSensitiveDetector']
0181 
0182 # Schedule definition
0183 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.FEVTDEBUGoutput_step)
0184 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0185 associatePatAlgosToolsTask(process)
0186 # filter all path with the production filter sequence
0187 for path in process.paths:
0188     getattr(process,path).insert(0, process.ProductionFilterSequence)
0189 
0190 
0191 
0192 # Customisation from command line
0193 
0194 # Add early deletion of temporary data products to reduce peak memory need
0195 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0196 process = customiseEarlyDelete(process)
0197 # End adding early deletion