Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 13:03:12

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run2_2018_cff import Run2_2018
0004 from Configuration.ProcessModifiers.dd4hep_cff import dd4hep
0005 process = cms.Process('HLT',Run2_2018,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('Configuration.Geometry.GeometryDD4hepExtended2018DD4hepReco_cff')
0014 process.load('Configuration.StandardSequences.MagneticField_cff')
0015 process.load('Configuration.StandardSequences.Digi_cff')
0016 process.load('Configuration.StandardSequences.SimL1Emulator_cff')
0017 process.load('Configuration.StandardSequences.DigiToRaw_cff')
0018 process.load('HLTrigger.Configuration.HLT_Fake2_cff')
0019 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0020 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0021 
0022 process.maxEvents = cms.untracked.PSet(
0023     input = cms.untracked.int32(10),
0024     output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
0025 )
0026 
0027 # Input source
0028 process.source = cms.Source("PoolSource",
0029     dropDescendantsOfDroppedBranches = cms.untracked.bool(False),
0030     fileNames = cms.untracked.vstring('file:step1.root'),
0031     inputCommands = cms.untracked.vstring(
0032         'keep *',
0033         'drop *_genParticles_*_*',
0034         'drop *_genParticlesForJets_*_*',
0035         'drop *_kt4GenJets_*_*',
0036         'drop *_kt6GenJets_*_*',
0037         'drop *_iterativeCone5GenJets_*_*',
0038         'drop *_ak4GenJets_*_*',
0039         'drop *_ak7GenJets_*_*',
0040         'drop *_ak8GenJets_*_*',
0041         'drop *_ak4GenJetsNoNu_*_*',
0042         'drop *_ak8GenJetsNoNu_*_*',
0043         'drop *_genCandidatesForMET_*_*',
0044         'drop *_genParticlesForMETAllVisible_*_*',
0045         'drop *_genMetCalo_*_*',
0046         'drop *_genMetCaloAndNonPrompt_*_*',
0047         'drop *_genMetTrue_*_*',
0048         'drop *_genMetIC5GenJs_*_*'
0049     ),
0050     secondaryFileNames = cms.untracked.vstring()
0051 )
0052 
0053 process.options = cms.untracked.PSet(
0054     FailPath = cms.untracked.vstring(),
0055     IgnoreCompletely = cms.untracked.vstring(),
0056     Rethrow = cms.untracked.vstring(),
0057     SkipEvent = cms.untracked.vstring(),
0058     accelerators = cms.untracked.vstring('*'),
0059     allowUnscheduled = cms.obsolete.untracked.bool,
0060     canDeleteEarly = cms.untracked.vstring(),
0061     deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
0062     dumpOptions = cms.untracked.bool(False),
0063     emptyRunLumiMode = cms.obsolete.untracked.string,
0064     eventSetup = cms.untracked.PSet(
0065         forceNumberOfConcurrentIOVs = cms.untracked.PSet(
0066             allowAnyLabel_=cms.required.untracked.uint32
0067         ),
0068         numberOfConcurrentIOVs = cms.untracked.uint32(0)
0069     ),
0070     fileMode = cms.untracked.string('FULLMERGE'),
0071     forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
0072     makeTriggerResults = cms.obsolete.untracked.bool,
0073     numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(0),
0074     numberOfConcurrentRuns = cms.untracked.uint32(1),
0075     numberOfStreams = cms.untracked.uint32(0),
0076     numberOfThreads = cms.untracked.uint32(1),
0077     printDependencies = cms.untracked.bool(False),
0078     sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
0079     throwIfIllegalParameter = cms.untracked.bool(True),
0080     wantSummary = cms.untracked.bool(False)
0081 )
0082 
0083 # Production Info
0084 process.configurationMetadata = cms.untracked.PSet(
0085     annotation = cms.untracked.string('step2 nevts:10'),
0086     name = cms.untracked.string('Applications'),
0087     version = cms.untracked.string('$Revision: 1.19 $')
0088 )
0089 
0090 # Output definition
0091 
0092 process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0093     dataset = cms.untracked.PSet(
0094         dataTier = cms.untracked.string('GEN-SIM-DIGI-RAW'),
0095         filterName = cms.untracked.string('')
0096     ),
0097     fileName = cms.untracked.string('file:step2.root'),
0098     outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0099     splitLevel = cms.untracked.int32(0)
0100 )
0101 
0102 # Additional output definition
0103 
0104 # Other statements
0105 process.mix.digitizers = cms.PSet(process.theDigitizersValid)
0106 from Configuration.AlCa.GlobalTag import GlobalTag
0107 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2018_realistic', '')
0108 
0109 # Path and EndPath definitions
0110 process.digitisation_step = cms.Path(process.pdigi_valid)
0111 process.L1simulation_step = cms.Path(process.SimL1Emulator)
0112 process.digi2raw_step = cms.Path(process.DigiToRaw)
0113 process.endjob_step = cms.EndPath(process.endOfProcess)
0114 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0115 
0116 # Schedule definition
0117 # process.schedule imported from cff in HLTrigger.Configuration
0118 process.schedule.insert(0, process.digitisation_step)
0119 process.schedule.insert(1, process.L1simulation_step)
0120 process.schedule.insert(2, process.digi2raw_step)
0121 process.schedule.extend([process.endjob_step,process.FEVTDEBUGHLToutput_step])
0122 from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
0123 associatePatAlgosToolsTask(process)
0124 
0125 # customisation of the process.
0126 
0127 # Automatic addition of the customisation function from HLTrigger.Configuration.customizeHLTforMC
0128 from HLTrigger.Configuration.customizeHLTforMC import customizeHLTforMC 
0129 
0130 #call to customisation function customizeHLTforMC imported from HLTrigger.Configuration.customizeHLTforMC
0131 process = customizeHLTforMC(process)
0132 
0133 # End of customisation functions
0134 
0135 
0136 # Customisation from command line
0137 
0138 # Add early deletion of temporary data products to reduce peak memory need
0139 from Configuration.StandardSequences.earlyDeleteSettings_cff import customiseEarlyDelete
0140 process = customiseEarlyDelete(process)
0141 # End adding early deletion