1 import FWCore.ParameterSet.Config
as cms
6 if 'hltTrigReport' in process.__dict__:
7 process.hltTrigReport.HLTriggerResults = cms.InputTag(
'TriggerResults',
'',process.name_() )
9 if 'hltDQMHLTScalers' in process.__dict__:
10 process.hltDQMHLTScalers.triggerResults = cms.InputTag(
'TriggerResults',
'',process.name_() )
12 if 'hltDQML1SeedLogicScalers' in process.__dict__:
13 process.hltDQML1SeedLogicScalers.processname = process.name_()
21 process.options.wantSummary = cms.untracked.bool(
True)
22 process.options.numberOfThreads = cms.untracked.uint32( 4 )
23 process.options.numberOfStreams = cms.untracked.uint32( 0 )
24 process.options.sizeOfStackForThreadsInKB = cms.untracked.uint32( 10*1024 )
26 process.MessageLogger.categories.append(
'TriggerSummaryProducerAOD')
27 process.MessageLogger.categories.append(
'L1GtTrigReport')
28 process.MessageLogger.categories.append(
'L1TGlobalSummary')
29 process.MessageLogger.categories.append(
'HLTrigReport')
47 labels = [
'gtDigis',
'simGtDigis',
'newGtDigis',
'hltGtDigis']
49 if label
in process.__dict__:
50 process.load(
'L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi')
51 process.l1GtTrigReport.L1GtRecordInputTag = cms.InputTag( label )
52 process.L1AnalyzerEndpath = cms.EndPath( process.l1GtTrigReport )
53 process.schedule.append(process.L1AnalyzerEndpath)
55 labels = [
'gtStage2Digis',
'simGtStage2Digis',
'newGtStage2Digis',
'hltGtStage2Digis']
57 if label
in process.__dict__:
58 process.load(
'L1Trigger.L1TGlobal.L1TGlobalSummary_cfi')
59 process.L1TGlobalSummary.AlgInputTag = cms.InputTag( label )
60 process.L1TGlobalSummary.ExtInputTag = cms.InputTag( label )
61 process.L1TAnalyzerEndpath = cms.EndPath(process.L1TGlobalSummary )
62 process.schedule.append(process.L1TAnalyzerEndpath)
64 if hasattr(process,
'TriggerMenu'):
65 delattr(process,
'TriggerMenu')
75 if not (
'HLTAnalyzerEndpath' in process.__dict__) :
76 if 'hltGtDigis' in process.__dict__:
77 from HLTrigger.Configuration.HLT_Fake_cff
import fragment
78 process.hltL1GtTrigReport = fragment.hltL1GtTrigReport
79 process.hltTrigReport = fragment.hltTrigReport
80 process.HLTAnalyzerEndpath = cms.EndPath(process.hltGtDigis + process.hltL1GtTrigReport + process.hltTrigReport)
81 process.schedule.append(process.HLTAnalyzerEndpath)
83 if 'hltGtStage2ObjectMap' in process.__dict__:
84 from HLTrigger.Configuration.HLT_FULL_cff
import fragment
85 process.hltL1TGlobalSummary = fragment.hltL1TGlobalSummary
86 process.hltTrigReport = fragment.hltTrigReport
87 process.HLTAnalyzerEndpath = cms.EndPath(process.hltGtStage2Digis + process.hltL1TGlobalSummary + process.hltTrigReport)
88 process.schedule.append(process.HLTAnalyzerEndpath)
90 if hasattr(process,
'TriggerMenu'):
91 delattr(process,
'TriggerMenu')
100 process.source.inputCommands = cms.untracked.vstring (
102 'drop *_hltL1GtObjectMap_*_*',
103 'drop *_TriggerResults_*_*',
104 'drop *_hltTriggerSummaryAOD_*_*',
107 process=
Base(process)
112 def MassReplaceInputTag(process,old="rawDataCollector",new="rawDataRepacker",verbose=False,moduleLabelOnly=False,skipLabelTest=False):
115 for s
in process.paths_().
keys():
117 for s
in process.endpaths_().
keys():
124 for s
in process.paths_().
keys():
126 for s
in process.endpaths_().
keys():
132 from Configuration.StandardSequences.Eras
import eras
134 l1repack = cms.Process(
'L1REPACK',eras.Run2_2016)
135 l1repack.load(
'Configuration.StandardSequences.SimL1EmulatorRepack_'+sequence+
'_cff')
137 for module
in l1repack.es_sources_():
138 if (
not hasattr(process,module)):
139 setattr(process,module,getattr(l1repack,module))
140 for module
in l1repack.es_producers_():
141 if (
not hasattr(process,module)):
142 setattr(process,module,getattr(l1repack,module))
144 for module
in l1repack.SimL1Emulator.expandAndClone().moduleNames():
145 setattr(process,module,getattr(l1repack,module))
146 process.SimL1Emulator = l1repack.SimL1Emulator
148 for path
in process.paths_():
149 getattr(process,path).
insert(0,process.SimL1Emulator)
150 for path
in process.endpaths_():
151 getattr(process,path).
insert(0,process.SimL1Emulator)
159 if ((xmlFile
is None)
or (xmlFile==
"")):
162 process.L1TriggerMenu= cms.ESProducer(
"L1TUtmTriggerMenuESProducer",
163 L1TriggerMenuFile= cms.string(xmlFile)
165 process.ESPreferL1TXML = cms.ESPrefer(
"L1TUtmTriggerMenuESProducer",
"L1TriggerMenu")
def massSearchReplaceAnyInputTag
def massSearchReplaceParam
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
return(e1-e2)*(e1-e2)+dp *dp