CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1CaloRegionDetId.h
Go to the documentation of this file.
1 #ifndef L1CALOREGIONDETID_H
2 #define L1CALOREGIONDETID_H
3 
5 
20 class L1CaloRegionDetId : public DetId {
21 
22  public:
23 
24  static const unsigned N_PHI;
25  static const unsigned N_ETA;
26 
29 
31  L1CaloRegionDetId(uint32_t rawid);
32 
34  L1CaloRegionDetId(unsigned ieta, unsigned iphi);
35 
38  L1CaloRegionDetId(unsigned icrate, unsigned icard, unsigned irgn);
39 
41  unsigned ieta() const { return id_&0x1f; }
42 
44  unsigned iphi() const { return (id_>>5)&0x1f; }
45 
47  bool isHf() const { return (ieta()<4 || ieta()>17); }
48 
50  unsigned rctCrate() const;
51 
53  unsigned rctCard() const;
54 
56  unsigned rctRegion() const;
57 
59  unsigned rctEta() const { return (ieta()<11 ? 10-ieta() : ieta()-11); }
60 
62  unsigned rctPhi() const { return (iphi()%2); }
63 
64 };
65 
66 #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)
unsigned rctRegion() const
return RCT region index (0-1 for barrel, 0-7 for HF)
static const unsigned N_ETA
bool isHf() const
return central or forward type
Definition: DetId.h:20
static const unsigned N_PHI
uint32_t id_
Definition: DetId.h:57
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)