Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:18:26

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ## VarParsing
0004 import FWCore.ParameterSet.VarParsing as VarParsing
0005 options = VarParsing.VarParsing ('analysis')
0006 options.register('globalTag', 'auto:run3_data', options.multiplicity.singleton, options.varType.string, 'name of global tag')
0007 options.setDefault('inputFiles', [
0008   '/store/data/Run2022D/HLTPhysics/MINIAOD/PromptReco-v2/000/357/898/00000/99afb702-5640-453c-8d48-49b9ba7098d9.root'
0009 ])
0010 options.setDefault('maxEvents', 10)
0011 options.parseArguments()
0012 
0013 ## Process
0014 process = cms.Process('TEST')
0015 
0016 process.options.wantSummary = False
0017 process.maxEvents.input = options.maxEvents
0018 
0019 ## Source
0020 process.source = cms.Source('PoolSource',
0021     fileNames = cms.untracked.vstring(options.inputFiles)
0022 )
0023 
0024 ## MessageLogger
0025 process.load('FWCore.MessageLogger.MessageLogger_cfi')
0026 process.MessageLogger.cerr.FwkReport = cms.untracked.PSet(
0027     reportEvery = cms.untracked.int32(5000),
0028     limit = cms.untracked.int32(10000000)
0029 )
0030 
0031 ## GlobalTag
0032 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0033 from Configuration.AlCa.GlobalTag import GlobalTag
0034 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0035 
0036 ## EventData Modules
0037 _hltPSExample = cms.EDAnalyzer('HLTPrescaleExample',
0038     hltProcess = cms.string('HLT'),
0039     hltPath = cms.string(''),
0040     hltPSProvCfg = cms.PSet(
0041         stageL1Trigger = cms.uint32(2),
0042         l1tAlgBlkInputTag = cms.InputTag('gtStage2Digis'),
0043         l1tExtBlkInputTag = cms.InputTag('gtStage2Digis')
0044     )
0045 )
0046 
0047 process.hltPSExample1 = _hltPSExample.clone(hltPath = 'HLT_Photon33_v6')
0048 process.hltPSExample2 = _hltPSExample.clone(hltPath = 'HLT_Photon50_v14')
0049 process.hltPSExample3 = _hltPSExample.clone(hltPath = 'HLT_Random_v3')
0050 
0051 ## Path
0052 process.p = cms.Path(
0053     process.hltPSExample1
0054   + process.hltPSExample2
0055   + process.hltPSExample3
0056 )