File indexing completed on 2024-04-06 12:11:14
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004
0005
0006
0007 _loadDigiAliasesWasCalledPremix = None
0008
0009 def loadGeneralTracksAlias(process):
0010 if _loadDigiAliasesWasCalledPremix is None:
0011 raise Exception("This function may be called only after loadDigiAliases() has been called")
0012
0013 nopremix = not _loadDigiAliasesWasCalledPremix
0014 process.generalTracks = cms.EDAlias(
0015 **{"mix" if nopremix else "mixData" :
0016 cms.VPSet(
0017 cms.PSet(
0018 fromProductInstance = cms.string('generalTracks'),
0019 toProductInstance = cms.string(''),
0020 type = cms.string('recoTracks')
0021 ),
0022 cms.PSet(
0023 fromProductInstance = cms.string('generalTracks'),
0024 toProductInstance = cms.string(''),
0025 type = cms.string('recoTrackExtras')
0026 ),
0027 cms.PSet(
0028 fromProductInstance = cms.string('generalTracks'),
0029 toProductInstance = cms.string(''),
0030 type = cms.string('TrackingRecHitsOwned')
0031 )
0032 )
0033 }
0034 )
0035
0036 def loadDigiAliases(process, premix=False):
0037 nopremix = not premix
0038 global _loadDigiAliasesWasCalledPremix
0039 _loadDigiAliasesWasCalledPremix = premix
0040
0041 process.ecalPreshowerDigis = cms.EDAlias(
0042 **{"simEcalPreshowerDigis" if nopremix else "DMEcalPreshowerDigis" :
0043 cms.VPSet(
0044 cms.PSet(
0045 type = cms.string("ESDigiCollection")
0046 )
0047 )
0048 }
0049 )
0050
0051 process.ecalDigis = cms.EDAlias(
0052 **{"simEcalDigis" if nopremix else "DMEcalDigis" :
0053 cms.VPSet(
0054 cms.PSet(
0055 type = cms.string("EBDigiCollection")
0056 ),
0057 cms.PSet(
0058 type = cms.string("EEDigiCollection")
0059 ),
0060 cms.PSet(
0061 type = cms.string("EBSrFlagsSorted"),
0062 fromProductInstance = cms.string('ebSrFlags'),
0063 toProductInstance = cms.string('')),
0064 cms.PSet(
0065 type = cms.string("EESrFlagsSorted"),
0066 fromProductInstance = cms.string('eeSrFlags'),
0067 toProductInstance = cms.string(''),
0068 )
0069 ),
0070 "simEcalTriggerPrimitiveDigis" if nopremix else "DMEcalTriggerPrimitiveDigis" :
0071 cms.VPSet(
0072 cms.PSet(
0073 type = cms.string("EcalTriggerPrimitiveDigisSorted"),
0074 fromProductInstance = cms.string(""),
0075 toProductInstance = cms.string("EcalTriggerPrimitives")
0076 )
0077 )
0078 }
0079 )
0080
0081 process.hcalDigis = cms.EDAlias(
0082 **{"simHcalDigis" if nopremix else "DMHcalDigis" :
0083 cms.VPSet(
0084 cms.PSet(type = cms.string("HBHEDataFramesSorted")),
0085 cms.PSet(type = cms.string("HFDataFramesSorted")),
0086 cms.PSet(type = cms.string("HODataFramesSorted")),
0087 cms.PSet(
0088 type = cms.string('QIE10DataFrameHcalDataFrameContainer'),
0089 fromProductInstance = cms.string('HFQIE10DigiCollection'),
0090 toProductInstance = cms.string('')
0091 ),
0092 cms.PSet(
0093 type = cms.string('QIE11DataFrameHcalDataFrameContainer'),
0094 fromProductInstance = cms.string('HBHEQIE11DigiCollection'),
0095 toProductInstance = cms.string('')
0096 )
0097 )
0098 }
0099 )
0100
0101 process.muonDTDigis = cms.EDAlias(
0102 simMuonDTDigis = cms.VPSet(
0103 cms.PSet(
0104 type = cms.string("DTLayerIdDTDigiMuonDigiCollection")
0105 ),
0106
0107
0108
0109 )
0110 )
0111
0112 process.muonRPCDigis = cms.EDAlias(
0113 simMuonRPCDigis = cms.VPSet(
0114 cms.PSet(
0115 type = cms.string("RPCDetIdRPCDigiMuonDigiCollection")
0116 ),
0117
0118
0119
0120 )
0121 )
0122
0123 process.muonCSCDigis = cms.EDAlias(
0124 simMuonCSCDigis = cms.VPSet(
0125 cms.PSet(
0126 type = cms.string("CSCDetIdCSCWireDigiMuonDigiCollection"),
0127 fromProductInstance = cms.string("MuonCSCWireDigi"),
0128 toProductInstance = cms.string("MuonCSCWireDigi")),
0129 cms.PSet(
0130 type = cms.string("CSCDetIdCSCStripDigiMuonDigiCollection"),
0131 fromProductInstance = cms.string("MuonCSCStripDigi"),
0132 toProductInstance = cms.string("MuonCSCStripDigi")),
0133
0134
0135
0136 )
0137 )
0138
0139 def loadTriggerDigiAliases(process):
0140 process.caloStage1LegacyFormatDigis = cms.EDAlias(
0141 **{ "simCaloStage1LegacyFormatDigis" :
0142 cms.VPSet(
0143 cms.PSet(type = cms.string("L1GctEmCands")),
0144 cms.PSet(type = cms.string("L1GctEtHads")),
0145 cms.PSet(type = cms.string("L1GctEtMisss")),
0146 cms.PSet(type = cms.string("L1GctEtTotals")),
0147 cms.PSet(type = cms.string("L1GctHFBitCountss")),
0148 cms.PSet(type = cms.string("L1GctHFRingEtSumss")),
0149 cms.PSet(type = cms.string("L1GctHtMisss")),
0150 cms.PSet(type = cms.string("L1GctInternEtSums")),
0151 cms.PSet(type = cms.string("L1GctInternHtMisss")),
0152 cms.PSet(type = cms.string("L1GctInternJetDatas")),
0153 cms.PSet(type = cms.string("L1GctJetCands")))})
0154
0155 process.gctDigis = cms.EDAlias(
0156 **{ "simGctDigis" :
0157 cms.VPSet(
0158 cms.PSet(type = cms.string("L1GctEmCands")),
0159 cms.PSet(type = cms.string("L1GctEtHads")),
0160 cms.PSet(type = cms.string("L1GctEtMisss")),
0161 cms.PSet(type = cms.string("L1GctEtTotals")),
0162 cms.PSet(type = cms.string("L1GctHFBitCountss")),
0163 cms.PSet(type = cms.string("L1GctHFRingEtSumss")),
0164 cms.PSet(type = cms.string("L1GctHtMisss")),
0165 cms.PSet(type = cms.string("L1GctInternEtSums")),
0166 cms.PSet(type = cms.string("L1GctInternHtMisss")),
0167 cms.PSet(type = cms.string("L1GctInternJetDatas")),
0168 cms.PSet(type = cms.string("L1GctJetCands")))})
0169
0170 process.gtDigis = cms.EDAlias(
0171 **{ "simGtDigis" :
0172 cms.VPSet(
0173 cms.PSet(type = cms.string("L1GlobalTriggerEvmReadoutRecord")),
0174 cms.PSet(type = cms.string("L1GlobalTriggerObjectMapRecord")),
0175 cms.PSet(type = cms.string("L1GlobalTriggerReadoutRecord"))),
0176 "simGmtDigis" :
0177 cms.VPSet(
0178 cms.PSet(type = cms.string("L1MuGMTReadoutCollection")),
0179 cms.PSet(type = cms.string("L1MuGMTCands")))
0180 })
0181
0182
0183 process.gmtDigis = cms.EDAlias (
0184 simGmtDigis =
0185 cms.VPSet(
0186 cms.PSet(type = cms.string("L1MuGMTReadoutCollection")),
0187 cms.PSet(type = cms.string("L1MuGMTCands"))
0188 )
0189 )
0190