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 {
22  public:
23 
25  HodoscopeDetId( uint32_t rawid ) ;
26  HodoscopeDetId( int iPlane, int iFibr ) ;
27  HodoscopeDetId( const DetId& id ) ;
28 
29  int planeId() const ;
30 
31  int fibrId() const ;
32 
33  static bool validDetId( int iPlane , int iFibr ) ;
34 
36 
37  static const int MIN_PLANE = 0 ;
38  static const int MAX_PLANE = 3 ;
39  static const int MIN_FIBR = 0 ;
40  static const int MAX_FIBR = 63 ;
41 
42 };
43 
44 std::ostream& operator<<(std::ostream& s,const HodoscopeDetId& id);
45 
46 
47 #endif
static bool validDetId(int iPlane, int iFibr)
static const int MIN_FIBR
static const int MAX_FIBR
std::ostream & operator<<(std::ostream &s, const HodoscopeDetId &id)
Definition: DetId.h:18
int fibrId() const
static const int MAX_PLANE
int planeId() const
static const int MIN_PLANE
range constants