CMS 3D CMS Logo

HodoscopeDetId.h
Go to the documentation of this file.
1 #ifndef ECALDETID_HODOSCOPEDETID_H
2 #define ECALDETID_HODOSCOPEDETID_H
3 
4 #include <ostream>
5 #include <cmath>
9 
16 // bkh June 2011: must be a calo detid type that is recognized by
17 // CaloGenericDetId for use of its denseIndex() fcn.
18 // Hence choose EBDetId to inherit from.
19 
20 class HodoscopeDetId : public EBDetId {
21 public:
23  HodoscopeDetId(uint32_t rawid);
24  HodoscopeDetId(int iPlane, int iFibr);
25  HodoscopeDetId(const DetId& id);
26 
27  int planeId() const;
28 
29  int fibrId() const;
30 
31  static bool validDetId(int iPlane, int iFibr);
32 
34 
35  static const int MIN_PLANE = 0;
36  static const int MAX_PLANE = 3;
37  static const int MIN_FIBR = 0;
38  static const int MAX_FIBR = 63;
39 };
40 
41 std::ostream& operator<<(std::ostream& s, const HodoscopeDetId& id);
42 
43 #endif
HodoscopeDetId::MIN_FIBR
static const int MIN_FIBR
Definition: HodoscopeDetId.h:37
EBDetId
Definition: EBDetId.h:17
EBDetId.h
HodoscopeDetId::MAX_FIBR
static const int MAX_FIBR
Definition: HodoscopeDetId.h:38
DetId
Definition: DetId.h:17
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HodoscopeDetId::MAX_PLANE
static const int MAX_PLANE
Definition: HodoscopeDetId.h:36
EcalSubdetector.h
HodoscopeDetId::HodoscopeDetId
HodoscopeDetId()
Definition: HodoscopeDetId.cc:5
HodoscopeDetId::fibrId
int fibrId() const
Definition: HodoscopeDetId.cc:11
HodoscopeDetId::planeId
int planeId() const
Definition: HodoscopeDetId.cc:9
DetId.h
HodoscopeDetId
Definition: HodoscopeDetId.h:20
HodoscopeDetId::validDetId
static bool validDetId(int iPlane, int iFibr)
Definition: HodoscopeDetId.cc:25
operator<<
std::ostream & operator<<(std::ostream &s, const HodoscopeDetId &id)
Definition: HodoscopeDetId.cc:29
HodoscopeDetId::MIN_PLANE
static const int MIN_PLANE
range constants
Definition: HodoscopeDetId.h:35