5 import FWCore.ParameterSet.Config
as cms
7 fragment = cms.ProcessFragment(
"HLT" )
9 fragment.HLTConfigVersion = cms.PSet(
10 tableName = cms.string(
'/dev/CMSSW_10_6_0/Fake/V3')
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",
31 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 DaqGtFedId = cms.untracked.int32( 813 ),
44 Verbosity = cms.untracked.int32( 0 ),
45 UnpackBxInEvent = cms.int32( 5 ),
46 ActiveBoardsMask = cms.uint32( 0xffff ),
47 DaqGtInputTag = cms.InputTag(
"rawDataCollector" )
49 fragment.hltGctDigis = cms.EDProducer(
"GctRawToDigi",
50 checkHeaders = cms.untracked.bool(
False ),
51 unpackSharedRegions = cms.bool(
False ),
52 numberOfGctSamplesToUnpack = cms.uint32( 1 ),
53 verbose = cms.untracked.bool(
False ),
54 numberOfRctSamplesToUnpack = cms.uint32( 1 ),
55 inputLabel = cms.InputTag(
"rawDataCollector" ),
56 unpackerVersion = cms.uint32( 0 ),
57 gctFedId = cms.untracked.int32( 745 ),
58 hltMode = cms.bool(
True )
60 fragment.hltL1GtObjectMap = cms.EDProducer(
"L1GlobalTrigger",
61 TechnicalTriggersUnprescaled = cms.bool(
True ),
62 ProduceL1GtObjectMapRecord = cms.bool(
True ),
63 AlgorithmTriggersUnmasked = cms.bool(
False ),
64 EmulateBxInEvent = cms.int32( 1 ),
65 AlgorithmTriggersUnprescaled = cms.bool(
True ),
66 ProduceL1GtDaqRecord = cms.bool(
False ),
67 ReadTechnicalTriggerRecords = cms.bool(
True ),
68 RecordLength = cms.vint32( 3, 0 ),
69 TechnicalTriggersUnmasked = cms.bool(
False ),
70 ProduceL1GtEvmRecord = cms.bool(
False ),
71 GmtInputTag = cms.InputTag(
"hltGtDigis" ),
72 TechnicalTriggersVetoUnmasked = cms.bool(
True ),
73 AlternativeNrBxBoardEvm = cms.uint32( 0 ),
74 TechnicalTriggersInputTags = cms.VInputTag(
'simBscDigis' ),
75 CastorInputTag = cms.InputTag(
"castorL1Digis" ),
76 GctInputTag = cms.InputTag(
"hltGctDigis" ),
77 AlternativeNrBxBoardDaq = cms.uint32( 0 ),
78 WritePsbL1GtDaqRecord = cms.bool(
False ),
79 BstLengthBytes = cms.int32( -1 )
81 fragment.hltL1extraParticles = cms.EDProducer(
"L1ExtraParticlesProd",
82 tauJetSource = cms.InputTag(
'hltGctDigis',
'tauJets' ),
83 etHadSource = cms.InputTag(
"hltGctDigis" ),
84 isoTauJetSource = cms.InputTag(
'hltGctDigis',
'isoTauJets' ),
85 etTotalSource = cms.InputTag(
"hltGctDigis" ),
86 centralBxOnly = cms.bool(
True ),
87 centralJetSource = cms.InputTag(
'hltGctDigis',
'cenJets' ),
88 etMissSource = cms.InputTag(
"hltGctDigis" ),
89 hfRingEtSumsSource = cms.InputTag(
"hltGctDigis" ),
90 produceMuonParticles = cms.bool(
True ),
91 forwardJetSource = cms.InputTag(
'hltGctDigis',
'forJets' ),
92 ignoreHtMiss = cms.bool(
False ),
93 htMissSource = cms.InputTag(
"hltGctDigis" ),
94 produceCaloParticles = cms.bool(
True ),
95 muonSource = cms.InputTag(
"hltGtDigis" ),
96 isolatedEmSource = cms.InputTag(
'hltGctDigis',
'isoEm' ),
97 nonIsolatedEmSource = cms.InputTag(
'hltGctDigis',
'nonIsoEm' ),
98 hfRingBitCountsSource = cms.InputTag(
"hltGctDigis" )
100 fragment.hltScalersRawToDigi = cms.EDProducer(
"ScalersRawToDigi",
101 scalersInputTag = cms.InputTag(
"rawDataCollector" )
103 fragment.hltOnlineBeamSpot = cms.EDProducer(
"BeamSpotOnlineProducer",
104 maxZ = cms.double( 40.0 ),
105 src = cms.InputTag(
"hltScalersRawToDigi" ),
106 gtEvmLabel = cms.InputTag(
"" ),
107 changeToCMSCoordinates = cms.bool(
False ),
108 setSigmaZ = cms.double( 0.0 ),
109 maxRadius = cms.double( 2.0 )
111 fragment.hltPrePhysics = cms.EDFilter(
"HLTPrescaler",
112 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" ),
113 offset = cms.uint32( 0 )
115 fragment.hltBoolEnd = cms.EDFilter(
"HLTBool",
116 result = cms.bool(
True )
118 fragment.hltRandomEventsFilter = cms.EDFilter(
"HLTTriggerTypeFilter",
119 SelectedTriggerType = cms.int32( 3 )
121 fragment.hltPreRandom = cms.EDFilter(
"HLTPrescaler",
122 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" ),
123 offset = cms.uint32( 0 )
125 fragment.hltL1sL1ZeroBias = cms.EDFilter(
"HLTLevel1GTSeed",
126 L1SeedsLogicalExpression = cms.string(
"L1_ZeroBias" ),
127 saveTags = cms.bool(
True ),
128 L1MuonCollectionTag = cms.InputTag(
"hltL1extraParticles" ),
129 L1UseL1TriggerObjectMaps = cms.bool(
True ),
130 L1UseAliasesForSeeding = cms.bool(
True ),
131 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" ),
132 L1CollectionsTag = cms.InputTag(
"hltL1extraParticles" ),
133 L1NrBxInEvent = cms.int32( 3 ),
134 L1GtObjectMapTag = cms.InputTag(
"hltL1GtObjectMap" ),
135 L1TechTriggerSeeding = cms.bool(
False )
137 fragment.hltPreZeroBias = cms.EDFilter(
"HLTPrescaler",
138 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" ),
139 offset = cms.uint32( 0 )
141 fragment.hltFEDSelector = cms.EDProducer(
"EvFFEDSelector",
142 inputTag = cms.InputTag(
"rawDataCollector" ),
143 fedList = cms.vuint32( 1023 )
145 fragment.hltTriggerSummaryAOD = cms.EDProducer(
"TriggerSummaryProducerAOD",
146 moduleLabelPatternsToSkip = cms.vstring( ),
147 processName = cms.string(
"@" ),
148 moduleLabelPatternsToMatch = cms.vstring(
'hlt*' ),
149 throw = cms.bool(
False )
151 fragment.hltTriggerSummaryRAW = cms.EDProducer(
"TriggerSummaryProducerRAW",
152 processName = cms.string(
"@" )
154 fragment.hltPreHLTAnalyzerEndpath = cms.EDFilter(
"HLTPrescaler",
155 L1GtReadoutRecordTag = cms.InputTag(
"hltGtDigis" ),
156 offset = cms.uint32( 0 )
158 fragment.hltL1GtTrigReport = cms.EDAnalyzer(
"L1GtTrigReport",
159 PrintVerbosity = cms.untracked.int32( 10 ),
160 UseL1GlobalTriggerRecord = cms.bool(
False ),
161 PrintOutput = cms.untracked.int32( 3 ),
162 L1GtRecordInputTag = cms.InputTag(
"hltGtDigis" )
164 fragment.hltTrigReport = cms.EDAnalyzer(
"HLTrigReport",
165 ReferencePath = cms.untracked.string(
"HLTriggerFinalPath" ),
166 ReferenceRate = cms.untracked.double( 100.0 ),
167 serviceBy = cms.untracked.string(
"never" ),
168 resetBy = cms.untracked.string(
"never" ),
169 reportBy = cms.untracked.string(
"job" ),
170 HLTriggerResults = cms.InputTag(
'TriggerResults',
'',
'@currentProcess' )
173 fragment.HLTL1UnpackerSequence = cms.Sequence( fragment.hltGtDigis + fragment.hltGctDigis + fragment.hltL1GtObjectMap + fragment.hltL1extraParticles )
174 fragment.HLTBeamSpot = cms.Sequence( fragment.hltScalersRawToDigi + fragment.hltOnlineBeamSpot )
175 fragment.HLTBeginSequence = cms.Sequence( fragment.hltTriggerType + fragment.HLTL1UnpackerSequence + fragment.HLTBeamSpot )
176 fragment.HLTEndSequence = cms.Sequence( fragment.hltBoolEnd )
178 fragment.HLTriggerFirstPath = cms.Path( fragment.hltGetConditions + fragment.hltGetRaw + fragment.hltBoolFalse )
179 fragment.HLT_Physics_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltPrePhysics + fragment.HLTEndSequence )
180 fragment.HLT_Random_v1 = cms.Path( fragment.hltRandomEventsFilter + fragment.hltGtDigis + fragment.hltPreRandom + fragment.HLTEndSequence )
181 fragment.HLT_ZeroBias_v1 = cms.Path( fragment.HLTBeginSequence + fragment.hltL1sL1ZeroBias + fragment.hltPreZeroBias + fragment.HLTEndSequence )
182 fragment.HLTriggerFinalPath = cms.Path( fragment.hltGtDigis + fragment.hltScalersRawToDigi + fragment.hltFEDSelector + fragment.hltTriggerSummaryAOD + fragment.hltTriggerSummaryRAW + fragment.hltBoolFalse )
183 fragment.HLTAnalyzerEndpath = cms.EndPath( fragment.hltGtDigis + fragment.hltPreHLTAnalyzerEndpath + fragment.hltL1GtTrigReport + fragment.hltTrigReport )
186 fragment.HLTSchedule = cms.Schedule( *(fragment.HLTriggerFirstPath, fragment.HLT_Physics_v1, fragment.HLT_Random_v1, fragment.HLT_ZeroBias_v1, fragment.HLTriggerFinalPath, fragment.HLTAnalyzerEndpath ))
190 if 'hltGetConditions' in fragment.__dict__
and 'HLTriggerFirstPath' in fragment.__dict__ :
191 fragment.hltDummyConditions = cms.EDFilter(
"HLTBool",
192 result = cms.bool(
True )
194 fragment.HLTriggerFirstPath.replace(fragment.hltGetConditions,fragment.hltDummyConditions)
197 from HLTrigger.Configuration.customizeHLTforALL
import customizeHLTforAll
200 from HLTrigger.Configuration.customizeHLTforCMSSW
import customizeHLTforCMSSW
204 from HLTrigger.Configuration.Eras
import modifyHLTforEras
def modifyHLTforEras(fragment)
def customizeHLTforAll(process, menuType="GRun", _customInfo=None)