1 import FWCore.ParameterSet.Config
as cms
7 _loadDigiAliasesWasCalledPremix =
None 18 _enableDigiAliases =
True 21 if _loadDigiAliasesWasCalledPremix
is None:
22 raise Exception(
"This function may be called only after loadDigiAliases() has been called")
24 nopremix =
not _loadDigiAliasesWasCalledPremix
25 process.generalTracks = cms.EDAlias(
26 **{
"mix" if nopremix
else "mixData" :
29 fromProductInstance = cms.string(
'generalTracks'),
30 toProductInstance = cms.string(
''),
31 type = cms.string(
'recoTracks')
34 fromProductInstance = cms.string(
'generalTracks'),
35 toProductInstance = cms.string(
''),
36 type = cms.string(
'recoTrackExtras')
39 fromProductInstance = cms.string(
'generalTracks'),
40 toProductInstance = cms.string(
''),
41 type = cms.string(
'TrackingRecHitsOwned')
49 global _loadDigiAliasesWasCalledPremix
50 _loadDigiAliasesWasCalledPremix = premix
52 if not _enableDigiAliases:
55 process.ecalPreshowerDigis = cms.EDAlias(
56 **{
"simEcalPreshowerDigis" if nopremix
else "DMEcalPreshowerDigis" :
59 type = cms.string(
"ESDigiCollection")
65 process.ecalDigis = cms.EDAlias(
66 **{
"simEcalDigis" if nopremix
else "DMEcalDigis" :
69 type = cms.string(
"EBDigiCollection")
72 type = cms.string(
"EEDigiCollection")
75 type = cms.string(
"EBSrFlagsSorted"),
76 fromProductInstance = cms.string(
'ebSrFlags'),
77 toProductInstance = cms.string(
'')),
79 type = cms.string(
"EESrFlagsSorted"),
80 fromProductInstance = cms.string(
'eeSrFlags'),
81 toProductInstance = cms.string(
''),
84 "simEcalTriggerPrimitiveDigis" if nopremix
else "DMEcalTriggerPrimitiveDigis" :
87 type = cms.string(
"EcalTriggerPrimitiveDigisSorted"),
88 fromProductInstance = cms.string(
""),
89 toProductInstance = cms.string(
"EcalTriggerPrimitives")
95 process.hcalDigis = cms.EDAlias(
96 **{
"simHcalDigis" if nopremix
else "DMHcalDigis" :
98 cms.PSet(type = cms.string(
"HBHEDataFramesSorted")),
99 cms.PSet(type = cms.string(
"HFDataFramesSorted")),
100 cms.PSet(type = cms.string(
"HODataFramesSorted")),
102 type = cms.string(
'QIE10DataFrameHcalDataFrameContainer'),
103 fromProductInstance = cms.string(
'HFQIE10DigiCollection'),
104 toProductInstance = cms.string(
'')
107 type = cms.string(
'QIE11DataFrameHcalDataFrameContainer'),
108 fromProductInstance = cms.string(
'HBHEQIE11DigiCollection'),
109 toProductInstance = cms.string(
'')
115 process.muonDTDigis = cms.EDAlias(
116 **{
"simMuonDTDigis" if nopremix
else "mixData" :
119 type = cms.string(
"DTLayerIdDTDigiMuonDigiCollection")
128 process.muonRPCDigis = cms.EDAlias(
129 **{
"simMuonRPCDigis" if nopremix
else "mixData" :
132 type = cms.string(
"RPCDetIdRPCDigiMuonDigiCollection")
141 process.muonCSCDigis = cms.EDAlias(
142 **{
"simMuonCSCDigis" if nopremix
else "mixData" :
145 type = cms.string(
"CSCDetIdCSCWireDigiMuonDigiCollection"),
146 fromProductInstance = cms.string(
"MuonCSCWireDigi" if nopremix
else "MuonCSCWireDigisDM"),
147 toProductInstance = cms.string(
"MuonCSCWireDigi")),
149 type = cms.string(
"CSCDetIdCSCStripDigiMuonDigiCollection"),
150 fromProductInstance = cms.string(
"MuonCSCStripDigi" if nopremix
else "MuonCSCStripDigisDM"),
151 toProductInstance = cms.string(
"MuonCSCStripDigi")),
160 process.caloStage1LegacyFormatDigis = cms.EDAlias(
161 **{
"simCaloStage1LegacyFormatDigis" :
163 cms.PSet(type = cms.string(
"L1GctEmCands")),
164 cms.PSet(type = cms.string(
"L1GctEtHads")),
165 cms.PSet(type = cms.string(
"L1GctEtMisss")),
166 cms.PSet(type = cms.string(
"L1GctEtTotals")),
167 cms.PSet(type = cms.string(
"L1GctHFBitCountss")),
168 cms.PSet(type = cms.string(
"L1GctHFRingEtSumss")),
169 cms.PSet(type = cms.string(
"L1GctHtMisss")),
170 cms.PSet(type = cms.string(
"L1GctInternEtSums")),
171 cms.PSet(type = cms.string(
"L1GctInternHtMisss")),
172 cms.PSet(type = cms.string(
"L1GctInternJetDatas")),
173 cms.PSet(type = cms.string(
"L1GctJetCands")))})
175 process.gctDigis = cms.EDAlias(
178 cms.PSet(type = cms.string(
"L1GctEmCands")),
179 cms.PSet(type = cms.string(
"L1GctEtHads")),
180 cms.PSet(type = cms.string(
"L1GctEtMisss")),
181 cms.PSet(type = cms.string(
"L1GctEtTotals")),
182 cms.PSet(type = cms.string(
"L1GctHFBitCountss")),
183 cms.PSet(type = cms.string(
"L1GctHFRingEtSumss")),
184 cms.PSet(type = cms.string(
"L1GctHtMisss")),
185 cms.PSet(type = cms.string(
"L1GctInternEtSums")),
186 cms.PSet(type = cms.string(
"L1GctInternHtMisss")),
187 cms.PSet(type = cms.string(
"L1GctInternJetDatas")),
188 cms.PSet(type = cms.string(
"L1GctJetCands")))})
190 process.gtDigis = cms.EDAlias(
193 cms.PSet(type = cms.string(
"L1GlobalTriggerEvmReadoutRecord")),
194 cms.PSet(type = cms.string(
"L1GlobalTriggerObjectMapRecord")),
195 cms.PSet(type = cms.string(
"L1GlobalTriggerReadoutRecord"))),
198 cms.PSet(type = cms.string(
"L1MuGMTReadoutCollection")),
199 cms.PSet(type = cms.string(
"L1MuGMTCands")))
203 process.gmtDigis = cms.EDAlias (
206 cms.PSet(type = cms.string(
"L1MuGMTReadoutCollection")),
207 cms.PSet(type = cms.string(
"L1MuGMTCands"))
def loadGeneralTracksAlias(process)
def loadDigiAliases(process, premix=False)
def loadTriggerDigiAliases(process)