5 import FWCore.ParameterSet.Config
as cms
7 fragment = cms.ProcessFragment(
"HLT" )
9 fragment.HLTConfigVersion = cms.PSet(
10 tableName = cms.string(
"/dev/CMSSW_13_0_0/Fake/V9")
13 fragment.streams = cms.PSet( A = cms.vstring(
'InitialPD' ) )
14 fragment.datasets = cms.PSet( InitialPD = cms.vstring(
'HLT_Physics_v1',
18 fragment.CastorDbProducer = cms.ESProducer(
"CastorDbProducer",
19 appendToDataLabel = cms.string(
"" )
21 fragment.hcalDDDRecConstants = cms.ESProducer(
"HcalDDDRecConstantsESModule",
22 appendToDataLabel = cms.string(
"" )
24 fragment.hcalDDDSimConstants = cms.ESProducer(
"HcalDDDSimConstantsESModule",
25 appendToDataLabel = cms.string(
"" )
28 fragment.hltGetConditions = cms.EDAnalyzer(
"EventSetupRecordDataGetter",
29 verbose = cms.untracked.bool(
False ),
33 fragment.hltGetRaw = cms.EDAnalyzer(
"HLTGetRaw",
34 RawDataCollection = cms.InputTag(
"rawDataCollector" )
36 fragment.hltBoolFalse = cms.EDFilter(
"HLTBool",
37 result = cms.bool(
False )
39 fragment.hltTriggerType = cms.EDFilter(
"HLTTriggerTypeFilter",
40 SelectedTriggerType = cms.int32( 1 )
42 fragment.hltGtDigis = cms.EDProducer(
"L1GlobalTriggerRawToDigi",
43 DaqGtInputTag = cms.InputTag(
"rawDataCollector" ),
44 DaqGtFedId = cms.untracked.int32( 813 ),
45 ActiveBoardsMask = cms.uint32( 0xffff ),
46 UnpackBxInEvent = cms.int32( 5 ),
47 Verbosity = cms.untracked.int32( 0 )
49 fragment.hltGctDigis = cms.EDProducer(
"GctRawToDigi",
50 unpackSharedRegions = cms.bool(
False ),
51 numberOfGctSamplesToUnpack = cms.uint32( 1 ),
52 numberOfRctSamplesToUnpack = cms.uint32( 1 ),
53 hltMode = cms.bool(
True ),
54 inputLabel = cms.InputTag(
"rawDataCollector" ),
55 unpackerVersion = cms.uint32( 0 ),
56 gctFedId = cms.untracked.int32( 745 ),
57 checkHeaders = cms.untracked.bool(
False ),
58 verbose = cms.untracked.bool(
False )
60 fragment.hltL1GtObjectMap = cms.EDProducer(
"L1GlobalTrigger",
61 GmtInputTag = cms.InputTag(
"hltGtDigis" ),
62 GctInputTag = cms.InputTag(
"hltGctDigis" ),
63 CastorInputTag = cms.InputTag(
"castorL1Digis" ),
64 TechnicalTriggersInputTags = cms.VInputTag(
'simBscDigis' ),
65 ProduceL1GtDaqRecord = cms.bool(
False ),
66 ProduceL1GtEvmRecord = cms.bool(
False ),
67 ProduceL1GtObjectMapRecord = cms.bool(
True ),
68 WritePsbL1GtDaqRecord = cms.bool(
False ),
69 ReadTechnicalTriggerRecords = cms.bool(
True ),
70 EmulateBxInEvent = cms.int32( 1 ),
71 RecordLength = cms.vint32( 3, 0 ),
72 AlternativeNrBxBoardDaq = cms.uint32( 0 ),
73 AlternativeNrBxBoardEvm = cms.uint32( 0 ),
74 BstLengthBytes = cms.int32( -1 ),
75 AlgorithmTriggersUnprescaled = cms.bool(
True ),
76 AlgorithmTriggersUnmasked = cms.bool(
False ),
77 TechnicalTriggersUnprescaled = cms.bool(
True ),
78 TechnicalTriggersUnmasked = cms.bool(
False ),
79 TechnicalTriggersVetoUnmasked = cms.bool(
True )
81 fragment.hltL1extraParticles = cms.EDProducer(
"L1ExtraParticlesProd",
82 muonSource = cms.InputTag(
"hltGtDigis" ),
83 etTotalSource = cms.InputTag(
"hltGctDigis" ),
84 nonIsolatedEmSource = cms.InputTag(
'hltGctDigis',
'nonIsoEm' ),
85 etMissSource = cms.InputTag(
"hltGctDigis" ),
86 htMissSource = cms.InputTag(
"hltGctDigis" ),
87 produceMuonParticles = cms.bool(
True ),
88 forwardJetSource = cms.InputTag(
'hltGctDigis',
'forJets' ),
89 centralJetSource = cms.InputTag(
'hltGctDigis',
'cenJets' ),
90 produceCaloParticles = cms.bool(
True ),
91 tauJetSource = cms.InputTag(
'hltGctDigis',
'tauJets' ),
92 isoTauJetSource = cms.InputTag(
'hltGctDigis',
'isoTauJets' ),
93 isolatedEmSource = cms.InputTag(
'hltGctDigis',
'isoEm' ),
94 etHadSource = cms.InputTag(
"hltGctDigis" ),
95 hfRingEtSumsSource = cms.InputTag(
"hltGctDigis" ),
96 hfRingBitCountsSource = cms.InputTag(
"hltGctDigis" ),
97 centralBxOnly = cms.bool(
True ),
98 ignoreHtMiss = cms.bool(
False )
100 fragment.hltScalersRawToDigi = cms.EDProducer(
"ScalersRawToDigi",
101 scalersInputTag = cms.InputTag(
"rawDataCollector" )
103 fragment.hltOnlineBeamSpot = cms.EDProducer(
"BeamSpotOnlineProducer",
104 changeToCMSCoordinates = cms.bool(
False ),
105 maxZ = cms.double( 40.0 ),
106 setSigmaZ = cms.double( 0.0 ),
107 beamMode = cms.untracked.uint32( 11 ),
108 src = cms.InputTag(
"hltScalersRawToDigi" ),
109 gtEvmLabel = cms.InputTag(
"" ),
110 maxRadius = cms.double( 2.0 ),
111 useTransientRecord = cms.bool(
False )
113 fragment.hltPrePhysics = cms.EDFilter(
"HLTPrescaler",
114 offset = cms.uint32( 0 ),
115 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" )
117 fragment.hltBoolEnd = cms.EDFilter(
"HLTBool",
118 result = cms.bool(
True )
120 fragment.hltRandomEventsFilter = cms.EDFilter(
"HLTTriggerTypeFilter",
121 SelectedTriggerType = cms.int32( 3 )
123 fragment.hltPreRandom = cms.EDFilter(
"HLTPrescaler",
124 offset = cms.uint32( 0 ),
125 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" )
127 fragment.hltL1sL1ZeroBias = cms.EDFilter(
"HLTLevel1GTSeed",
128 saveTags = cms.bool(
True ),
129 L1UseL1TriggerObjectMaps = cms.bool(
True ),
130 L1NrBxInEvent = cms.int32( 3 ),
131 L1TechTriggerSeeding = cms.bool(
False ),
132 L1UseAliasesForSeeding = cms.bool(
True ),
133 L1SeedsLogicalExpression = cms.string(
"L1_ZeroBias" ),
134 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" ),
135 L1GtObjectMapTag = cms.InputTag(
"hltL1GtObjectMap" ),
136 L1CollectionsTag = cms.InputTag(
"hltL1extraParticles" ),
137 L1MuonCollectionTag = cms.InputTag(
"hltL1extraParticles" )
139 fragment.hltPreZeroBias = cms.EDFilter(
"HLTPrescaler",
140 offset = cms.uint32( 0 ),
141 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" )
143 fragment.hltFEDSelector = cms.EDProducer(
"EvFFEDSelector",
144 inputTag = cms.InputTag(
"rawDataCollector" ),
145 fedList = cms.vuint32( 1023 )
147 fragment.hltTriggerSummaryAOD = cms.EDProducer(
"TriggerSummaryProducerAOD",
148 throw = cms.bool(
False ),
149 processName = cms.string(
"@" ),
150 moduleLabelPatternsToMatch = cms.vstring(
'hlt*' ),
151 moduleLabelPatternsToSkip = cms.vstring( )
153 fragment.hltTriggerSummaryRAW = cms.EDProducer(
"TriggerSummaryProducerRAW",
154 processName = cms.string(
"@" )
156 fragment.hltPreHLTAnalyzerEndpath = cms.EDFilter(
"HLTPrescaler",
157 offset = cms.uint32( 0 ),
158 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" )
160 fragment.hltL1GtTrigReport = cms.EDAnalyzer(
"L1GtTrigReport",
161 UseL1GlobalTriggerRecord = cms.bool(
False ),
162 L1GtRecordInputTag = cms.InputTag(
"hltGtDigis" ),
163 PrintVerbosity = cms.untracked.int32( 10 ),
164 PrintOutput = cms.untracked.int32( 3 )
166 fragment.hltTrigReport = cms.EDAnalyzer(
"HLTrigReport",
167 HLTriggerResults = cms.InputTag(
'TriggerResults',
'',
'@currentProcess' ),
168 reportBy = cms.untracked.string(
"job" ),
169 resetBy = cms.untracked.string(
"never" ),
170 serviceBy = cms.untracked.string(
"never" ),
171 ReferencePath = cms.untracked.string(
"HLTriggerFinalPath" ),
172 ReferenceRate = cms.untracked.double( 100.0 )
175 fragment.HLTL1UnpackerSequence = cms.Sequence( fragment.hltGtDigis + fragment.hltGctDigis + fragment.hltL1GtObjectMap + fragment.hltL1extraParticles )
176 fragment.HLTBeamSpot = cms.Sequence( fragment.hltScalersRawToDigi + fragment.hltOnlineBeamSpot )
177 fragment.HLTBeginSequence = cms.Sequence( fragment.hltTriggerType + fragment.HLTL1UnpackerSequence + fragment.HLTBeamSpot )
178 fragment.HLTEndSequence = cms.Sequence( fragment.hltBoolEnd )
180 fragment.HLTriggerFirstPath = cms.Path( fragment.hltGetConditions + fragment.hltGetRaw + fragment.hltBoolFalse )
181 fragment.HLT_Physics_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltPrePhysics + fragment.HLTEndSequence )
182 fragment.HLT_Random_v1 = cms.Path( fragment.hltRandomEventsFilter + fragment.hltGtDigis + fragment.hltPreRandom + fragment.HLTEndSequence )
183 fragment.HLT_ZeroBias_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltL1sL1ZeroBias + fragment.hltPreZeroBias + fragment.HLTEndSequence )
184 fragment.HLTriggerFinalPath = cms.Path( fragment.hltGtDigis + fragment.hltScalersRawToDigi + fragment.hltFEDSelector + fragment.hltTriggerSummaryAOD + fragment.hltTriggerSummaryRAW + fragment.hltBoolFalse )
185 fragment.HLTAnalyzerEndpath = cms.EndPath( fragment.hltGtDigis + fragment.hltPreHLTAnalyzerEndpath + fragment.hltL1GtTrigReport + fragment.hltTrigReport )
188 fragment.schedule = cms.Schedule( *(fragment.HLTriggerFirstPath, fragment.HLT_Physics_v1, fragment.HLT_Random_v1, fragment.HLT_ZeroBias_v1, fragment.HLTriggerFinalPath, fragment.HLTAnalyzerEndpath, ))
192 if 'hltGetConditions' in fragment.__dict__
and 'HLTriggerFirstPath' in fragment.__dict__ :
193 fragment.hltDummyConditions = cms.EDFilter(
"HLTBool",
194 result = cms.bool(
True )
196 fragment.HLTriggerFirstPath.replace(fragment.hltGetConditions,fragment.hltDummyConditions)
199 from HLTrigger.Configuration.customizeHLTforALL
import customizeHLTforAll
202 from HLTrigger.Configuration.customizeHLTforCMSSW
import customizeHLTforCMSSW
206 from HLTrigger.Configuration.Eras
import modifyHLTforEras
def modifyHLTforEras(fragment)
def customizeHLTforAll(process, menuType="GRun", _customInfo=None)