test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RBCId.h
Go to the documentation of this file.
1 #ifndef RBCID_H
2 #define RBCID_H 1
3 
4 // Include files
5 #include <iostream>
6 
16 class RBCId {
17 public:
19  RBCId( );
20 
21  RBCId(int , int * );
22 
23  RBCId(const RBCId &);
24 
25  virtual ~RBCId( );
26 
27  int wheel() const { return m_wheel;};
28 
29  int wheelIdx() const { return (m_wheel+2);}; // wheel index starts from 0
30 
31  int sector( int _sec ) const { return m_sector[_sec]; };
32 
33  void setid ( int _wh, int *_sec) {
34  m_wheel = _wh;
35  m_sector[0] = _sec[0];
36  m_sector[1] = _sec[1];
37  };
38 
39  void printinfo();
40 
41 protected:
42 
43 private:
44 
45  int m_wheel;
46  int m_sector[2];
47 
48 };
49 #endif // RBCID_H
void printinfo()
Definition: RBCId.cc:41
virtual ~RBCId()
Destructor.
Definition: RBCId.cc:38
int m_wheel
Definition: RBCId.h:45
int m_sector[2]
Definition: RBCId.h:46
RBCId()
Standard constructor.
Definition: RBCId.cc:15
Definition: RBCId.h:16
int wheel() const
Definition: RBCId.h:27
int sector(int _sec) const
Definition: RBCId.h:31
int wheelIdx() const
Definition: RBCId.h:29
void setid(int _wh, int *_sec)
Definition: RBCId.h:33