3 import FWCore.ParameterSet.Config
as cms
5 fragment = cms.ProcessFragment(
"HLT" )
7 fragment.HLTConfigVersion = cms.PSet(
8 tableName = cms.string(
'/dev/CMSSW_9_2_0/Fake1/V3')
11 fragment.streams = cms.PSet( A = cms.vstring(
'InitialPD' ) )
12 fragment.datasets = cms.PSet( InitialPD = cms.vstring(
'HLT_Physics_v1',
16 fragment.CastorDbProducer = cms.ESProducer(
"CastorDbProducer",
17 appendToDataLabel = cms.string(
"" )
19 fragment.hcalDDDRecConstants = cms.ESProducer(
"HcalDDDRecConstantsESModule",
20 appendToDataLabel = cms.string(
"" )
22 fragment.hcalDDDSimConstants = cms.ESProducer(
"HcalDDDSimConstantsESModule",
23 appendToDataLabel = cms.string(
"" )
26 fragment.hltGetConditions = cms.EDAnalyzer(
"EventSetupRecordDataGetter",
29 verbose = cms.untracked.bool(
False )
31 fragment.hltGetRaw = cms.EDAnalyzer(
"HLTGetRaw",
32 RawDataCollection = cms.InputTag(
"rawDataCollector" )
34 fragment.hltBoolFalse = cms.EDFilter(
"HLTBool",
35 result = cms.bool(
False )
37 fragment.hltTriggerType = cms.EDFilter(
"HLTTriggerTypeFilter",
38 SelectedTriggerType = cms.int32( 1 )
40 fragment.hltGtDigis = cms.EDProducer(
"L1GlobalTriggerRawToDigi",
41 DaqGtFedId = cms.untracked.int32( 813 ),
42 Verbosity = cms.untracked.int32( 0 ),
43 UnpackBxInEvent = cms.int32( 5 ),
44 ActiveBoardsMask = cms.uint32( 0xffff ),
45 DaqGtInputTag = cms.InputTag(
"rawDataCollector" )
47 fragment.hltCaloStage1Digis = cms.EDProducer(
"L1TRawToDigi",
48 lenSlinkTrailer = cms.untracked.int32( 8 ),
49 lenAMC13Header = cms.untracked.int32( 8 ),
50 CTP7 = cms.untracked.bool(
False ),
51 lenAMC13Trailer = cms.untracked.int32( 8 ),
52 Setup = cms.string(
"stage1::CaloSetup" ),
53 MinFeds = cms.uint32( 0 ),
54 InputLabel = cms.InputTag(
"rawDataCollector" ),
55 lenSlinkHeader = cms.untracked.int32( 8 ),
56 MTF7 = cms.untracked.bool(
False ),
57 FWId = cms.uint32( 4294967295 ),
58 debug = cms.untracked.bool(
False ),
59 FedIds = cms.vint32( 1352 ),
60 lenAMCHeader = cms.untracked.int32( 8 ),
61 lenAMCTrailer = cms.untracked.int32( 0 ),
62 FWOverride = cms.bool(
False )
64 fragment.hltCaloStage1LegacyFormatDigis = cms.EDProducer(
"L1TCaloUpgradeToGCTConverter",
65 InputHFCountsCollection = cms.InputTag(
'hltCaloStage1Digis',
'HFBitCounts' ),
66 InputHFSumsCollection = cms.InputTag(
'hltCaloStage1Digis',
'HFRingSums' ),
67 bxMin = cms.int32( 0 ),
68 bxMax = cms.int32( 0 ),
69 InputCollection = cms.InputTag(
"hltCaloStage1Digis" ),
70 InputIsoTauCollection = cms.InputTag(
'hltCaloStage1Digis',
'isoTaus' ),
71 InputRlxTauCollection = cms.InputTag(
'hltCaloStage1Digis',
'rlxTaus' )
73 fragment.hltL1GtObjectMap = cms.EDProducer(
"L1GlobalTrigger",
74 TechnicalTriggersUnprescaled = cms.bool(
True ),
75 ProduceL1GtObjectMapRecord = cms.bool(
True ),
76 AlgorithmTriggersUnmasked = cms.bool(
False ),
77 EmulateBxInEvent = cms.int32( 1 ),
78 AlgorithmTriggersUnprescaled = cms.bool(
True ),
79 ProduceL1GtDaqRecord = cms.bool(
False ),
80 ReadTechnicalTriggerRecords = cms.bool(
True ),
81 RecordLength = cms.vint32( 3, 0 ),
82 TechnicalTriggersUnmasked = cms.bool(
False ),
83 ProduceL1GtEvmRecord = cms.bool(
False ),
84 GmtInputTag = cms.InputTag(
"hltGtDigis" ),
85 TechnicalTriggersVetoUnmasked = cms.bool(
True ),
86 AlternativeNrBxBoardEvm = cms.uint32( 0 ),
87 TechnicalTriggersInputTags = cms.VInputTag(
'simBscDigis' ),
88 CastorInputTag = cms.InputTag(
"castorL1Digis" ),
89 GctInputTag = cms.InputTag(
"hltCaloStage1LegacyFormatDigis" ),
90 AlternativeNrBxBoardDaq = cms.uint32( 0 ),
91 WritePsbL1GtDaqRecord = cms.bool(
False ),
92 BstLengthBytes = cms.int32( -1 )
94 fragment.hltL1extraParticles = cms.EDProducer(
"L1ExtraParticlesProd",
95 tauJetSource = cms.InputTag(
'hltCaloStage1LegacyFormatDigis',
'tauJets' ),
96 etHadSource = cms.InputTag(
"hltCaloStage1LegacyFormatDigis" ),
97 isoTauJetSource = cms.InputTag(
'hltCaloStage1LegacyFormatDigis',
'isoTauJets' ),
98 etTotalSource = cms.InputTag(
"hltCaloStage1LegacyFormatDigis" ),
99 centralBxOnly = cms.bool(
True ),
100 centralJetSource = cms.InputTag(
'hltCaloStage1LegacyFormatDigis',
'cenJets' ),
101 etMissSource = cms.InputTag(
"hltCaloStage1LegacyFormatDigis" ),
102 hfRingEtSumsSource = cms.InputTag(
"hltCaloStage1LegacyFormatDigis" ),
103 produceMuonParticles = cms.bool(
True ),
104 forwardJetSource = cms.InputTag(
'hltCaloStage1LegacyFormatDigis',
'forJets' ),
105 ignoreHtMiss = cms.bool(
False ),
106 htMissSource = cms.InputTag(
"hltCaloStage1LegacyFormatDigis" ),
107 produceCaloParticles = cms.bool(
True ),
108 muonSource = cms.InputTag(
"hltGtDigis" ),
109 isolatedEmSource = cms.InputTag(
'hltCaloStage1LegacyFormatDigis',
'isoEm' ),
110 nonIsolatedEmSource = cms.InputTag(
'hltCaloStage1LegacyFormatDigis',
'nonIsoEm' ),
111 hfRingBitCountsSource = cms.InputTag(
"hltCaloStage1LegacyFormatDigis" )
113 fragment.hltScalersRawToDigi = cms.EDProducer(
"ScalersRawToDigi",
114 scalersInputTag = cms.InputTag(
"rawDataCollector" )
116 fragment.hltOnlineBeamSpot = cms.EDProducer(
"BeamSpotOnlineProducer",
117 maxZ = cms.double( 40.0 ),
118 src = cms.InputTag(
"hltScalersRawToDigi" ),
119 gtEvmLabel = cms.InputTag(
"" ),
120 changeToCMSCoordinates = cms.bool(
False ),
121 setSigmaZ = cms.double( 0.0 ),
122 maxRadius = cms.double( 2.0 )
124 fragment.hltPrePhysics = cms.EDFilter(
"HLTPrescaler",
125 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" ),
126 offset = cms.uint32( 0 )
128 fragment.hltBoolEnd = cms.EDFilter(
"HLTBool",
129 result = cms.bool(
True )
131 fragment.hltRandomEventsFilter = cms.EDFilter(
"HLTTriggerTypeFilter",
132 SelectedTriggerType = cms.int32( 3 )
134 fragment.hltPreRandom = cms.EDFilter(
"HLTPrescaler",
135 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" ),
136 offset = cms.uint32( 0 )
138 fragment.hltL1sL1ZeroBias = cms.EDFilter(
"HLTLevel1GTSeed",
139 L1SeedsLogicalExpression = cms.string(
"L1_ZeroBias" ),
140 saveTags = cms.bool(
True ),
141 L1MuonCollectionTag = cms.InputTag(
"hltL1extraParticles" ),
142 L1UseL1TriggerObjectMaps = cms.bool(
True ),
143 L1UseAliasesForSeeding = cms.bool(
True ),
144 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" ),
145 L1CollectionsTag = cms.InputTag(
"hltL1extraParticles" ),
146 L1NrBxInEvent = cms.int32( 3 ),
147 L1GtObjectMapTag = cms.InputTag(
"hltL1GtObjectMap" ),
148 L1TechTriggerSeeding = cms.bool(
False )
150 fragment.hltPreZeroBias = cms.EDFilter(
"HLTPrescaler",
151 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" ),
152 offset = cms.uint32( 0 )
154 fragment.hltFEDSelector = cms.EDProducer(
"EvFFEDSelector",
155 inputTag = cms.InputTag(
"rawDataCollector" ),
156 fedList = cms.vuint32( 1023 )
158 fragment.hltTriggerSummaryAOD = cms.EDProducer(
"TriggerSummaryProducerAOD",
159 moduleLabelPatternsToSkip = cms.vstring( ),
160 processName = cms.string(
"@" ),
161 moduleLabelPatternsToMatch = cms.vstring(
'hlt*' )
163 fragment.hltTriggerSummaryRAW = cms.EDProducer(
"TriggerSummaryProducerRAW",
164 processName = cms.string(
"@" )
166 fragment.hltPreHLTAnalyzerEndpath = cms.EDFilter(
"HLTPrescaler",
167 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" ),
168 offset = cms.uint32( 0 )
170 fragment.hltL1GtTrigReport = cms.EDAnalyzer(
"L1GtTrigReport",
171 PrintVerbosity = cms.untracked.int32( 10 ),
172 UseL1GlobalTriggerRecord = cms.bool(
False ),
173 PrintOutput = cms.untracked.int32( 3 ),
174 L1GtRecordInputTag = cms.InputTag(
"hltGtDigis" )
176 fragment.hltTrigReport = cms.EDAnalyzer(
"HLTrigReport",
177 ReferencePath = cms.untracked.string(
"HLTriggerFinalPath" ),
178 ReferenceRate = cms.untracked.double( 100.0 ),
179 serviceBy = cms.untracked.string(
"never" ),
180 resetBy = cms.untracked.string(
"never" ),
181 reportBy = cms.untracked.string(
"job" ),
182 HLTriggerResults = cms.InputTag(
'TriggerResults',
'',
'HLT' )
185 fragment.HLTL1UnpackerSequence = cms.Sequence( fragment.hltGtDigis + fragment.hltCaloStage1Digis + fragment.hltCaloStage1LegacyFormatDigis + fragment.hltL1GtObjectMap + fragment.hltL1extraParticles )
186 fragment.HLTBeamSpot = cms.Sequence( fragment.hltScalersRawToDigi + fragment.hltOnlineBeamSpot )
187 fragment.HLTBeginSequence = cms.Sequence( fragment.hltTriggerType + fragment.HLTL1UnpackerSequence + fragment.HLTBeamSpot )
188 fragment.HLTEndSequence = cms.Sequence( fragment.hltBoolEnd )
190 fragment.HLTriggerFirstPath = cms.Path( fragment.hltGetConditions + fragment.hltGetRaw + fragment.hltBoolFalse )
191 fragment.HLT_Physics_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltPrePhysics + fragment.HLTEndSequence )
192 fragment.HLT_Random_v1 = cms.Path( fragment.hltRandomEventsFilter + fragment.hltGtDigis + fragment.hltPreRandom + fragment.HLTEndSequence )
193 fragment.HLT_ZeroBias_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltL1sL1ZeroBias + fragment.hltPreZeroBias + fragment.HLTEndSequence )
194 fragment.HLTriggerFinalPath = cms.Path( fragment.hltGtDigis + fragment.hltScalersRawToDigi + fragment.hltFEDSelector + fragment.hltTriggerSummaryAOD + fragment.hltTriggerSummaryRAW + fragment.hltBoolFalse )
195 fragment.HLTAnalyzerEndpath = cms.EndPath( fragment.hltGtDigis + fragment.hltPreHLTAnalyzerEndpath + fragment.hltL1GtTrigReport + fragment.hltTrigReport )
198 fragment.HLTSchedule = cms.Schedule( *(fragment.HLTriggerFirstPath, fragment.HLT_Physics_v1, fragment.HLT_Random_v1, fragment.HLT_ZeroBias_v1, fragment.HLTriggerFinalPath, fragment.HLTAnalyzerEndpath ))
202 if 'hltGetConditions' in fragment.__dict__
and 'HLTriggerFirstPath' in fragment.__dict__ :
203 fragment.hltDummyConditions = cms.EDFilter(
"HLTBool",
204 result = cms.bool(
True )
206 fragment.HLTriggerFirstPath.replace(fragment.hltGetConditions,fragment.hltDummyConditions)
209 from HLTrigger.Configuration.customizeHLTforALL
import customizeHLTforAll
212 from HLTrigger.Configuration.customizeHLTforCMSSW
import customizeHLTforCMSSW
216 from HLTrigger.Configuration.Eras
import modifyHLTforEras
def modifyHLTforEras(fragment)
def customizeHLTforAll(process, menuType="GRun", _customInfo=None)