CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/L1Trigger/RPCTechnicalTrigger/interface/RBCId.h

Go to the documentation of this file.
00001 // $Id: RBCId.h,v 1.4 2009/05/24 21:45:39 aosorio Exp $
00002 #ifndef RBCID_H 
00003 #define RBCID_H 1
00004 
00005 // Include files
00006 #include <iostream>
00007 
00017 class RBCId {
00018 public: 
00020   RBCId( ); 
00021 
00022   RBCId(int , int * );
00023   
00024   RBCId(const RBCId &);
00025   
00026   virtual ~RBCId( ); 
00027   
00028   int wheel() const { return m_wheel;};
00029   
00030   int wheelIdx() const { return (m_wheel+2);}; // wheel index starts from 0
00031   
00032   int sector( int _sec ) const { return m_sector[_sec]; };
00033   
00034   void setid ( int _wh, int *_sec) { 
00035     m_wheel = _wh;
00036     m_sector[0] = _sec[0];
00037     m_sector[1] = _sec[1];
00038   };
00039   
00040   void printinfo();
00041     
00042 protected:
00043   
00044 private:
00045   
00046   int m_wheel;
00047   int m_sector[2];
00048   
00049 };
00050 #endif // RBCID_H