CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
17 // bkh June 2011: must be a calo detid type that is recognized by
18 // CaloGenericDetId for use of its denseIndex() fcn.
19 // Hence choose CaloTowerDetId to inherit from.
20 
22 {
23  public:
24 
26  HodoscopeDetId( uint32_t rawid ) ;
27  HodoscopeDetId( int iPlane, int iFibr ) ;
28  HodoscopeDetId( const DetId& id ) ;
29 
30  int planeId() const ;
31 
32  int fibrId() const ;
33 
34  static bool validDetId( int iPlane , int iFibr ) ;
35 
37 
38  static const int MIN_PLANE = 0 ;
39  static const int MAX_PLANE = 3 ;
40  static const int MIN_FIBR = 0 ;
41  static const int MAX_FIBR = 63 ;
42 
43 };
44 
45 std::ostream& operator<<(std::ostream& s,const HodoscopeDetId& id);
46 
47 
48 #endif
static bool validDetId(int iPlane, int iFibr)
static const int MIN_FIBR
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
static const int MAX_FIBR
Definition: DetId.h:20
int fibrId() const
static const int MAX_PLANE
int planeId() const
static const int MIN_PLANE
range constants