5 import FWCore.ParameterSet.Config
as cms
7 fragment = cms.ProcessFragment(
"HLT" )
9 fragment.HLTConfigVersion = cms.PSet(
10 tableName = cms.string(
'/dev/CMSSW_10_1_0/Fake2/V5')
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 iovIsRunNotTime = cms.bool(
True ),
20 recordName = cms.string(
"L1TGlobalParametersRcd" ),
21 firstValid = cms.vuint32( 1 )
24 fragment.GlobalParameters = cms.ESProducer(
"StableParametersTrivialProducer",
25 NumberL1JetCounts = cms.uint32( 12 ),
26 NumberL1NoIsoEG = cms.uint32( 4 ),
27 NumberL1CenJet = cms.uint32( 4 ),
28 NumberL1Tau = cms.uint32( 8 ),
29 NumberConditionChips = cms.uint32( 1 ),
30 NumberL1EGamma = cms.uint32( 12 ),
31 TotalBxInEvent = cms.int32( 5 ),
32 NumberL1Mu = cms.uint32( 4 ),
33 PinsOnConditionChip = cms.uint32( 512 ),
34 WordLength = cms.int32( 64 ),
35 PinsOnChip = cms.uint32( 512 ),
36 OrderOfChip = cms.vint32( 1 ),
37 IfMuEtaNumberBits = cms.uint32( 6 ),
38 OrderConditionChip = cms.vint32( 1 ),
39 appendToDataLabel = cms.string(
"" ),
40 NumberL1TauJet = cms.uint32( 4 ),
41 NumberL1Jet = cms.uint32( 12 ),
42 NumberPhysTriggers = cms.uint32( 512 ),
43 NumberL1Muon = cms.uint32( 12 ),
44 UnitLength = cms.int32( 8 ),
45 NumberL1IsoEG = cms.uint32( 4 ),
46 NumberTechnicalTriggers = cms.uint32( 64 ),
47 NumberL1ForJet = cms.uint32( 4 ),
48 IfCaloEtaNumberBits = cms.uint32( 4 ),
49 NumberPsbBoards = cms.int32( 7 ),
50 NumberChips = cms.uint32( 5 ),
51 NumberPhysTriggersExtended = cms.uint32( 64 )
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",
66 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 lenSlinkTrailer = cms.untracked.int32( 8 ),
79 lenAMC13Header = cms.untracked.int32( 8 ),
80 CTP7 = cms.untracked.bool(
False ),
81 lenAMC13Trailer = cms.untracked.int32( 8 ),
82 Setup = cms.string(
"stage2::GTSetup" ),
83 MinFeds = cms.uint32( 0 ),
84 InputLabel = cms.InputTag(
"rawDataCollector" ),
85 lenSlinkHeader = cms.untracked.int32( 8 ),
86 MTF7 = cms.untracked.bool(
False ),
87 FWId = cms.uint32( 0 ),
88 TMTCheck = cms.bool(
True ),
89 debug = cms.untracked.bool(
False ),
90 FedIds = cms.vint32( 1404 ),
91 lenAMCHeader = cms.untracked.int32( 8 ),
92 lenAMCTrailer = cms.untracked.int32( 0 ),
93 FWOverride = cms.bool(
False )
95 fragment.hltGtStage2ObjectMap = cms.EDProducer(
"L1TGlobalProducer",
96 L1DataBxInEvent = cms.int32( 5 ),
97 JetInputTag = cms.InputTag(
'hltGtStage2Digis',
'Jet' ),
98 AlgorithmTriggersUnmasked = cms.bool(
True ),
99 EmulateBxInEvent = cms.int32( 1 ),
100 AlgorithmTriggersUnprescaled = cms.bool(
True ),
101 PrintL1Menu = cms.untracked.bool(
False ),
102 PrescaleCSVFile = cms.string(
"prescale_L1TGlobal.csv" ),
103 Verbosity = cms.untracked.int32( 0 ),
104 AlgoBlkInputTag = cms.InputTag(
"hltGtStage2Digis" ),
105 EtSumInputTag = cms.InputTag(
'hltGtStage2Digis',
'EtSum' ),
106 ProduceL1GtDaqRecord = cms.bool(
True ),
107 PrescaleSet = cms.uint32( 1 ),
108 ExtInputTag = cms.InputTag(
"hltGtStage2Digis" ),
109 EGammaInputTag = cms.InputTag(
'hltGtStage2Digis',
'EGamma' ),
110 TriggerMenuLuminosity = cms.string(
"startup" ),
111 ProduceL1GtObjectMapRecord = cms.bool(
True ),
112 AlternativeNrBxBoardDaq = cms.uint32( 0 ),
113 GetPrescaleColumnFromData = cms.bool(
False ),
114 TauInputTag = cms.InputTag(
'hltGtStage2Digis',
'Tau' ),
115 BstLengthBytes = cms.int32( -1 ),
116 MuonInputTag = cms.InputTag(
'hltGtStage2Digis',
'Muon' )
118 fragment.hltScalersRawToDigi = cms.EDProducer(
"ScalersRawToDigi",
119 scalersInputTag = cms.InputTag(
"rawDataCollector" )
121 fragment.hltOnlineBeamSpot = cms.EDProducer(
"BeamSpotOnlineProducer",
122 maxZ = cms.double( 40.0 ),
123 src = cms.InputTag(
"hltScalersRawToDigi" ),
124 gtEvmLabel = cms.InputTag(
"" ),
125 changeToCMSCoordinates = cms.bool(
False ),
126 setSigmaZ = cms.double( 0.0 ),
127 maxRadius = cms.double( 2.0 )
129 fragment.hltPrePhysics = cms.EDFilter(
"HLTPrescaler",
130 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" ),
131 offset = cms.uint32( 0 )
133 fragment.hltBoolEnd = cms.EDFilter(
"HLTBool",
134 result = cms.bool(
True )
136 fragment.hltRandomEventsFilter = cms.EDFilter(
"HLTTriggerTypeFilter",
137 SelectedTriggerType = cms.int32( 3 )
139 fragment.hltPreRandom = cms.EDFilter(
"HLTPrescaler",
140 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" ),
141 offset = cms.uint32( 0 )
143 fragment.hltL1sZeroBias = cms.EDFilter(
"HLTL1TSeed",
144 L1SeedsLogicalExpression = cms.string(
"L1_ZeroBias" ),
145 L1EGammaInputTag = cms.InputTag(
'hltGtStage2Digis',
'EGamma' ),
146 L1JetInputTag = cms.InputTag(
'hltGtStage2Digis',
'Jet' ),
147 saveTags = cms.bool(
True ),
148 L1ObjectMapInputTag = cms.InputTag(
"hltGtStage2ObjectMap" ),
149 L1EtSumInputTag = cms.InputTag(
'hltGtStage2Digis',
'EtSum' ),
150 L1TauInputTag = cms.InputTag(
'hltGtStage2Digis',
'Tau' ),
151 L1MuonInputTag = cms.InputTag(
'hltGtStage2Digis',
'Muon' ),
152 L1GlobalInputTag = cms.InputTag(
"hltGtStage2Digis" )
154 fragment.hltPreZeroBias = cms.EDFilter(
"HLTPrescaler",
155 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" ),
156 offset = cms.uint32( 0 )
158 fragment.hltFEDSelector = cms.EDProducer(
"EvFFEDSelector",
159 inputTag = cms.InputTag(
"rawDataCollector" ),
160 fedList = cms.vuint32( 1023, 1024 )
162 fragment.hltTriggerSummaryAOD = cms.EDProducer(
"TriggerSummaryProducerAOD",
163 moduleLabelPatternsToSkip = cms.vstring( ),
164 processName = cms.string(
"@" ),
165 moduleLabelPatternsToMatch = cms.vstring(
'hlt*' ),
166 throw = cms.bool(
False )
168 fragment.hltTriggerSummaryRAW = cms.EDProducer(
"TriggerSummaryProducerRAW",
169 processName = cms.string(
"@" )
171 fragment.hltPreHLTAnalyzerEndpath = cms.EDFilter(
"HLTPrescaler",
172 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" ),
173 offset = cms.uint32( 0 )
175 fragment.hltL1TGlobalSummary = cms.EDAnalyzer(
"L1TGlobalSummary",
176 ExtInputTag = cms.InputTag(
"hltGtStage2Digis" ),
177 MaxBx = cms.int32( 0 ),
178 DumpRecord = cms.bool(
False ),
179 psFileName = cms.string(
"prescale_L1TGlobal.csv" ),
180 ReadPrescalesFromFile = cms.bool(
False ),
181 AlgInputTag = cms.InputTag(
"hltGtStage2Digis" ),
182 MinBx = cms.int32( 0 ),
183 psColumn = cms.int32( 0 ),
184 DumpTrigResults = cms.bool(
False ),
185 DumpTrigSummary = cms.bool(
True )
187 fragment.hltTrigReport = cms.EDAnalyzer(
"HLTrigReport",
188 ReferencePath = cms.untracked.string(
"HLTriggerFinalPath" ),
189 ReferenceRate = cms.untracked.double( 100.0 ),
190 serviceBy = cms.untracked.string(
"never" ),
191 resetBy = cms.untracked.string(
"never" ),
192 reportBy = cms.untracked.string(
"job" ),
193 HLTriggerResults = cms.InputTag(
'TriggerResults',
'',
'@currentProcess' )
196 fragment.HLTL1UnpackerSequence = cms.Sequence( fragment.hltGtStage2Digis + fragment.hltGtStage2ObjectMap )
197 fragment.HLTBeamSpot = cms.Sequence( fragment.hltScalersRawToDigi + fragment.hltOnlineBeamSpot )
198 fragment.HLTBeginSequence = cms.Sequence( fragment.hltTriggerType + fragment.HLTL1UnpackerSequence + fragment.HLTBeamSpot )
199 fragment.HLTEndSequence = cms.Sequence( fragment.hltBoolEnd )
200 fragment.HLTBeginSequenceRandom = cms.Sequence( fragment.hltRandomEventsFilter + fragment.hltGtStage2Digis )
202 fragment.HLTriggerFirstPath = cms.Path( fragment.hltGetConditions + fragment.hltGetRaw + fragment.hltBoolFalse )
203 fragment.HLT_Physics_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltPrePhysics + fragment.HLTEndSequence )
204 fragment.HLT_Random_v1 = cms.Path( fragment.HLTBeginSequenceRandom + fragment.hltPreRandom + fragment.HLTEndSequence )
205 fragment.HLT_ZeroBias_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltL1sZeroBias + fragment.hltPreZeroBias + fragment.HLTEndSequence )
206 fragment.HLTriggerFinalPath = cms.Path( fragment.hltGtStage2Digis + fragment.hltScalersRawToDigi + fragment.hltFEDSelector + fragment.hltTriggerSummaryAOD + fragment.hltTriggerSummaryRAW + fragment.hltBoolFalse )
207 fragment.HLTAnalyzerEndpath = cms.EndPath( fragment.hltGtStage2Digis + fragment.hltPreHLTAnalyzerEndpath + fragment.hltL1TGlobalSummary + fragment.hltTrigReport )
210 fragment.HLTSchedule = cms.Schedule( *(fragment.HLTriggerFirstPath, fragment.HLT_Physics_v1, fragment.HLT_Random_v1, fragment.HLT_ZeroBias_v1, fragment.HLTriggerFinalPath, fragment.HLTAnalyzerEndpath ))
214 if 'hltGetConditions' in fragment.__dict__
and 'HLTriggerFirstPath' in fragment.__dict__ :
215 fragment.hltDummyConditions = cms.EDFilter(
"HLTBool",
216 result = cms.bool(
True )
218 fragment.HLTriggerFirstPath.replace(fragment.hltGetConditions,fragment.hltDummyConditions)
221 from HLTrigger.Configuration.customizeHLTforALL
import customizeHLTforAll
224 from HLTrigger.Configuration.customizeHLTforCMSSW
import customizeHLTforCMSSW
228 from HLTrigger.Configuration.Eras
import modifyHLTforEras
def modifyHLTforEras(fragment)
def customizeHLTforAll(process, menuType="GRun", _customInfo=None)