CMS 3D CMS Logo

L1CaloRegionDetId.h
Go to the documentation of this file.
1 #ifndef L1CALOREGIONDETID_H
2 #define L1CALOREGIONDETID_H
3 
5 
18 class L1CaloRegionDetId : public DetId {
19 
20  public:
21 
22  static const unsigned N_PHI = 18;
23  static const unsigned N_ETA = 22;
24 
27 
29  L1CaloRegionDetId(uint32_t rawid);
30 
32  L1CaloRegionDetId(unsigned ieta, unsigned iphi);
33 
36  L1CaloRegionDetId(unsigned icrate, unsigned icard, unsigned irgn);
37 
39  unsigned ieta() const { return id_&0x1f; }
40 
42  unsigned iphi() const { return (id_>>5)&0x1f; }
43 
45  bool isHf() const { return (ieta()<4 || ieta()>17); }
46 
48  unsigned rctCrate() const;
49 
51  unsigned rctCard() const;
52 
54  unsigned rctRegion() const;
55 
57  unsigned rctEta() const { return (ieta()<11 ? 10-ieta() : ieta()-11); }
58 
60  unsigned rctPhi() const { return (iphi()%2); }
61 
62 };
63 
64 #endif
unsigned ieta() const
global eta index (0-21)
unsigned rctPhi() const
return local RCT phi index (0-1)
unsigned rctEta() const
return local RCT eta index (0-10)
static const unsigned N_ETA
unsigned rctRegion() const
return RCT region index (0-1 for barrel, 0-7 for HF)
bool isHf() const
return central or forward type
Definition: DetId.h:18
uint32_t id_
Definition: DetId.h:59
unsigned rctCard() const
return RCT card number (0-6)
L1CaloRegionDetId()
create null id
unsigned rctCrate() const
return RCT crate number (0-17)
unsigned iphi() const
global phi index (0-17)
static const unsigned N_PHI