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.
1 import FWCore.ParameterSet.Config as cms
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  )
16  )
17  )
18 
19 ecalPreShowerDigisAliasInfo = cms.VPSet(
20  cms.PSet(
21  key = cms.string("simEcalPreshowerDigis"),
22  value = cms.VPSet(cms.PSet(type = cms.string("ESDigiCollection")))
23  )
24  )
25 
26 ecalDigisAliasInfo = cms.VPSet(
27  cms.PSet(
28  key = cms.string("simEcalDigis"),
29  value = cms.VPSet(
30  cms.PSet(type = cms.string("EBDigiCollection")),
31  cms.PSet(type = cms.string("EEDigiCollection")),
32  cms.PSet(
33  type = cms.string("EBSrFlagsSorted"),
34  fromProductInstance = cms.string('ebSrFlags'),
35  toProductInstance = cms.string('')),
36  cms.PSet(
37  type = cms.string("EESrFlagsSorted"),
38  fromProductInstance = cms.string('eeSrFlags'),
39  toProductInstance = cms.string(''))),
40  ),
41  cms.PSet(
42  key = cms.string("simEcalTriggerPrimitiveDigis"),
43  value = cms.VPSet(
44  cms.PSet(
45  type = cms.string("EcalTriggerPrimitiveDigisSorted"),
46  fromProductInstance = cms.string(""),
47  toProductInstance = cms.string("EcalTriggerPrimitives")))
48  )
49  )
50 
51 hcalDigisAliasInfo = cms.VPSet(
52  cms.PSet(
53  key = cms.string("simHcalDigis"),
54  value = cms.VPSet(
55  cms.PSet(type = cms.string("HBHEDataFramesSorted")),
56  cms.PSet(type = cms.string("HFDataFramesSorted")),
57  cms.PSet(type = cms.string("HODataFramesSorted")))
58  )
59  )
60 
61 muonDTDigisAliasInfo = cms.VPSet(
62  cms.PSet(
63  key = cms.string("simMuonDTDigis"),
64  value = cms.VPSet(cms.PSet(type = cms.string("DTLayerIdDTDigiMuonDigiCollection")))
65  )
66  )
67 
68 
69 muonRPCDigisAliasInfo = cms.VPSet(
70  cms.PSet(
71  key = cms.string("simMuonRPCDigis"),
72  value = cms.VPSet(cms.PSet(type = cms.string("RPCDetIdRPCDigiMuonDigiCollection")))
73  )
74  )
75 
76 muonCSCDigisAliasInfo = cms.VPSet(
77  cms.PSet(
78  key = cms.string("simMuonCSCDigis"),
79  value = cms.VPSet(
80  cms.PSet(
81  type = cms.string("CSCDetIdCSCWireDigiMuonDigiCollection"),
82  fromProductInstance = cms.string("MuonCSCWireDigi")),
83  cms.PSet(
84  type = cms.string("CSCDetIdCSCStripDigiMuonDigiCollection"),
85  fromProductInstance = cms.string("MuonCSCStripDigi")))
86  )
87  )
88 
89 gtDigisAliasInfo = cms.VPSet (
90  cms.PSet(
91  key = cms.string("simGtDigis"),
92  value = cms.VPSet(
93  cms.PSet(type = cms.string("L1GlobalTriggerReadoutRecord")),
94  cms.PSet(type = cms.string("L1GlobalTriggerObjectMapRecord"))
95  )
96  )
97  )
98 
99 gmtDigisAliasInfo = cms.VPSet (
100  cms.PSet(
101  key = cms.string("simGmtDigis"),
102  value = cms.VPSet(
103  cms.PSet(type = cms.string("L1MuGMTReadoutCollection"))
104  )
105  )
106  )
107 
109  print "# WARNING: converting digi and mix aliases for DataMixer"
110  # tracker
111  generalTracksAliasInfo[0].key = "mixData"
112 
113  # muon system
114  muonCSCDigisAliasInfo[0].key = "mixData"
115  muonCSCDigisAliasInfo[0].value[0].fromProductInstance = "MuonCSCWireDigisDM"
116  muonCSCDigisAliasInfo[0].value[1].fromProductInstance = "MuonCSCStripDigisDM"
117  muonRPCDigisAliasInfo[0].key = "mixData"
118  muonDTDigisAliasInfo[0].key = "mixData"
119 
120  # calorimeters
121  hcalDigisAliasInfo[0].key = "DMHcalDigis"
122  ecalDigisAliasInfo[0].key = "DMEcalDigis"
123  ecalDigisAliasInfo[1].key = "DMEcalTriggerPrimitiveDigis"
124  ecalPreShowerDigisAliasInfo[0].key = "DMEcalPreshowerDigis"
125 
126 def infoToAlias(info):
127  _dict = dict()
128  for entry in info:
129  _dict[entry.key.value()] = entry.value
130  return cms.EDAlias(**_dict)