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