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/V2')
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 Verbosity = cms.untracked.int32( 0 ),
103 EtSumInputTag = cms.InputTag(
'hltGtStage2Digis',
'EtSum' ),
104 ProduceL1GtDaqRecord = cms.bool(
True ),
105 PrescaleSet = cms.uint32( 1 ),
106 ExtInputTag = cms.InputTag(
"hltGtStage2Digis" ),
107 EGammaInputTag = cms.InputTag(
'hltGtStage2Digis',
'EGamma' ),
108 TriggerMenuLuminosity = cms.string(
"startup" ),
109 ProduceL1GtObjectMapRecord = cms.bool(
True ),
110 AlternativeNrBxBoardDaq = cms.uint32( 0 ),
111 PrescaleCSVFile = cms.string(
"prescale_L1TGlobal.csv" ),
112 TauInputTag = cms.InputTag(
'hltGtStage2Digis',
'Tau' ),
113 BstLengthBytes = cms.int32( -1 ),
114 MuonInputTag = cms.InputTag(
'hltGtStage2Digis',
'Muon' )
116 fragment.hltScalersRawToDigi = cms.EDProducer(
"ScalersRawToDigi",
117 scalersInputTag = cms.InputTag(
"rawDataCollector" )
119 fragment.hltOnlineBeamSpot = cms.EDProducer(
"BeamSpotOnlineProducer",
120 maxZ = cms.double( 40.0 ),
121 src = cms.InputTag(
"hltScalersRawToDigi" ),
122 gtEvmLabel = cms.InputTag(
"" ),
123 changeToCMSCoordinates = cms.bool(
False ),
124 setSigmaZ = cms.double( 0.0 ),
125 maxRadius = cms.double( 2.0 )
127 fragment.hltPrePhysics = cms.EDFilter(
"HLTPrescaler",
128 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" ),
129 offset = cms.uint32( 0 )
131 fragment.hltBoolEnd = cms.EDFilter(
"HLTBool",
132 result = cms.bool(
True )
134 fragment.hltRandomEventsFilter = cms.EDFilter(
"HLTTriggerTypeFilter",
135 SelectedTriggerType = cms.int32( 3 )
137 fragment.hltPreRandom = cms.EDFilter(
"HLTPrescaler",
138 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" ),
139 offset = cms.uint32( 0 )
141 fragment.hltL1sZeroBias = cms.EDFilter(
"HLTL1TSeed",
142 L1SeedsLogicalExpression = cms.string(
"L1_ZeroBias" ),
143 L1EGammaInputTag = cms.InputTag(
'hltGtStage2Digis',
'EGamma' ),
144 L1JetInputTag = cms.InputTag(
'hltGtStage2Digis',
'Jet' ),
145 saveTags = cms.bool(
True ),
146 L1ObjectMapInputTag = cms.InputTag(
"hltGtStage2ObjectMap" ),
147 L1EtSumInputTag = cms.InputTag(
'hltGtStage2Digis',
'EtSum' ),
148 L1TauInputTag = cms.InputTag(
'hltGtStage2Digis',
'Tau' ),
149 L1MuonInputTag = cms.InputTag(
'hltGtStage2Digis',
'Muon' ),
150 L1GlobalInputTag = cms.InputTag(
"hltGtStage2Digis" )
152 fragment.hltPreZeroBias = cms.EDFilter(
"HLTPrescaler",
153 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" ),
154 offset = cms.uint32( 0 )
156 fragment.hltFEDSelector = cms.EDProducer(
"EvFFEDSelector",
157 inputTag = cms.InputTag(
"rawDataCollector" ),
158 fedList = cms.vuint32( 1023, 1024 )
160 fragment.hltTriggerSummaryAOD = cms.EDProducer(
"TriggerSummaryProducerAOD",
161 moduleLabelPatternsToSkip = cms.vstring( ),
162 processName = cms.string(
"@" ),
163 moduleLabelPatternsToMatch = cms.vstring(
'hlt*' ),
164 throw = cms.bool(
False )
166 fragment.hltTriggerSummaryRAW = cms.EDProducer(
"TriggerSummaryProducerRAW",
167 processName = cms.string(
"@" )
169 fragment.hltPreHLTAnalyzerEndpath = cms.EDFilter(
"HLTPrescaler",
170 L1GtReadoutRecordTag = cms.InputTag(
"hltGtStage2Digis" ),
171 offset = cms.uint32( 0 )
173 fragment.hltL1TGlobalSummary = cms.EDAnalyzer(
"L1TGlobalSummary",
174 ExtInputTag = cms.InputTag(
"hltGtStage2Digis" ),
175 MaxBx = cms.int32( 0 ),
176 DumpRecord = cms.bool(
False ),
177 psFileName = cms.string(
"prescale_L1TGlobal.csv" ),
178 ReadPrescalesFromFile = cms.bool(
False ),
179 AlgInputTag = cms.InputTag(
"hltGtStage2Digis" ),
180 MinBx = cms.int32( 0 ),
181 psColumn = cms.int32( 0 ),
182 DumpTrigResults = cms.bool(
False ),
183 DumpTrigSummary = cms.bool(
True )
185 fragment.hltTrigReport = cms.EDAnalyzer(
"HLTrigReport",
186 ReferencePath = cms.untracked.string(
"HLTriggerFinalPath" ),
187 ReferenceRate = cms.untracked.double( 100.0 ),
188 serviceBy = cms.untracked.string(
"never" ),
189 resetBy = cms.untracked.string(
"never" ),
190 reportBy = cms.untracked.string(
"job" ),
191 HLTriggerResults = cms.InputTag(
'TriggerResults',
'',
'@currentProcess' )
194 fragment.HLTL1UnpackerSequence = cms.Sequence( fragment.hltGtStage2Digis + fragment.hltGtStage2ObjectMap )
195 fragment.HLTBeamSpot = cms.Sequence( fragment.hltScalersRawToDigi + fragment.hltOnlineBeamSpot )
196 fragment.HLTBeginSequence = cms.Sequence( fragment.hltTriggerType + fragment.HLTL1UnpackerSequence + fragment.HLTBeamSpot )
197 fragment.HLTEndSequence = cms.Sequence( fragment.hltBoolEnd )
198 fragment.HLTBeginSequenceRandom = cms.Sequence( fragment.hltRandomEventsFilter + fragment.hltGtStage2Digis )
200 fragment.HLTriggerFirstPath = cms.Path( fragment.hltGetConditions + fragment.hltGetRaw + fragment.hltBoolFalse )
201 fragment.HLT_Physics_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltPrePhysics + fragment.HLTEndSequence )
202 fragment.HLT_Random_v1 = cms.Path( fragment.HLTBeginSequenceRandom + fragment.hltPreRandom + fragment.HLTEndSequence )
203 fragment.HLT_ZeroBias_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltL1sZeroBias + fragment.hltPreZeroBias + fragment.HLTEndSequence )
204 fragment.HLTriggerFinalPath = cms.Path( fragment.hltGtStage2Digis + fragment.hltScalersRawToDigi + fragment.hltFEDSelector + fragment.hltTriggerSummaryAOD + fragment.hltTriggerSummaryRAW + fragment.hltBoolFalse )
205 fragment.HLTAnalyzerEndpath = cms.EndPath( fragment.hltGtStage2Digis + fragment.hltPreHLTAnalyzerEndpath + fragment.hltL1TGlobalSummary + fragment.hltTrigReport )
208 fragment.HLTSchedule = cms.Schedule( *(fragment.HLTriggerFirstPath, fragment.HLT_Physics_v1, fragment.HLT_Random_v1, fragment.HLT_ZeroBias_v1, fragment.HLTriggerFinalPath, fragment.HLTAnalyzerEndpath ))
212 if 'hltGetConditions' in fragment.__dict__
and 'HLTriggerFirstPath' in fragment.__dict__ :
213 fragment.hltDummyConditions = cms.EDFilter(
"HLTBool",
214 result = cms.bool(
True )
216 fragment.HLTriggerFirstPath.replace(fragment.hltGetConditions,fragment.hltDummyConditions)
219 from HLTrigger.Configuration.customizeHLTforALL
import customizeHLTforAll
222 from HLTrigger.Configuration.customizeHLTforCMSSW
import customizeHLTforCMSSW
226 from HLTrigger.Configuration.Eras
import modifyHLTforEras
def modifyHLTforEras(fragment)
def customizeHLTforAll(process, menuType="GRun", _customInfo=None)