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