5 import FWCore.ParameterSet.Config
as cms
7 fragment = cms.ProcessFragment(
"HLT" )
10 fragment.HLTConfigVersion = cms.PSet(
11 tableName = cms.string(
'/dev/CMSSW_14_0_0/Fake2/V7')
14 fragment.streams = cms.PSet( A = cms.vstring(
'InitialPD' ) )
15 fragment.datasets = cms.PSet( InitialPD = cms.vstring(
'HLT_Physics_v1',
19 fragment.GlobalParametersRcdSource = cms.ESSource(
"EmptyESSource",
20 recordName = cms.string(
"L1TGlobalParametersRcd" ),
21 iovIsRunNotTime = cms.bool(
True ),
22 firstValid = cms.vuint32( 1 )
25 fragment.GlobalParameters = cms.ESProducer(
"StableParametersTrivialProducer",
26 TotalBxInEvent = cms.int32( 5 ),
27 NumberPhysTriggers = cms.uint32( 512 ),
28 NumberL1Muon = cms.uint32( 12 ),
29 NumberL1EGamma = cms.uint32( 12 ),
30 NumberL1Jet = cms.uint32( 12 ),
31 NumberL1Tau = cms.uint32( 8 ),
32 NumberChips = cms.uint32( 5 ),
33 PinsOnChip = cms.uint32( 512 ),
34 OrderOfChip = cms.vint32( 1 ),
35 NumberL1IsoEG = cms.uint32( 4 ),
36 NumberL1JetCounts = cms.uint32( 12 ),
37 UnitLength = cms.int32( 8 ),
38 NumberL1ForJet = cms.uint32( 4 ),
39 IfCaloEtaNumberBits = cms.uint32( 4 ),
40 IfMuEtaNumberBits = cms.uint32( 6 ),
41 NumberL1TauJet = cms.uint32( 4 ),
42 NumberL1Mu = cms.uint32( 4 ),
43 NumberConditionChips = cms.uint32( 1 ),
44 NumberPsbBoards = cms.int32( 7 ),
45 NumberL1CenJet = cms.uint32( 4 ),
46 PinsOnConditionChip = cms.uint32( 512 ),
47 NumberL1NoIsoEG = cms.uint32( 4 ),
48 NumberTechnicalTriggers = cms.uint32( 64 ),
49 NumberPhysTriggersExtended = cms.uint32( 64 ),
50 WordLength = cms.int32( 64 ),
51 OrderConditionChip = cms.vint32( 1 ),
52 appendToDataLabel = cms.string(
"" )
54 fragment.CastorDbProducer = cms.ESProducer(
"CastorDbProducer",
55 appendToDataLabel = cms.string(
"" )
57 fragment.hcalDDDRecConstants = cms.ESProducer(
"HcalDDDRecConstantsESModule",
58 appendToDataLabel = cms.string(
"" )
60 fragment.hcalDDDSimConstants = cms.ESProducer(
"HcalDDDSimConstantsESModule",
61 appendToDataLabel = cms.string(
"" )
64 fragment.hltGetConditions = cms.EDAnalyzer(
"EventSetupRecordDataGetter",
65 verbose = cms.untracked.bool(
False ),
69 fragment.hltGetRaw = cms.EDAnalyzer(
"HLTGetRaw",
70 RawDataCollection = cms.InputTag(
"rawDataCollector" )
72 fragment.hltBoolFalse = cms.EDFilter(
"HLTBool",
73 result = cms.bool(
False )
75 fragment.hltTriggerType = cms.EDFilter(
"HLTTriggerTypeFilter",
76 SelectedTriggerType = cms.int32( 1 )
78 fragment.hltGtStage2Digis = cms.EDProducer(
"L1TRawToDigi",
79 FedIds = cms.vint32( 1404 ),
80 Setup = cms.string(
"stage2::GTSetup" ),
81 FWId = cms.uint32( 0 ),
82 DmxFWId = cms.uint32( 0 ),
83 FWOverride = cms.bool(
False ),
84 TMTCheck = cms.bool(
True ),
85 CTP7 = cms.untracked.bool(
False ),
86 MTF7 = cms.untracked.bool(
False ),
87 InputLabel = cms.InputTag(
"rawDataCollector" ),
88 lenSlinkHeader = cms.untracked.int32( 8 ),
89 lenSlinkTrailer = cms.untracked.int32( 8 ),
90 lenAMCHeader = cms.untracked.int32( 8 ),
91 lenAMCTrailer = cms.untracked.int32( 0 ),
92 lenAMC13Header = cms.untracked.int32( 8 ),
93 lenAMC13Trailer = cms.untracked.int32( 8 ),
94 debug = cms.untracked.bool(
False ),
95 MinFeds = cms.uint32( 0 )
97 fragment.hltGtStage2ObjectMap = cms.EDProducer(
"L1TGlobalProducer",
98 MuonInputTag = cms.InputTag(
'hltGtStage2Digis',
'Muon' ),
99 MuonShowerInputTag = cms.InputTag(
'hltGtStage2Digis',
'MuonShower' ),
100 EGammaInputTag = cms.InputTag(
'hltGtStage2Digis',
'EGamma' ),
101 TauInputTag = cms.InputTag(
'hltGtStage2Digis',
'Tau' ),
102 JetInputTag = cms.InputTag(
'hltGtStage2Digis',
'Jet' ),
103 EtSumInputTag = cms.InputTag(
'hltGtStage2Digis',
'EtSum' ),
104 EtSumZdcInputTag = cms.InputTag(
'hltGtStage2Digis',
'EtSumZDC' ),
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 AXOL1TLModelVersion = cms.string(
"GTADModel_v3" ),
112 useMuonShowers = cms.bool(
True ),
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)