CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  )
91  }
92  )
93 
94  muonDTDigis = cms.EDAlias(
95  **{"simMuonDTDigis" if nopremix else "mixData" :
96  cms.VPSet(
97  cms.PSet(
98  type = cms.string("DTLayerIdDTDigiMuonDigiCollection")
99  ),
100  #cms.PSet(
101  # type = cms.string("DTLayerIdDTDigiSimLinkMuonDigiCollection")
102  # )
103  )
104  }
105  )
106 
107  muonRPCDigis = cms.EDAlias(
108  **{"simMuonRPCDigis" if nopremix else "mixData" :
109  cms.VPSet(
110  cms.PSet(
111  type = cms.string("RPCDetIdRPCDigiMuonDigiCollection")
112  ),
113  #cms.PSet(
114  # type = cms.string("RPCDigiSimLinkedmDetSetVector")
115  # )
116  )
117  }
118  )
119 
120  muonCSCDigis = cms.EDAlias(
121  **{"simMuonCSCDigis" if nopremix else "mixData" :
122  cms.VPSet(
123  cms.PSet(
124  type = cms.string("CSCDetIdCSCWireDigiMuonDigiCollection"),
125  fromProductInstance = cms.string("MuonCSCWireDigi" if nopremix else "MuonCSCWireDigisDM"),
126  toProductInstance = cms.string("MuonCSCWireDigi")),
127  cms.PSet(
128  type = cms.string("CSCDetIdCSCStripDigiMuonDigiCollection"),
129  fromProductInstance = cms.string("MuonCSCStripDigi" if nopremix else "MuonCSCStripDigisDM"),
130  toProductInstance = cms.string("MuonCSCStripDigi")),
131  #cms.PSet(
132  # type = cms.string('StripDigiSimLinkedmDetSetVector')
133  # ),
134  )
135  }
136  )
137 
139 
140  global gctDigis,gtDigis,gmtDigis,caloStage1LegacyFormatDigis
141 
142  caloStage1LegacyFormatDigis = cms.EDAlias(
143  **{ "simCaloStage1LegacyFormatDigis" :
144  cms.VPSet(
145  cms.PSet(type = cms.string("L1GctEmCands")),
146  cms.PSet(type = cms.string("L1GctEtHads")),
147  cms.PSet(type = cms.string("L1GctEtMisss")),
148  cms.PSet(type = cms.string("L1GctEtTotals")),
149  cms.PSet(type = cms.string("L1GctHFBitCountss")),
150  cms.PSet(type = cms.string("L1GctHFRingEtSumss")),
151  cms.PSet(type = cms.string("L1GctHtMisss")),
152  cms.PSet(type = cms.string("L1GctInternEtSums")),
153  cms.PSet(type = cms.string("L1GctInternHtMisss")),
154  cms.PSet(type = cms.string("L1GctInternJetDatas")),
155  cms.PSet(type = cms.string("L1GctJetCands")))})
156 
157  gctDigis = cms.EDAlias(
158  **{ "simGctDigis" :
159  cms.VPSet(
160  cms.PSet(type = cms.string("L1GctEmCands")),
161  cms.PSet(type = cms.string("L1GctEtHads")),
162  cms.PSet(type = cms.string("L1GctEtMisss")),
163  cms.PSet(type = cms.string("L1GctEtTotals")),
164  cms.PSet(type = cms.string("L1GctHFBitCountss")),
165  cms.PSet(type = cms.string("L1GctHFRingEtSumss")),
166  cms.PSet(type = cms.string("L1GctHtMisss")),
167  cms.PSet(type = cms.string("L1GctInternEtSums")),
168  cms.PSet(type = cms.string("L1GctInternHtMisss")),
169  cms.PSet(type = cms.string("L1GctInternJetDatas")),
170  cms.PSet(type = cms.string("L1GctJetCands")))})
171 
172  gtDigis = cms.EDAlias(
173  **{ "simGtDigis" :
174  cms.VPSet(
175  cms.PSet(type = cms.string("L1GlobalTriggerEvmReadoutRecord")),
176  cms.PSet(type = cms.string("L1GlobalTriggerObjectMapRecord")),
177  cms.PSet(type = cms.string("L1GlobalTriggerReadoutRecord"))),
178  "simGmtDigis" :
179  cms.VPSet(
180  cms.PSet(type = cms.string("L1MuGMTReadoutCollection")),
181  cms.PSet(type = cms.string("L1MuGMTCands")))
182  })
183 
184 
185  gmtDigis = cms.EDAlias (
186  simGmtDigis =
187  cms.VPSet(
188  cms.PSet(type = cms.string("L1MuGMTReadoutCollection")),
189  cms.PSet(type = cms.string("L1MuGMTCands"))
190  )
191  )
192