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