CMS 3D CMS Logo

DigiAliases_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # This is an ugly hack (but better what was before) to record if the
4 # loadDigiAliases() was called with premixing or not. Unfortunately
5 # which alias to use depends on that. If we had a premixing Modifier,
6 # this hack would not be needed.
7 _loadDigiAliasesWasCalledPremix = None
8 
9 def loadGeneralTracksAlias(process):
10  if _loadDigiAliasesWasCalledPremix is None:
11  raise Exception("This function may be called only after loadDigiAliases() has been called")
12 
13  nopremix = not _loadDigiAliasesWasCalledPremix
14  process.generalTracks = cms.EDAlias(
15  **{"mix" if nopremix else "mixData" :
16  cms.VPSet(
17  cms.PSet(
18  fromProductInstance = cms.string('generalTracks'),
19  toProductInstance = cms.string(''),
20  type = cms.string('recoTracks')
21  ),
22  cms.PSet(
23  fromProductInstance = cms.string('generalTracks'),
24  toProductInstance = cms.string(''),
25  type = cms.string('recoTrackExtras')
26  ),
27  cms.PSet(
28  fromProductInstance = cms.string('generalTracks'),
29  toProductInstance = cms.string(''),
30  type = cms.string('TrackingRecHitsOwned')
31  )
32  )
33  }
34  )
35 
36 def loadDigiAliases(process, premix=False):
37  nopremix = not premix
38  global _loadDigiAliasesWasCalledPremix
39  _loadDigiAliasesWasCalledPremix = premix
40 
41  process.ecalPreshowerDigis = cms.EDAlias(
42  **{"simEcalPreshowerDigis" if nopremix else "DMEcalPreshowerDigis" :
43  cms.VPSet(
44  cms.PSet(
45  type = cms.string("ESDigiCollection")
46  )
47  )
48  }
49  )
50 
51  process.ecalDigis = cms.EDAlias(
52  **{"simEcalDigis" if nopremix else "DMEcalDigis" :
53  cms.VPSet(
54  cms.PSet(
55  type = cms.string("EBDigiCollection")
56  ),
57  cms.PSet(
58  type = cms.string("EEDigiCollection")
59  ),
60  cms.PSet(
61  type = cms.string("EBSrFlagsSorted"),
62  fromProductInstance = cms.string('ebSrFlags'),
63  toProductInstance = cms.string('')),
64  cms.PSet(
65  type = cms.string("EESrFlagsSorted"),
66  fromProductInstance = cms.string('eeSrFlags'),
67  toProductInstance = cms.string(''),
68  )
69  ),
70  "simEcalTriggerPrimitiveDigis" if nopremix else "DMEcalTriggerPrimitiveDigis" :
71  cms.VPSet(
72  cms.PSet(
73  type = cms.string("EcalTriggerPrimitiveDigisSorted"),
74  fromProductInstance = cms.string(""),
75  toProductInstance = cms.string("EcalTriggerPrimitives")
76  )
77  )
78  }
79  )
80 
81  process.hcalDigis = cms.EDAlias(
82  **{"simHcalDigis" if nopremix else "DMHcalDigis" :
83  cms.VPSet(
84  cms.PSet(type = cms.string("HBHEDataFramesSorted")),
85  cms.PSet(type = cms.string("HFDataFramesSorted")),
86  cms.PSet(type = cms.string("HODataFramesSorted")),
87  cms.PSet(
88  type = cms.string('QIE10DataFrameHcalDataFrameContainer'),
89  fromProductInstance = cms.string('HFQIE10DigiCollection'),
90  toProductInstance = cms.string('')
91  ),
92  cms.PSet(
93  type = cms.string('QIE11DataFrameHcalDataFrameContainer'),
94  fromProductInstance = cms.string('HBHEQIE11DigiCollection'),
95  toProductInstance = cms.string('')
96  )
97  )
98  }
99  )
100 
101  process.muonDTDigis = cms.EDAlias(
102  simMuonDTDigis = cms.VPSet(
103  cms.PSet(
104  type = cms.string("DTLayerIdDTDigiMuonDigiCollection")
105  ),
106  #cms.PSet(
107  # type = cms.string("DTLayerIdDTDigiSimLinkMuonDigiCollection")
108  # )
109  )
110  )
111 
112  process.muonRPCDigis = cms.EDAlias(
113  simMuonRPCDigis = cms.VPSet(
114  cms.PSet(
115  type = cms.string("RPCDetIdRPCDigiMuonDigiCollection")
116  ),
117  #cms.PSet(
118  # type = cms.string("RPCDigiSimLinkedmDetSetVector")
119  # )
120  )
121  )
122 
123  process.muonCSCDigis = cms.EDAlias(
124  simMuonCSCDigis = cms.VPSet(
125  cms.PSet(
126  type = cms.string("CSCDetIdCSCWireDigiMuonDigiCollection"),
127  fromProductInstance = cms.string("MuonCSCWireDigi"),
128  toProductInstance = cms.string("MuonCSCWireDigi")),
129  cms.PSet(
130  type = cms.string("CSCDetIdCSCStripDigiMuonDigiCollection"),
131  fromProductInstance = cms.string("MuonCSCStripDigi"),
132  toProductInstance = cms.string("MuonCSCStripDigi")),
133  #cms.PSet(
134  # type = cms.string('StripDigiSimLinkedmDetSetVector')
135  # ),
136  )
137  )
138 
140  process.caloStage1LegacyFormatDigis = cms.EDAlias(
141  **{ "simCaloStage1LegacyFormatDigis" :
142  cms.VPSet(
143  cms.PSet(type = cms.string("L1GctEmCands")),
144  cms.PSet(type = cms.string("L1GctEtHads")),
145  cms.PSet(type = cms.string("L1GctEtMisss")),
146  cms.PSet(type = cms.string("L1GctEtTotals")),
147  cms.PSet(type = cms.string("L1GctHFBitCountss")),
148  cms.PSet(type = cms.string("L1GctHFRingEtSumss")),
149  cms.PSet(type = cms.string("L1GctHtMisss")),
150  cms.PSet(type = cms.string("L1GctInternEtSums")),
151  cms.PSet(type = cms.string("L1GctInternHtMisss")),
152  cms.PSet(type = cms.string("L1GctInternJetDatas")),
153  cms.PSet(type = cms.string("L1GctJetCands")))})
154 
155  process.gctDigis = cms.EDAlias(
156  **{ "simGctDigis" :
157  cms.VPSet(
158  cms.PSet(type = cms.string("L1GctEmCands")),
159  cms.PSet(type = cms.string("L1GctEtHads")),
160  cms.PSet(type = cms.string("L1GctEtMisss")),
161  cms.PSet(type = cms.string("L1GctEtTotals")),
162  cms.PSet(type = cms.string("L1GctHFBitCountss")),
163  cms.PSet(type = cms.string("L1GctHFRingEtSumss")),
164  cms.PSet(type = cms.string("L1GctHtMisss")),
165  cms.PSet(type = cms.string("L1GctInternEtSums")),
166  cms.PSet(type = cms.string("L1GctInternHtMisss")),
167  cms.PSet(type = cms.string("L1GctInternJetDatas")),
168  cms.PSet(type = cms.string("L1GctJetCands")))})
169 
170  process.gtDigis = cms.EDAlias(
171  **{ "simGtDigis" :
172  cms.VPSet(
173  cms.PSet(type = cms.string("L1GlobalTriggerEvmReadoutRecord")),
174  cms.PSet(type = cms.string("L1GlobalTriggerObjectMapRecord")),
175  cms.PSet(type = cms.string("L1GlobalTriggerReadoutRecord"))),
176  "simGmtDigis" :
177  cms.VPSet(
178  cms.PSet(type = cms.string("L1MuGMTReadoutCollection")),
179  cms.PSet(type = cms.string("L1MuGMTCands")))
180  })
181 
182 
183  process.gmtDigis = cms.EDAlias (
184  simGmtDigis =
185  cms.VPSet(
186  cms.PSet(type = cms.string("L1MuGMTReadoutCollection")),
187  cms.PSet(type = cms.string("L1MuGMTCands"))
188  )
189  )
190 
DigiAliases_cff.loadDigiAliases
def loadDigiAliases(process, premix=False)
Definition: DigiAliases_cff.py:36
Exception
DigiAliases_cff.loadGeneralTracksAlias
def loadGeneralTracksAlias(process)
Definition: DigiAliases_cff.py:9
DigiAliases_cff.loadTriggerDigiAliases
def loadTriggerDigiAliases(process)
Definition: DigiAliases_cff.py:139