CMS 3D CMS Logo

EcalElectronicsMapping.h
Go to the documentation of this file.
1 #ifndef ECALELECTRONICSMAPPING_H
2 #define ECALELECTRONICSMAPPING_H 1
3 
4 #include <memory>
5 #include <iostream>
6 #include <string>
7 
10 
11 #include <boost/multi_index_container.hpp>
12 #include <boost/multi_index/member.hpp>
13 #include <boost/multi_index/ordered_index.hpp>
14 #include <boost/tuple/tuple.hpp>
15 #include <boost/multi_index/mem_fun.hpp>
16 #include <boost/multi_index/composite_key.hpp>
17 
19 
20 #include <vector>
21 #include <map>
22 
29 public:
31 
33  EcalElectronicsId getElectronicsId(const DetId& id) const;
34 
37 
39  DetId getDetId(const EcalElectronicsId& id) const;
40 
43 
45  DetId getDetId(const EcalTriggerElectronicsId& id) const;
46 
49 
51  std::vector<DetId> dccConstituents(int dccId) const;
52 
54  std::vector<DetId> dccTowerConstituents(int dccId, int tower) const;
55 
57  std::vector<DetId> stripConstituents(int dccId, int tower, int strip) const;
58 
60  std::vector<DetId> tccConstituents(int tccId) const;
61 
63  std::vector<DetId> ttConstituents(int tccId, int tt) const;
64 
66  std::vector<DetId> pseudoStripConstituents(int tccId, int tt, int pseudostrip) const;
67 
69  void assign(const DetId& cell, const EcalElectronicsId&, const EcalTriggerElectronicsId& tower);
70 
83  std::pair<int, int> getDCCandSC(EcalScDetId id) const;
84 
100  std::vector<EcalScDetId> getEcalScDetId(int DCCid, int DCC_Channel, bool ignoreSingleCrystal = true) const;
101 
103  int DCCid(const EBDetId& id) const;
104 
106  int TCCid(const EBDetId& id) const;
107 
109  int iTT(const EcalTrigTowerDetId& id) const;
110 
112  int TCCid(const EcalTrigTowerDetId& id) const;
113 
115  int DCCid(const EcalTrigTowerDetId& id) const;
116 
119 
120  EcalSubdetector subdet(int dccid, int mode) const;
121  int zside(int dcctcc, int mode) const;
122 
123  bool rightTower(int tower) const;
124 
125  // methods used for regional unpacking :
126  std::vector<int> GetListofFEDs(const RectangularEtaPhiRegion& region) const;
127  void GetListofFEDs(const RectangularEtaPhiRegion& region, std::vector<int>& FEDs) const;
128  int GetFED(double eta, double phi) const;
129  int DCCBoundary(int FED) const;
130 
131  // methods for retrieving the Laser Monitoring readout number
132 
133  int getLMNumber(const DetId& id) const;
134 
135  // Geometry of SM in EB :
136  static const int kCrystalsInPhi = EBDetId::kCrystalsInPhi; // per SM
137  static const int kTowersInPhi = EBDetId::kTowersInPhi; // per SM
138 
139  // Geometry of the Trigger Towers :
140 
141  static const int kEBTowersInPhi = EcalTrigTowerDetId::kEBTowersInPhi; // per SM (in the Barrel)
142  static const int kEBTowersPerSM = EcalTrigTowerDetId::kEBTowersPerSM; // per SM (in the Barrel)
143  static const int kEBTowersInEta = EcalTrigTowerDetId::kEBTowersInEta; // per SM (in the Barrel)
146 
147  static const int kEETowersInPhiPerTCC = 4; // each TCC contains 4 towers in phi
148  static const int kEETowersInEtaPerInnerTCC = 7; // each inner TCC contains 7 towers in eta
149  static const int kEETowersInEtaPerOuterTCC = 4; // each outer TCC contains 4 towers in eta
150  static const int iEEEtaMinOuter = 18; // outer TCC : ieta = 18 -> 21
151  static const int iEEEtaMinInner = 22; // inner TCC : ieta = 22 -> 28
152 
153  // DCC values :
154  static const int MAX_DCCID = EcalElectronicsId::MAX_DCCID; //To be updated with correct and final number
164 
165  static const int DCCID_PHI0_EBM = EcalElectronicsId::DCCID_PHI0_EBM; // contains phi = 0 deg.
167 
168  // TCC values :
169  static const int MAX_TCCID = EcalTriggerElectronicsId::MAX_TCCID; //To be updated with correct and final number
179 
182 
187 
188  static const int kTCCinPhi = 18; // Number of TCC "sectors" in phi
189 
190  // LaserMonitoring readout numbers :
191  static const int MIN_LM_EEM = 73; // corresponds to MIN_DCCID_EEM
192  static const int MIN_LM_EBM = 1; // corresponds to MIN_DCCID_EBM
193  static const int MIN_LM_EBP = 37; // corresponds to MIN_DCCID_EBP
194  static const int MIN_LM_EEP = 83; // corresponds to MIN_DCCID_EEP
195  static const int MAX_LM = 92; // Total number of LaserModules
196 
197 private:
198  static const int DCCMODE = 0;
199  static const int TCCMODE = 1;
200 
203  // DetId wrapEEDetId(const DetId& id) const;
205  //DetId wrapEcalTrigTowerDetId(const DetId& id) const;
206  //DetId changeEEDetIdQuadrantAndZ(const DetId& fromid, const int& toQuadrant,const int& tozside) const;
207  // int changeTowerQuadrant(int phiTower, int fromQuadrant, int toQuadrant) const;
208 
209  struct MapItem {
210  MapItem(const DetId& acell, const EcalElectronicsId& aelid, const EcalTriggerElectronicsId& atrelid)
211  : cell(acell), elid(aelid), trelid(atrelid) {}
215  int dccId() const { return elid.dccId(); }
216  int towerId() const { return elid.towerId(); }
217  int stripId() const { return elid.stripId(); }
218  int tccId() const { return trelid.tccId(); }
219  int ttId() const { return trelid.ttId(); }
220  int pseudoStripId() const { return trelid.pseudoStripId(); }
221  };
222 
223  //hashed indexes to be preferred to ordered (faster for lookup, here we are not interested in ordering...)
224  typedef boost::multi_index::multi_index_container<
225  MapItem,
226  boost::multi_index::indexed_by<
227  // hashed_unique< member < MapItem,DetId,&MapItem::cell > >,
228  // hashed_unique< member < MapItem,EcalElectronicsId,&MapItem::elid > >,
229  // hashed_unique< member < MapItem,EcalTriggerElectronicsId,&MapItem::trelid > >
230  boost::multi_index::ordered_unique<boost::multi_index::member<MapItem, DetId, &MapItem::cell> >,
231  boost::multi_index::ordered_unique<boost::multi_index::member<MapItem, EcalElectronicsId, &MapItem::elid> >,
232  boost::multi_index::ordered_unique<
233  boost::multi_index::member<MapItem, EcalTriggerElectronicsId, &MapItem::trelid> >,
234  boost::multi_index::ordered_non_unique<boost::multi_index::const_mem_fun<MapItem, int, &MapItem::dccId> >,
235  boost::multi_index::ordered_non_unique<
236  boost::multi_index::composite_key<MapItem,
237  boost::multi_index::const_mem_fun<MapItem, int, &MapItem::dccId>,
238  boost::multi_index::const_mem_fun<MapItem, int, &MapItem::towerId> > >,
239  boost::multi_index::ordered_non_unique<
240  boost::multi_index::composite_key<MapItem,
241  boost::multi_index::const_mem_fun<MapItem, int, &MapItem::dccId>,
242  boost::multi_index::const_mem_fun<MapItem, int, &MapItem::towerId>,
243  boost::multi_index::const_mem_fun<MapItem, int, &MapItem::stripId> > >,
244  boost::multi_index::ordered_non_unique<boost::multi_index::const_mem_fun<MapItem, int, &MapItem::tccId> >,
245  boost::multi_index::ordered_non_unique<
246  boost::multi_index::composite_key<MapItem,
247  boost::multi_index::const_mem_fun<MapItem, int, &MapItem::tccId>,
248  boost::multi_index::const_mem_fun<MapItem, int, &MapItem::ttId> > >,
249  boost::multi_index::ordered_non_unique<boost::multi_index::composite_key<
250  MapItem,
251  boost::multi_index::const_mem_fun<MapItem, int, &MapItem::tccId>,
252  boost::multi_index::const_mem_fun<MapItem, int, &MapItem::ttId>,
253  boost::multi_index::const_mem_fun<MapItem, int, &MapItem::pseudoStripId> > > > >
255 
259 
263 
267 
268  //Needed only in the EE (contains only first quadrant object)
270 
271  // Maps between DCC and LaserMonitoring readout numbers (take care that EB DCCs and two EE DCCs
272  // actually correspond to two LMs. The map contain only the first one).
273  // The maps are filled in the constructor of EcalElectronicsMapping.
274 
275  std::map<int, int> LaserMonitoringMap_EB;
276  std::map<int, int> LaserMonitoringMap_EE;
277 };
278 
279 #endif
EBDetId::kCrystalsInPhi
static const int kCrystalsInPhi
Definition: EBDetId.h:142
EcalElectronicsMapping::TCCID_PHI0_EEM_IN
static const int TCCID_PHI0_EEM_IN
Definition: EcalElectronicsMapping.h:183
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
EcalElectronicsMapping::EcalElectronicsMap_by_TccId_and_TtId
EcalElectronicsMap::nth_index< 7 >::type EcalElectronicsMap_by_TccId_and_TtId
Definition: EcalElectronicsMapping.h:265
EcalTriggerElectronicsId::MIN_TCCID_EEM
static const int MIN_TCCID_EEM
Definition: EcalTriggerElectronicsId.h:56
EcalElectronicsMapping::TCCID_PHI0_EEP_OUT
static const int TCCID_PHI0_EEP_OUT
Definition: EcalElectronicsMapping.h:186
EcalElectronicsMapping::kTowersInPhi
static const int kTowersInPhi
Definition: EcalElectronicsMapping.h:137
EcalElectronicsMapping::EcalElectronicsMap_by_DccId_TowerId_and_StripId
EcalElectronicsMap::nth_index< 5 >::type EcalElectronicsMap_by_DccId_TowerId_and_StripId
Definition: EcalElectronicsMapping.h:262
groupFilesInBlocks.tt
int tt
Definition: groupFilesInBlocks.py:144
EcalElectronicsMapping::MapItem::dccId
int dccId() const
Definition: EcalElectronicsMapping.h:215
EcalTriggerElectronicsId
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
Definition: EcalTriggerElectronicsId.h:18
EcalElectronicsMapping::kEBTowersInPhi
static const int kEBTowersInPhi
Definition: EcalElectronicsMapping.h:141
EcalElectronicsMapping::TCCID_PHI0_EBM
static const int TCCID_PHI0_EBM
Definition: EcalElectronicsMapping.h:180
EcalElectronicsMapping::kEETowersInPhiPerTCC
static const int kEETowersInPhiPerTCC
Definition: EcalElectronicsMapping.h:147
EcalTriggerElectronicsId::MAX_TCCID_EBP
static const int MAX_TCCID_EBP
Definition: EcalTriggerElectronicsId.h:61
EcalTriggerElectronicsId::tccId
int tccId() const
get the DCC (Ecal Local DCC value not global one) id
Definition: EcalTriggerElectronicsId.h:31
RectangularEtaPhiRegion.h
EcalElectronicsMapping::iTT
int iTT(const EcalTrigTowerDetId &id) const
returns the index of a Trigger Tower within its TCC.
Definition: EcalElectronicsMapping.cc:102
EcalElectronicsMapping::kEBTowersPerSM
static const int kEBTowersPerSM
Definition: EcalElectronicsMapping.h:142
EcalElectronicsMapping::MAX_TCCID_EBP
static const int MAX_TCCID_EBP
Definition: EcalElectronicsMapping.h:176
EBDetId
Definition: EBDetId.h:17
EcalElectronicsMapping::iEEEtaMinInner
static const int iEEEtaMinInner
Definition: EcalElectronicsMapping.h:151
EcalElectronicsMapping::getTrigTowerDetId
EcalTrigTowerDetId getTrigTowerDetId(int TCCid, int iTT) const
Builds a EcalTrigTowerDetID from the TCCid & TriggerTower index in TCC.
Definition: EcalElectronicsMapping.cc:240
EcalTriggerElectronicsId::TCCID_PHI0_EEP_IN
static const int TCCID_PHI0_EEP_IN
Definition: EcalTriggerElectronicsId.h:67
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
EcalElectronicsMapping::getEcalScDetId
std::vector< EcalScDetId > getEcalScDetId(int DCCid, int DCC_Channel, bool ignoreSingleCrystal=true) const
Definition: EcalElectronicsMapping.cc:799
EcalElectronicsMapping::getLMNumber
int getLMNumber(const DetId &id) const
Definition: EcalElectronicsMapping.cc:1133
EcalElectronicsMapping::dccTowerConstituents
std::vector< DetId > dccTowerConstituents(int dccId, int tower) const
Get the constituent detids for this dccId.
Definition: EcalElectronicsMapping.cc:589
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
EcalDetIdCollections.h
EcalElectronicsMapping::EcalElectronicsMap_by_TccId_TtId_and_PseudostripId
EcalElectronicsMap::nth_index< 8 >::type EcalElectronicsMap_by_TccId_TtId_and_PseudostripId
Definition: EcalElectronicsMapping.h:266
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
EcalElectronicsMapping::kTCCinPhi
static const int kTCCinPhi
Definition: EcalElectronicsMapping.h:188
EcalElectronicsMapping::MAX_DCCID_EBM
static const int MAX_DCCID_EBM
Definition: EcalElectronicsMapping.h:159
EcalTriggerElectronicsId::MIN_TCCID_EBP
static const int MIN_TCCID_EBP
Definition: EcalTriggerElectronicsId.h:60
EcalElectronicsMapping::MIN_DCCID_EBM
static const int MIN_DCCID_EBM
Definition: EcalElectronicsMapping.h:158
EcalElectronicsMapping::MapItem::cell
DetId cell
Definition: EcalElectronicsMapping.h:212
EcalElectronicsMapping::iEEEtaMinOuter
static const int iEEEtaMinOuter
Definition: EcalElectronicsMapping.h:150
EcalElectronicsMapping::EcalElectronicsMap_by_TriggerElectronicsId
EcalElectronicsMap::nth_index< 2 >::type EcalElectronicsMap_by_TriggerElectronicsId
Definition: EcalElectronicsMapping.h:258
EcalElectronicsMapping::MAX_TCCID_EBM
static const int MAX_TCCID_EBM
Definition: EcalElectronicsMapping.h:174
EcalSubdetector
EcalSubdetector
Definition: EcalSubdetector.h:10
EcalTrigTowerDetId
Definition: EcalTrigTowerDetId.h:14
EcalElectronicsId::dccId
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
Definition: EcalElectronicsId.h:31
EcalTriggerElectronicsId::TCCID_PHI0_EEM_IN
static const int TCCID_PHI0_EEM_IN
Definition: EcalTriggerElectronicsId.h:65
EcalElectronicsMapping::rightTower
bool rightTower(int tower) const
Definition: EcalElectronicsMapping.cc:918
EcalElectronicsMapping::EcalElectronicsMap_by_TccId
EcalElectronicsMap::nth_index< 6 >::type EcalElectronicsMap_by_TccId
Definition: EcalElectronicsMapping.h:264
RectangularEtaPhiRegion
Definition: RectangularEtaPhiRegion.h:6
EcalElectronicsId::MIN_DCCID
static const int MIN_DCCID
Definition: EcalElectronicsId.h:52
EcalTriggerElectronicsId::ttId
int ttId() const
get the tower id
Definition: EcalTriggerElectronicsId.h:33
EcalElectronicsMapping::MIN_TCCID_EEP
static const int MIN_TCCID_EEP
Definition: EcalElectronicsMapping.h:177
EcalElectronicsMapping::stripConstituents
std::vector< DetId > stripConstituents(int dccId, int tower, int strip) const
Get the constituent detids for this dccId.
Definition: EcalElectronicsMapping.cc:634
EcalElectronicsId::towerId
int towerId() const
get the tower id
Definition: EcalElectronicsId.h:33
EcalElectronicsMapping::MIN_TCCID_EBM
static const int MIN_TCCID_EBM
Definition: EcalElectronicsMapping.h:173
EcalElectronicsMapping::MapItem
Wrap a generic EcalTrigTowerDetId to the equivalent one in z+ Quadrant 1 (from 0 < phi < pi/2)
Definition: EcalElectronicsMapping.h:209
EcalElectronicsMapping::EcalElectronicsMap_by_DetId
EcalElectronicsMap::nth_index< 0 >::type EcalElectronicsMap_by_DetId
Definition: EcalElectronicsMapping.h:256
EcalElectronicsId::MIN_DCCID_EBM
static const int MIN_DCCID_EBM
Definition: EcalElectronicsId.h:64
EcalTriggerElectronicsId::MIN_TCCID_EEP
static const int MIN_TCCID_EEP
Definition: EcalTriggerElectronicsId.h:62
DetId
Definition: DetId.h:17
EcalElectronicsMapping::MIN_TCCID_EEM
static const int MIN_TCCID_EEM
Definition: EcalElectronicsMapping.h:171
EcalTriggerElectronicsId::MAX_TCCID
static const int MAX_TCCID
Definition: EcalTriggerElectronicsId.h:47
RawToDigi_cff.FEDs
FEDs
Definition: RawToDigi_cff.py:34
EcalElectronicsMapping::kCrystalsInPhi
static const int kCrystalsInPhi
Definition: EcalElectronicsMapping.h:136
EcalTriggerElectronicsId::MAX_TCCID_EBM
static const int MAX_TCCID_EBM
Definition: EcalTriggerElectronicsId.h:59
EcalElectronicsMapping::ttConstituents
std::vector< DetId > ttConstituents(int tccId, int tt) const
Get the constituent detids for this dccId.
Definition: EcalElectronicsMapping.cc:705
PVValHelper::eta
Definition: PVValidationHelpers.h:70
EcalElectronicsMapping::DCCID_PHI0_EBM
static const int DCCID_PHI0_EBM
Definition: EcalElectronicsMapping.h:165
EcalElectronicsMapping::DCCID_PHI0_EBP
static const int DCCID_PHI0_EBP
Definition: EcalElectronicsMapping.h:166
EcalElectronicsId::MAX_DCCID
static const int MAX_DCCID
Definition: EcalElectronicsId.h:51
EcalScDetId
Definition: EcalScDetId.h:24
EcalElectronicsMapping::getElectronicsId
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
Definition: EcalElectronicsMapping.cc:324
EcalElectronicsMapping::TCCID_PHI0_EBP
static const int TCCID_PHI0_EBP
Definition: EcalElectronicsMapping.h:181
EcalElectronicsMapping::EcalElectronicsMap_by_ElectronicsId
EcalElectronicsMap::nth_index< 1 >::type EcalElectronicsMap_by_ElectronicsId
Definition: EcalElectronicsMapping.h:257
EcalElectronicsMapping::LaserMonitoringMap_EB
std::map< int, int > LaserMonitoringMap_EB
Definition: EcalElectronicsMapping.h:275
EcalElectronicsMapping::MIN_LM_EEP
static const int MIN_LM_EEP
Definition: EcalElectronicsMapping.h:194
EcalTrigTowerDetId::kEBTowersInPhi
static const int kEBTowersInPhi
Definition: EcalTrigTowerDetId.h:100
EcalElectronicsId
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
Definition: EcalElectronicsId.h:18
EcalElectronicsMapping::GetFED
int GetFED(double eta, double phi) const
Definition: EcalElectronicsMapping.cc:1087
EcalElectronicsMapping::MapItem::stripId
int stripId() const
Definition: EcalElectronicsMapping.h:217
EcalElectronicsMapping::EcalElectronicsMapping
EcalElectronicsMapping()
Definition: EcalElectronicsMapping.cc:36
EcalSubdetector.h
EcalElectronicsMapping::MIN_DCCID
static const int MIN_DCCID
Definition: EcalElectronicsMapping.h:155
EcalElectronicsMapping::MAX_DCCID_EEP
static const int MAX_DCCID_EEP
Definition: EcalElectronicsMapping.h:163
EcalTriggerElectronicsId::MIN_TCCID_EBM
static const int MIN_TCCID_EBM
Definition: EcalTriggerElectronicsId.h:58
EcalElectronicsMapping::getDCCandSC
std::pair< int, int > getDCCandSC(EcalScDetId id) const
Definition: EcalElectronicsMapping.cc:761
EcalElectronicsMapping::MapItem::MapItem
MapItem(const DetId &acell, const EcalElectronicsId &aelid, const EcalTriggerElectronicsId &atrelid)
Definition: EcalElectronicsMapping.h:210
EcalElectronicsMapping::pseudoStripConstituents
std::vector< DetId > pseudoStripConstituents(int tccId, int tt, int pseudostrip) const
Get the constituent detids for this dccId.
Definition: EcalElectronicsMapping.cc:730
EcalElectronicsMapping::MAX_TCCID_EEP
static const int MAX_TCCID_EEP
Definition: EcalElectronicsMapping.h:178
EcalTriggerElectronicsId::pseudoStripId
int pseudoStripId() const
get the tower id
Definition: EcalTriggerElectronicsId.h:35
EcalElectronicsMapping::MapItem::tccId
int tccId() const
Definition: EcalElectronicsMapping.h:218
EcalTrigTowerDetId::kEETowersInEta
Definition: EcalTrigTowerDetId.h:114
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:40
EcalElectronicsMapping::GetListofFEDs
std::vector< int > GetListofFEDs(const RectangularEtaPhiRegion &region) const
Definition: EcalElectronicsMapping.cc:940
EcalElectronicsMapping::getDetId
DetId getDetId(const EcalElectronicsId &id) const
Get the detid given an electronicsId.
Definition: EcalElectronicsMapping.cc:410
HLT_FULL_cff.region
region
Definition: HLT_FULL_cff.py:88271
EcalTriggerElectronicsId::MIN_TCCID
static const int MIN_TCCID
Definition: EcalTriggerElectronicsId.h:48
EcalElectronicsId::MAX_DCCID_EBP
static const int MAX_DCCID_EBP
Definition: EcalElectronicsId.h:67
EcalElectronicsMapping::getTriggerElectronicsId
EcalTriggerElectronicsId getTriggerElectronicsId(const DetId &id) const
Get the trigger electronics id for this det id.
Definition: EcalElectronicsMapping.cc:389
EcalElectronicsMapping::MIN_TCCID_EBP
static const int MIN_TCCID_EBP
Definition: EcalElectronicsMapping.h:175
EcalElectronicsMapping::DCCMODE
static const int DCCMODE
Definition: EcalElectronicsMapping.h:198
EcalElectronicsId::MAX_DCCID_EEM
static const int MAX_DCCID_EEM
Definition: EcalElectronicsId.h:63
EBDetId::kTowersInPhi
static const int kTowersInPhi
Definition: EBDetId.h:139
EcalElectronicsMapping::TCCID_PHI0_EEP_IN
static const int TCCID_PHI0_EEP_IN
Definition: EcalElectronicsMapping.h:185
EcalElectronicsMapping::DCCid
int DCCid(const EBDetId &id) const
returns the DCC of an EBDetId
Definition: EcalElectronicsMapping.cc:70
EcalElectronicsMapping::MIN_DCCID_EBP
static const int MIN_DCCID_EBP
Definition: EcalElectronicsMapping.h:160
EcalElectronicsMapping::tccConstituents
std::vector< DetId > tccConstituents(int tccId) const
Get the constituent detids for this dccId.
Definition: EcalElectronicsMapping.cc:680
EcalElectronicsMapping::MAX_TCCID_EEM
static const int MAX_TCCID_EEM
Definition: EcalElectronicsMapping.h:172
EcalElectronicsMapping::MIN_LM_EEM
static const int MIN_LM_EEM
Definition: EcalElectronicsMapping.h:191
ecaldqm::dccId
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
Definition: EcalDQMCommonUtils.cc:16
DDAxes::phi
EcalElectronicsId::DCCID_PHI0_EBM
static const int DCCID_PHI0_EBM
Definition: EcalElectronicsId.h:71
EcalElectronicsMapping::LaserMonitoringMap_EE
std::map< int, int > LaserMonitoringMap_EE
Definition: EcalElectronicsMapping.h:276
EcalElectronicsMapping::MAX_DCCID
static const int MAX_DCCID
Definition: EcalElectronicsMapping.h:154
EcalElectronicsMapping::TCCid
int TCCid(const EBDetId &id) const
returns the TCCid of an EBDetId
Definition: EcalElectronicsMapping.cc:86
EcalTrigTowerDetId::kEBTowersPerSM
static const int kEBTowersPerSM
Definition: EcalTrigTowerDetId.h:101
EcalElectronicsMapping::MIN_TCCID
static const int MIN_TCCID
Definition: EcalElectronicsMapping.h:170
EcalElectronicsMapping::dccConstituents
std::vector< DetId > dccConstituents(int dccId) const
Get the constituent detids for this dccId.
Definition: EcalElectronicsMapping.cc:561
EcalElectronicsMapping::MIN_LM_EBM
static const int MIN_LM_EBM
Definition: EcalElectronicsMapping.h:192
EcalElectronicsMapping::EcalElectronicsMap_by_DccId_and_TowerId
EcalElectronicsMap::nth_index< 4 >::type EcalElectronicsMap_by_DccId_and_TowerId
Definition: EcalElectronicsMapping.h:261
EcalElectronicsId::DCCID_PHI0_EBP
static const int DCCID_PHI0_EBP
Definition: EcalElectronicsId.h:72
EcalElectronicsMapping::assign
void assign(const DetId &cell, const EcalElectronicsId &, const EcalTriggerElectronicsId &tower)
set the association between a DetId and a tower
Definition: EcalElectronicsMapping.cc:755
EcalElectronicsMapping::EcalElectronicsMap_by_DccId
EcalElectronicsMap::nth_index< 3 >::type EcalElectronicsMap_by_DccId
Definition: EcalElectronicsMapping.h:260
EcalTriggerElectronicsId::MAX_TCCID_EEM
static const int MAX_TCCID_EEM
Definition: EcalTriggerElectronicsId.h:57
EcalElectronicsMapping::kEETowersInEta
static const int kEETowersInEta
Definition: EcalElectronicsMapping.h:144
EcalElectronicsMapping::MapItem::trelid
EcalTriggerElectronicsId trelid
Definition: EcalElectronicsMapping.h:214
EcalElectronicsMapping::kEBTowersInEta
static const int kEBTowersInEta
Definition: EcalElectronicsMapping.h:143
EcalElectronicsMapping::kEETowersInEtaPerOuterTCC
static const int kEETowersInEtaPerOuterTCC
Definition: EcalElectronicsMapping.h:149
EcalElectronicsMapping::kEETowersInPhiPerQuadrant
static const int kEETowersInPhiPerQuadrant
Definition: EcalElectronicsMapping.h:145
EcalElectronicsId::MAX_DCCID_EEP
static const int MAX_DCCID_EEP
Definition: EcalElectronicsId.h:69
EcalTriggerElectronicsId::TCCID_PHI0_EBM
static const int TCCID_PHI0_EBM
Definition: EcalTriggerElectronicsId.h:69
EcalElectronicsMapping::subdet
EcalSubdetector subdet(int dccid, int mode) const
Definition: EcalElectronicsMapping.cc:878
EcalTrigTowerDetId::kEETowersInPhiPerQuadrant
static const int kEETowersInPhiPerQuadrant
Definition: EcalTrigTowerDetId.h:104
EcalElectronicsMapping::DCCBoundary
int DCCBoundary(int FED) const
Definition: EcalElectronicsMapping.cc:928
EcalTriggerElectronicsId::TCCID_PHI0_EEM_OUT
static const int TCCID_PHI0_EEM_OUT
Definition: EcalTriggerElectronicsId.h:66
EcalElectronicsMapping::MapItem::elid
EcalElectronicsId elid
Definition: EcalElectronicsMapping.h:213
EcalElectronicsId::MAX_DCCID_EBM
static const int MAX_DCCID_EBM
Definition: EcalElectronicsId.h:65
EcalElectronicsMapping::MapItem::towerId
int towerId() const
Definition: EcalElectronicsMapping.h:216
EcalElectronicsId::stripId
int stripId() const
get the tower id
Definition: EcalElectronicsId.h:35
EcalElectronicsMapping::MAX_TCCID
static const int MAX_TCCID
Definition: EcalElectronicsMapping.h:169
EcalElectronicsMapping::TCCMODE
static const int TCCMODE
Definition: EcalElectronicsMapping.h:199
EcalElectronicsId::MIN_DCCID_EEM
static const int MIN_DCCID_EEM
Definition: EcalElectronicsId.h:62
ecaldqm::tccId
unsigned tccId(DetId const &, EcalElectronicsMapping const *)
Definition: EcalDQMCommonUtils.cc:54
EcalElectronicsMapping::TCCID_PHI0_EEM_OUT
static const int TCCID_PHI0_EEM_OUT
Definition: EcalElectronicsMapping.h:184
EcalElectronicsMapping::m_items
EcalElectronicsMap m_items
Definition: EcalElectronicsMapping.h:269
EcalElectronicsMapping::MapItem::ttId
int ttId() const
Definition: EcalElectronicsMapping.h:219
EcalElectronicsMapping::MIN_DCCID_EEM
static const int MIN_DCCID_EEM
Definition: EcalElectronicsMapping.h:156
EcalElectronicsId::MIN_DCCID_EEP
static const int MIN_DCCID_EEP
Definition: EcalElectronicsId.h:68
EcalElectronicsMapping::MAX_DCCID_EBP
static const int MAX_DCCID_EBP
Definition: EcalElectronicsMapping.h:161
EcalTriggerElectronicsId::MAX_TCCID_EEP
static const int MAX_TCCID_EEP
Definition: EcalTriggerElectronicsId.h:63
EcalElectronicsMapping::kEETowersInEtaPerInnerTCC
static const int kEETowersInEtaPerInnerTCC
Definition: EcalElectronicsMapping.h:148
EcalElectronicsMapping::zside
int zside(int dcctcc, int mode) const
Definition: EcalElectronicsMapping.cc:893
EcalElectronicsMapping::EcalElectronicsMap
boost::multi_index::multi_index_container< MapItem, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::member< MapItem, DetId, &MapItem::cell > >, boost::multi_index::ordered_unique< boost::multi_index::member< MapItem, EcalElectronicsId, &MapItem::elid > >, boost::multi_index::ordered_unique< boost::multi_index::member< MapItem, EcalTriggerElectronicsId, &MapItem::trelid > >, boost::multi_index::ordered_non_unique< boost::multi_index::const_mem_fun< MapItem, int, &MapItem::dccId > >, boost::multi_index::ordered_non_unique< boost::multi_index::composite_key< MapItem, boost::multi_index::const_mem_fun< MapItem, int, &MapItem::dccId >, boost::multi_index::const_mem_fun< MapItem, int, &MapItem::towerId > > >, boost::multi_index::ordered_non_unique< boost::multi_index::composite_key< MapItem, boost::multi_index::const_mem_fun< MapItem, int, &MapItem::dccId >, boost::multi_index::const_mem_fun< MapItem, int, &MapItem::towerId >, boost::multi_index::const_mem_fun< MapItem, int, &MapItem::stripId > > >, boost::multi_index::ordered_non_unique< boost::multi_index::const_mem_fun< MapItem, int, &MapItem::tccId > >, boost::multi_index::ordered_non_unique< boost::multi_index::composite_key< MapItem, boost::multi_index::const_mem_fun< MapItem, int, &MapItem::tccId >, boost::multi_index::const_mem_fun< MapItem, int, &MapItem::ttId > > >, boost::multi_index::ordered_non_unique< boost::multi_index::composite_key< MapItem, boost::multi_index::const_mem_fun< MapItem, int, &MapItem::tccId >, boost::multi_index::const_mem_fun< MapItem, int, &MapItem::ttId >, boost::multi_index::const_mem_fun< MapItem, int, &MapItem::pseudoStripId > > > > > EcalElectronicsMap
Definition: EcalElectronicsMapping.h:254
EcalElectronicsId::MIN_DCCID_EBP
static const int MIN_DCCID_EBP
Definition: EcalElectronicsId.h:66
EcalTrigTowerDetId::kEBTowersInEta
static const int kEBTowersInEta
Definition: EcalTrigTowerDetId.h:102
EcalElectronicsMapping::MapItem::pseudoStripId
int pseudoStripId() const
Definition: EcalElectronicsMapping.h:220
EcalElectronicsMapping::MIN_LM_EBP
static const int MIN_LM_EBP
Definition: EcalElectronicsMapping.h:193
EcalTriggerElectronicsId::TCCID_PHI0_EEP_OUT
static const int TCCID_PHI0_EEP_OUT
Definition: EcalTriggerElectronicsId.h:68
EcalElectronicsMapping::MIN_DCCID_EEP
static const int MIN_DCCID_EEP
Definition: EcalElectronicsMapping.h:162
EcalTriggerElectronicsId::TCCID_PHI0_EBP
static const int TCCID_PHI0_EBP
Definition: EcalTriggerElectronicsId.h:70
EcalElectronicsMapping::MAX_LM
static const int MAX_LM
Definition: EcalElectronicsMapping.h:195
EcalElectronicsMapping::MAX_DCCID_EEM
static const int MAX_DCCID_EEM
Definition: EcalElectronicsMapping.h:157