CMS 3D CMS Logo

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