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 // $Id: RBCId.h,v 1.4 2009/05/24 21:45:39 aosorio Exp $
2 #ifndef RBCID_H
3 #define RBCID_H 1
4 
5 // Include files
6 #include <iostream>
7 
17 class RBCId {
18 public:
20  RBCId( );
21 
22  RBCId(int , int * );
23 
24  RBCId(const RBCId &);
25 
26  virtual ~RBCId( );
27 
28  int wheel() const { return m_wheel;};
29 
30  int wheelIdx() const { return (m_wheel+2);}; // wheel index starts from 0
31 
32  int sector( int _sec ) const { return m_sector[_sec]; };
33 
34  void setid ( int _wh, int *_sec) {
35  m_wheel = _wh;
36  m_sector[0] = _sec[0];
37  m_sector[1] = _sec[1];
38  };
39 
40  void printinfo();
41 
42 protected:
43 
44 private:
45 
46  int m_wheel;
47  int m_sector[2];
48 
49 };
50 #endif // RBCID_H
void printinfo()
Definition: RBCId.cc:42
virtual ~RBCId()
Destructor.
Definition: RBCId.cc:39
int m_wheel
Definition: RBCId.h:46
int m_sector[2]
Definition: RBCId.h:47
RBCId()
Standard constructor.
Definition: RBCId.cc:16
Definition: RBCId.h:17
int wheel() const
Definition: RBCId.h:28
int sector(int _sec) const
Definition: RBCId.h:32
int wheelIdx() const
Definition: RBCId.h:30
void setid(int _wh, int *_sec)
Definition: RBCId.h:34