CMS 3D CMS Logo

HGCalElectronicsId.cc
Go to the documentation of this file.
2 
3 //
5  bool zside, uint16_t fedid, uint8_t captureblock, uint8_t econdidx, uint8_t econderx, uint8_t halfrocch) {
7  ((captureblock & kCaptureBlockMask) << kCaptureBlockShift) | ((econdidx & kECONDIdxMask) << kECONDIdxShift) |
8  ((econderx & kECONDeRxMask) << kECONDeRxShift) | ((halfrocch & kHalfROCChannelMask) << kHalfROCChannelShift);
9 }
10 
11 //
13 
14 //
15 bool HGCalElectronicsId::zSide() const { return (value_ >> kZsideShift) & kZsideMask; }
16 
17 //
19  uint8_t halfrocch = halfrocChannel();
20  return (halfrocch == 37) || (halfrocch == 38);
21 }
22 
23 //
25 
26 //
28 
29 //
31 
32 //
34 
35 //
36 uint8_t HGCalElectronicsId::cmWord() const { return halfrocChannel() - 37; }
37 
38 //
40  if (isCM())
41  return cmWord() + 2 * (econdeRx() % 2);
42  return halfrocChannel() + 37 * (econdeRx() % 2);
43 }
uint8_t cmWord() const
uint8_t halfrocChannel() const
uint8_t rocChannel() const
uint8_t econdIdx() const
uint8_t captureBlock() const
uint16_t localFEDId() const
int zside(DetId const &)
uint8_t econdeRx() const