CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTrigTowerDetId.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_HCALDETID_HCALTRIGTOWERDETID_H
2 #define DATAFORMATS_HCALDETID_HCALTRIGTOWERDETID_H 1
3 
4 #include <ostream>
7 
16 class HcalTrigTowerDetId : public DetId {
17 public:
21  HcalTrigTowerDetId(uint32_t rawid);
24  HcalTrigTowerDetId(int ieta, int iphi);
27  HcalTrigTowerDetId(int ieta, int iphi, int depth);
28 
30  HcalTrigTowerDetId(const DetId& id);
33 
37  int zside() const { return (id_&0x2000)?(1):(-1); }
39  int ietaAbs() const { return (id_>>7)&0x3f; }
41  int ieta() const { return zside()*ietaAbs(); }
43  int iphi() const { return id_&0x7F; }
45  int depth() const { return (id_>>14)&0x7; }
46 
48 
49 };
50 
51 std::ostream& operator<<(std::ostream&,const HcalTrigTowerDetId& id);
52 
53 
54 #endif
int zside() const
get the z-side of the tower (1/-1)
HcalSubdetector subdet() const
get the subdetector
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
int ieta() const
get the tower ieta
int depth() const
get the depth (zero for LHC, may be nonzero for SuperCMS)
HcalSubdetector
Definition: HcalAssistant.h:32
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
Definition: DetId.h:20
HcalTrigTowerDetId & operator=(const DetId &id)
uint32_t id_
Definition: DetId.h:57
static const HcalTrigTowerDetId Undefined
int ietaAbs() const
get the absolute value of the tower ieta
int iphi() const
get the tower iphi