CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalGenericDetId.h
Go to the documentation of this file.
1 #ifndef HCALGENERICDETID_H
2 #define HCALGENERICDETID_H
3 
12 #include <ostream>
15 
16 class HcalGenericDetId : public DetId {
17  public:
21  HcalGenericDetId (uint32_t rawid) : DetId (rawid) {}
22  HcalGenericDetId (const DetId& id) : DetId (id) {}
25  bool isHcalDetId () const;
26  bool isHcalCalibDetId () const;
27  bool isHcalTrigTowerDetId () const;
28  bool isHcalZDCDetId () const;
29  bool isHcalCastorDetId () const;
30 
31  // delivers hashed id for this cell
32  // hashed id's are determined separately for each subdetector !
33  int hashedId(bool h2mode_ = false) const;
34 
35  enum hashlimits{
36  HBhalf = 1296,
37  HEhalf = 1296,
38  HEhalfh2mode = 4032,
39  HOhalf = 1080,
40  HFhalf = 864,
41  HThalf = 2088,
42  ZDChalf = 11,
43  CASTORhalf = 224,
44  CALIBhalf = 693
45  };
46 };
47 
48 std::ostream& operator<<(std::ostream&,const HcalGenericDetId& id);
49 
50 
51 #endif
bool isHcalZDCDetId() const
int hashedId(bool h2mode_=false) const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
HcalGenericDetId(const DetId &id)
bool isHcalTrigTowerDetId() const
HcalOtherSubdetector
Definition: HcalAssistant.h:33
bool isHcalDetId() const
Definition: DetId.h:20
HcalOtherSubdetector otherSubdet() const
bool isHcalCalibDetId() const
bool isHcalCastorDetId() const
HcalGenericSubdetector genericSubdet() const
HcalGenericDetId(uint32_t rawid)