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)
23 process.MessageLogger.categories.append(
'TriggerSummaryProducerAOD')
24 process.MessageLogger.categories.append(
'L1GtTrigReport')
25 process.MessageLogger.categories.append(
'L1TGlobalSummary')
26 process.MessageLogger.categories.append(
'HLTrigReport')
44 labels = [
'gtDigis',
'simGtDigis',
'newGtDigis',
'hltGtDigis']
46 if label
in process.__dict__:
47 process.load(
'L1Trigger.GlobalTriggerAnalyzer.l1GtTrigReport_cfi')
48 process.l1GtTrigReport.L1GtRecordInputTag = cms.InputTag( label )
49 process.L1AnalyzerEndpath = cms.EndPath( process.l1GtTrigReport )
50 process.schedule.append(process.L1AnalyzerEndpath)
52 labels = [
'gtStage2Digis',
'simGtStage2Digis',
'newGtStage2Digis',
'hltGtStage2Digis']
54 if label
in process.__dict__:
55 process.load(
'L1Trigger.L1TGlobal.L1TGlobalSummary_cfi')
56 process.L1TGlobalSummary.AlgInputTag = cms.InputTag( label )
57 process.L1TGlobalSummary.ExtInputTag = cms.InputTag( label )
58 process.L1TAnalyzerEndpath = cms.EndPath(process.L1TGlobalSummary )
59 process.schedule.append(process.L1TAnalyzerEndpath)
61 if hasattr(process,
'TriggerMenu'):
62 delattr(process,
'TriggerMenu')
72 if not (
'HLTAnalyzerEndpath' in process.__dict__) :
73 if 'hltGtDigis' in process.__dict__:
74 from HLTrigger.Configuration.HLT_Fake_cff
import fragment
75 process.hltL1GtTrigReport = fragment.hltL1GtTrigReport
76 process.hltTrigReport = fragment.hltTrigReport
77 process.HLTAnalyzerEndpath = cms.EndPath(process.hltGtDigis + process.hltL1GtTrigReport + process.hltTrigReport)
78 process.schedule.append(process.HLTAnalyzerEndpath)
80 if 'hltGtStage2ObjectMap' in process.__dict__:
81 from HLTrigger.Configuration.HLT_FULL_cff
import fragment
82 process.hltL1TGlobalSummary = fragment.hltL1TGlobalSummary
83 process.hltTrigReport = fragment.hltTrigReport
84 process.HLTAnalyzerEndpath = cms.EndPath(process.hltGtStage2Digis + process.hltL1TGlobalSummary + process.hltTrigReport)
85 process.schedule.append(process.HLTAnalyzerEndpath)
87 if hasattr(process,
'TriggerMenu'):
88 delattr(process,
'TriggerMenu')
97 process.source.inputCommands = cms.untracked.vstring (
99 'drop *_hltL1GtObjectMap_*_*',
100 'drop *_TriggerResults_*_*',
101 'drop *_hltTriggerSummaryAOD_*_*',
104 process=
Base(process)
109 def MassReplaceInputTag(process,old="rawDataCollector",new="rawDataRepacker",verbose=False,moduleLabelOnly=False,skipLabelTest=False):
112 for s
in process.paths_().
keys():
114 for s
in process.endpaths_().
keys():
121 for s
in process.paths_().
keys():
123 for s
in process.endpaths_().
keys():
129 from Configuration.StandardSequences.Eras
import eras
131 l1repack = cms.Process(
'L1REPACK',eras.Run2_2016)
132 l1repack.load(
'Configuration.StandardSequences.SimL1EmulatorRepack_'+sequence+
'_cff')
134 for module
in l1repack.es_sources_():
135 if (
not hasattr(process,module)):
136 setattr(process,module,getattr(l1repack,module))
137 for module
in l1repack.es_producers_():
138 if (
not hasattr(process,module)):
139 setattr(process,module,getattr(l1repack,module))
141 for module
in l1repack.SimL1Emulator.expandAndClone().moduleNames():
142 setattr(process,module,getattr(l1repack,module))
143 process.SimL1Emulator = l1repack.SimL1Emulator
145 for path
in process.paths_():
146 getattr(process,path).
insert(0,process.SimL1Emulator)
147 for path
in process.endpaths_():
148 getattr(process,path).
insert(0,process.SimL1Emulator)
156 if ((xmlFile
is None)
or (xmlFile==
"")):
159 process.L1TriggerMenu= cms.ESProducer(
"L1TUtmTriggerMenuESProducer",
160 L1TriggerMenuFile= cms.string(xmlFile)
162 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