5 import FWCore.ParameterSet.Config
as cms
7 fragment = cms.ProcessFragment(
"HLT" )
9 fragment.HLTConfigVersion = cms.PSet(
10 tableName = cms.string(
"/dev/CMSSW_14_1_0/Fake2/V12")
13 fragment.streams = cms.PSet( A = cms.vstring(
'InitialPD' ) )
14 fragment.datasets = cms.PSet( InitialPD = cms.vstring(
'HLT_Physics_v1',
18 fragment.GlobalParametersRcdSource = cms.ESSource(
"EmptyESSource",
19 recordName = cms.string(
"L1TGlobalParametersRcd" ),
20 iovIsRunNotTime = cms.bool(
True ),
21 firstValid = cms.vuint32( 1 )
24 fragment.GlobalParameters = cms.ESProducer(
"StableParametersTrivialProducer",
25 TotalBxInEvent = cms.int32( 5 ),
26 NumberPhysTriggers = cms.uint32( 512 ),
27 NumberL1Muon = cms.uint32( 12 ),
28 NumberL1EGamma = cms.uint32( 12 ),
29 NumberL1Jet = cms.uint32( 12 ),
30 NumberL1Tau = cms.uint32( 8 ),
31 NumberChips = cms.uint32( 5 ),
32 PinsOnChip = cms.uint32( 512 ),
33 OrderOfChip = cms.vint32( 1 ),
34 NumberL1IsoEG = cms.uint32( 4 ),
35 NumberL1JetCounts = cms.uint32( 12 ),
36 UnitLength = cms.int32( 8 ),
37 NumberL1ForJet = cms.uint32( 4 ),
38 IfCaloEtaNumberBits = cms.uint32( 4 ),
39 IfMuEtaNumberBits = cms.uint32( 6 ),
40 NumberL1TauJet = cms.uint32( 4 ),
41 NumberL1Mu = cms.uint32( 4 ),
42 NumberConditionChips = cms.uint32( 1 ),
43 NumberPsbBoards = cms.int32( 7 ),
44 NumberL1CenJet = cms.uint32( 4 ),
45 PinsOnConditionChip = cms.uint32( 512 ),
46 NumberL1NoIsoEG = cms.uint32( 4 ),
47 NumberTechnicalTriggers = cms.uint32( 64 ),
48 NumberPhysTriggersExtended = cms.uint32( 64 ),
49 WordLength = cms.int32( 64 ),
50 OrderConditionChip = cms.vint32( 1 ),
51 appendToDataLabel = cms.string(
"" )
53 fragment.CastorDbProducer = cms.ESProducer(
"CastorDbProducer",
54 appendToDataLabel = cms.string(
"" )
56 fragment.hcalDDDRecConstants = cms.ESProducer(
"HcalDDDRecConstantsESModule",
57 appendToDataLabel = cms.string(
"" )
59 fragment.hcalDDDSimConstants = cms.ESProducer(
"HcalDDDSimConstantsESModule",
60 appendToDataLabel = cms.string(
"" )
63 fragment.hltGetConditions = cms.EDAnalyzer(
"EventSetupRecordDataGetter",
64 verbose = cms.untracked.bool(
False ),
68 fragment.hltGetRaw = cms.EDAnalyzer(
"HLTGetRaw",
69 RawDataCollection = cms.InputTag(
"rawDataCollector" )
71 fragment.hltBoolFalse = cms.EDFilter(
"HLTBool",
72 result = cms.bool(
False )
74 fragment.hltTriggerType = cms.EDFilter(
"HLTTriggerTypeFilter",
75 SelectedTriggerType = cms.int32( 1 )
77 fragment.hltGtStage2Digis = cms.EDProducer(
"L1TRawToDigi",
78 FedIds = cms.vint32( 1404 ),
79 Setup = cms.string(
"stage2::GTSetup" ),
80 FWId = cms.uint32( 0 ),
81 DmxFWId = cms.uint32( 0 ),
82 FWOverride = cms.bool(
False ),
83 TMTCheck = cms.bool(
True ),
84 CTP7 = cms.untracked.bool(
False ),
85 MTF7 = cms.untracked.bool(
False ),
86 InputLabel = cms.InputTag(
"rawDataCollector" ),
87 lenSlinkHeader = cms.untracked.int32( 8 ),
88 lenSlinkTrailer = cms.untracked.int32( 8 ),
89 lenAMCHeader = cms.untracked.int32( 8 ),
90 lenAMCTrailer = cms.untracked.int32( 0 ),
91 lenAMC13Header = cms.untracked.int32( 8 ),
92 lenAMC13Trailer = cms.untracked.int32( 8 ),
93 debug = cms.untracked.bool(
False ),
94 MinFeds = cms.uint32( 0 )
96 fragment.hltGtStage2ObjectMap = cms.EDProducer(
"L1TGlobalProducer",
97 MuonInputTag = cms.InputTag(
'hltGtStage2Digis',
'Muon' ),
98 MuonShowerInputTag = cms.InputTag(
'hltGtStage2Digis',
'MuonShower' ),
99 EGammaInputTag = cms.InputTag(
'hltGtStage2Digis',
'EGamma' ),
100 TauInputTag = cms.InputTag(
'hltGtStage2Digis',
'Tau' ),
101 JetInputTag = cms.InputTag(
'hltGtStage2Digis',
'Jet' ),
102 EtSumInputTag = cms.InputTag(
'hltGtStage2Digis',
'EtSum' ),
103 EtSumZdcInputTag = cms.InputTag(
'hltGtStage2Digis',
'EtSumZDC' ),
104 CICADAInputTag = cms.InputTag(
"" ),
105 ExtInputTag = cms.InputTag(
"hltGtStage2Digis" ),
106 AlgoBlkInputTag = cms.InputTag(
"hltGtStage2Digis" ),
107 GetPrescaleColumnFromData = cms.bool(
False ),
108 AlgorithmTriggersUnprescaled = cms.bool(
True ),
109 RequireMenuToMatchAlgoBlkInput = cms.bool(
True ),
110 AlgorithmTriggersUnmasked = cms.bool(
True ),
111 useMuonShowers = cms.bool(
True ),
112 produceAXOL1TLScore = cms.bool(
False ),
113 resetPSCountersEachLumiSec = cms.bool(
True ),
114 semiRandomInitialPSCounters = cms.bool(
False ),
115 ProduceL1GtDaqRecord = cms.bool(
True ),
116 ProduceL1GtObjectMapRecord = cms.bool(
True ),
117 EmulateBxInEvent = cms.int32( 1 ),
118 L1DataBxInEvent = cms.int32( 5 ),
119 AlternativeNrBxBoardDaq = cms.uint32( 0 ),
120 BstLengthBytes = cms.int32( -1 ),
121 PrescaleSet = cms.uint32( 1 ),
122 Verbosity = cms.untracked.int32( 0 ),
123 PrintL1Menu = cms.untracked.bool(
False ),
124 TriggerMenuLuminosity = cms.string(
"startup" )
126 fragment.hltScalersRawToDigi = cms.EDProducer(
"ScalersRawToDigi",
127 scalersInputTag = cms.InputTag(
"rawDataCollector" )
129 fragment.hltOnlineBeamSpot = cms.EDProducer(
"BeamSpotOnlineProducer",
130 changeToCMSCoordinates = cms.bool(
False ),
131 maxZ = cms.double( 40.0 ),
132 setSigmaZ = cms.double( 0.0 ),
133 beamMode = cms.untracked.uint32( 11 ),
134 src = cms.InputTag(
"hltScalersRawToDigi" ),
135 gtEvmLabel = cms.InputTag(
"" ),
136 maxRadius = cms.double( 2.0 ),
137 useTransientRecord = cms.bool(
False )
139 fragment.hltPrePhysics = cms.EDFilter(
"HLTPrescaler",
140 offset = cms.uint32( 0 ),
141 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" )
143 fragment.hltBoolEnd = cms.EDFilter(
"HLTBool",
144 result = cms.bool(
True )
146 fragment.hltRandomEventsFilter = cms.EDFilter(
"HLTTriggerTypeFilter",
147 SelectedTriggerType = cms.int32( 3 )
149 fragment.hltPreRandom = cms.EDFilter(
"HLTPrescaler",
150 offset = cms.uint32( 0 ),
151 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" )
153 fragment.hltL1sZeroBias = cms.EDFilter(
"HLTL1TSeed",
154 saveTags = cms.bool(
True ),
155 L1SeedsLogicalExpression = cms.string(
"L1_ZeroBias" ),
156 L1ObjectMapInputTag = cms.InputTag(
"hltGtStage2ObjectMap" ),
157 L1GlobalInputTag = cms.InputTag(
"hltGtStage2Digis" ),
158 L1MuonInputTag = cms.InputTag(
'hltGtStage2Digis',
'Muon' ),
159 L1MuonShowerInputTag = cms.InputTag(
'hltGtStage2Digis',
'MuonShower' ),
160 L1EGammaInputTag = cms.InputTag(
'hltGtStage2Digis',
'EGamma' ),
161 L1JetInputTag = cms.InputTag(
'hltGtStage2Digis',
'Jet' ),
162 L1TauInputTag = cms.InputTag(
'hltGtStage2Digis',
'Tau' ),
163 L1EtSumInputTag = cms.InputTag(
'hltGtStage2Digis',
'EtSum' ),
164 L1EtSumZdcInputTag = cms.InputTag(
'hltGtStage2Digis',
'EtSumZDC' )
166 fragment.hltPreZeroBias = cms.EDFilter(
"HLTPrescaler",
167 offset = cms.uint32( 0 ),
168 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" )
170 fragment.hltFEDSelector = cms.EDProducer(
"EvFFEDSelector",
171 inputTag = cms.InputTag(
"rawDataCollector" ),
172 fedList = cms.vuint32( 1023, 1024 )
174 fragment.hltTriggerSummaryAOD = cms.EDProducer(
"TriggerSummaryProducerAOD",
175 throw = cms.bool(
False ),
176 processName = cms.string(
"@" ),
177 moduleLabelPatternsToMatch = cms.vstring(
'hlt*' ),
178 moduleLabelPatternsToSkip = cms.vstring( )
180 fragment.hltTriggerSummaryRAW = cms.EDProducer(
"TriggerSummaryProducerRAW",
181 processName = cms.string(
"@" )
183 fragment.hltPreHLTAnalyzerEndpath = cms.EDFilter(
"HLTPrescaler",
184 offset = cms.uint32( 0 ),
185 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" )
187 fragment.hltL1TGlobalSummary = cms.EDAnalyzer(
"L1TGlobalSummary",
188 AlgInputTag = cms.InputTag(
"hltGtStage2Digis" ),
189 ExtInputTag = cms.InputTag(
"hltGtStage2Digis" ),
190 MinBx = cms.int32( 0 ),
191 MaxBx = cms.int32( 0 ),
192 DumpTrigResults = cms.bool(
False ),
193 DumpRecord = cms.bool(
False ),
194 DumpTrigSummary = cms.bool(
True ),
195 ReadPrescalesFromFile = cms.bool(
False ),
196 psFileName = cms.string(
"prescale_L1TGlobal.csv" ),
197 psColumn = cms.int32( 0 )
199 fragment.hltTrigReport = cms.EDAnalyzer(
"HLTrigReport",
200 HLTriggerResults = cms.InputTag(
'TriggerResults',
'',
'@currentProcess' ),
201 reportBy = cms.untracked.string(
"job" ),
202 resetBy = cms.untracked.string(
"never" ),
203 serviceBy = cms.untracked.string(
"never" ),
204 ReferencePath = cms.untracked.string(
"HLTriggerFinalPath" ),
205 ReferenceRate = cms.untracked.double( 100.0 )
208 fragment.HLTL1UnpackerSequence = cms.Sequence( fragment.hltGtStage2Digis + fragment.hltGtStage2ObjectMap )
209 fragment.HLTBeamSpot = cms.Sequence( fragment.hltScalersRawToDigi + fragment.hltOnlineBeamSpot )
210 fragment.HLTBeginSequence = cms.Sequence( fragment.hltTriggerType + fragment.HLTL1UnpackerSequence + fragment.HLTBeamSpot )
211 fragment.HLTEndSequence = cms.Sequence( fragment.hltBoolEnd )
212 fragment.HLTBeginSequenceRandom = cms.Sequence( fragment.hltRandomEventsFilter + fragment.hltGtStage2Digis )
214 fragment.HLTriggerFirstPath = cms.Path( fragment.hltGetConditions + fragment.hltGetRaw + fragment.hltBoolFalse )
215 fragment.HLT_Physics_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltPrePhysics + fragment.HLTEndSequence )
216 fragment.HLT_Random_v1 = cms.Path( fragment.HLTBeginSequenceRandom + fragment.hltPreRandom + fragment.HLTEndSequence )
217 fragment.HLT_ZeroBias_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltL1sZeroBias + fragment.hltPreZeroBias + fragment.HLTEndSequence )
218 fragment.HLTriggerFinalPath = cms.Path( fragment.hltGtStage2Digis + fragment.hltScalersRawToDigi + fragment.hltFEDSelector + fragment.hltTriggerSummaryAOD + fragment.hltTriggerSummaryRAW + fragment.hltBoolFalse )
219 fragment.HLTAnalyzerEndpath = cms.EndPath( fragment.hltGtStage2Digis + fragment.hltPreHLTAnalyzerEndpath + fragment.hltL1TGlobalSummary + fragment.hltTrigReport )
222 fragment.schedule = cms.Schedule( *(fragment.HLTriggerFirstPath, fragment.HLT_Physics_v1, fragment.HLT_Random_v1, fragment.HLT_ZeroBias_v1, fragment.HLTriggerFinalPath, fragment.HLTAnalyzerEndpath, ))
226 if 'hltGetConditions' in fragment.__dict__
and 'HLTriggerFirstPath' in fragment.__dict__ :
227 fragment.hltDummyConditions = cms.EDFilter(
"HLTBool",
228 result = cms.bool(
True )
230 fragment.HLTriggerFirstPath.replace(fragment.hltGetConditions,fragment.hltDummyConditions)
233 from HLTrigger.Configuration.customizeHLTforALL
import customizeHLTforAll
236 from HLTrigger.Configuration.customizeHLTforCMSSW
import customizeHLTforCMSSW
240 from HLTrigger.Configuration.Eras
import modifyHLTforEras
def modifyHLTforEras(fragment)
def customizeHLTforAll(process, menuType="GRun", _customInfo=None)