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 
14 class HcalTrigTowerDetId : public DetId {
15 public:
19  HcalTrigTowerDetId(uint32_t rawid);
22  HcalTrigTowerDetId(int ieta, int iphi);
25  HcalTrigTowerDetId(int ieta, int iphi, int depth);
26 
28  HcalTrigTowerDetId(const DetId& id);
31 
35  int zside() const { return (id_&0x2000)?(1):(-1); }
37  int ietaAbs() const { return (id_>>7)&0x3f; }
39  int ieta() const { return zside()*ietaAbs(); }
41  int iphi() const { return id_&0x7F; }
43  int depth() const { return (id_>>14)&0x7; }
44 
46 
47 };
48 
49 std::ostream& operator<<(std::ostream&,const HcalTrigTowerDetId& id);
50 
51 
52 #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:31
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
Definition: DetId.h:18
HcalTrigTowerDetId & operator=(const DetId &id)
uint32_t id_
Definition: DetId.h:55
static const HcalTrigTowerDetId Undefined
int ietaAbs() const
get the absolute value of the tower ieta
int iphi() const
get the tower iphi