CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DigiAndMixAliasInfo_cff.py
Go to the documentation of this file.
2 
3 generalTracksAliasInfo = cms.VPSet(
4  cms.PSet(
5  key = cms.string("mix"),
6  value = cms.VPSet( cms.PSet(type=cms.string('recoTracks'),
7  fromProductInstance = cms.string('generalTracks'),
8  toProductInstance = cms.string('') ),
9  cms.PSet(type=cms.string('recoTrackExtras'),
10  fromProductInstance = cms.string('generalTracks'),
11  toProductInstance = cms.string('') ),
12  cms.PSet(type=cms.string('TrackingRecHitsOwned'),
13  fromProductInstance = cms.string('generalTracks'),
14  toProductInstance = cms.string('') ),
15  cms.PSet(type=cms.string('floatedmValueMap'),
16  fromProductInstance = cms.string('generalTracksMVAVals'),
17  toProductInstance = cms.string('MVAVals') ) )
18  )
19  )
20 
21 ecalPreShowerDigisAliasInfo = cms.VPSet(
22  cms.PSet(
23  key = cms.string("simEcalPreshowerDigis"),
24  value = cms.VPSet(cms.PSet(type = cms.string("ESDigiCollection")))
25  )
26  )
27 
28 ecalDigisAliasInfo = cms.VPSet(
29  cms.PSet(
30  key = cms.string("simEcalDigis"),
31  value = cms.VPSet(
32  cms.PSet(type = cms.string("EBDigiCollection")),
33  cms.PSet(type = cms.string("EEDigiCollection")),
34  cms.PSet(
35  type = cms.string("EBSrFlagsSorted"),
36  fromProductInstance = cms.string('ebSrFlags'),
37  toProductInstance = cms.string('')),
38  cms.PSet(
39  type = cms.string("EESrFlagsSorted"),
40  fromProductInstance = cms.string('eeSrFlags'),
41  toProductInstance = cms.string(''))),
42  ),
43  cms.PSet(
44  key = cms.string("simEcalTriggerPrimitiveDigis"),
45  value = cms.VPSet(
46  cms.PSet(
47  type = cms.string("EcalTriggerPrimitiveDigisSorted"),
48  fromProductInstance = cms.string(""),
49  toProductInstance = cms.string("EcalTriggerPrimitives")))
50  )
51  )
52 
53 hcalDigisAliasInfo = cms.VPSet(
54  cms.PSet(
55  key = cms.string("simHcalDigis"),
56  value = cms.VPSet(
57  cms.PSet(type = cms.string("HBHEDataFramesSorted")),
58  cms.PSet(type = cms.string("HFDataFramesSorted")),
59  cms.PSet(type = cms.string("HODataFramesSorted")))
60  )
61  )
62 
63 muonDTDigisAliasInfo = cms.VPSet(
64  cms.PSet(
65  key = cms.string("simMuonDTDigis"),
66  value = cms.VPSet(cms.PSet(type = cms.string("DTLayerIdDTDigiMuonDigiCollection")))
67  )
68  )
69 
70 
71 muonRPCDigisAliasInfo = cms.VPSet(
72  cms.PSet(
73  key = cms.string("simMuonRPCDigis"),
74  value = cms.VPSet(cms.PSet(type = cms.string("RPCDetIdRPCDigiMuonDigiCollection")))
75  )
76  )
77 
78 muonCSCDigisAliasInfo = cms.VPSet(
79  cms.PSet(
80  key = cms.string("simMuonCSCDigis"),
81  value = cms.VPSet(
82  cms.PSet(
83  type = cms.string("CSCDetIdCSCWireDigiMuonDigiCollection"),
84  fromProductInstance = cms.string("MuonCSCWireDigi")),
85  cms.PSet(
86  type = cms.string("CSCDetIdCSCStripDigiMuonDigiCollection"),
87  fromProductInstance = cms.string("MuonCSCStripDigi")))
88  )
89  )
90 
91 gtDigisAliasInfo = cms.VPSet (
92  cms.PSet(
93  key = cms.string("simGtDigis"),
94  value = cms.VPSet(
95  cms.PSet(type = cms.string("L1GlobalTriggerReadoutRecord")),
96  cms.PSet(type = cms.string("L1GlobalTriggerObjectMapRecord"))
97  )
98  )
99  )
100 
101 gmtDigisAliasInfo = cms.VPSet (
102  cms.PSet(
103  key = cms.string("simGmtDigis"),
104  value = cms.VPSet(
105  cms.PSet(type = cms.string("L1MuGMTReadoutCollection"))
106  )
107  )
108  )
109 
111  print "# WARNING: converting digi and mix aliases for DataMixer"
112  # tracker
113  generalTracksAliasInfo[0].key = "mixData"
114 
115  # muon system
116  muonCSCDigisAliasInfo[0].key = "mixData"
117  muonCSCDigisAliasInfo[0].value[0].fromProductInstance = "MuonCSCWireDigisDM"
118  muonCSCDigisAliasInfo[0].value[1].fromProductInstance = "MuonCSCStripDigisDM"
119  muonRPCDigisAliasInfo[0].key = "mixData"
120  muonDTDigisAliasInfo[0].key = "mixData"
121 
122  # calorimeters
123  hcalDigisAliasInfo[0].key = "DMHcalDigis"
124  ecalDigisAliasInfo[0].key = "DMEcalDigis"
125  ecalDigisAliasInfo[1].key = "DMEcalTriggerPrimitiveDigis"
126  ecalPreShowerDigisAliasInfo[0].key = "DMEcalPreshowerDigis"
127 
128 def infoToAlias(info):
129  _dict = dict()
130  for entry in info:
131  _dict[entry.key.value()] = entry.value
132  return cms.EDAlias(**_dict)