CMS 3D CMS Logo

CSCRPCDigi.h

Go to the documentation of this file.
00001 #ifndef CSCRPCDigi_CSCRPCDigi_h
00002 #define CSCRPCDigi_CSCRPCDigi_h
00003 
00014 #include <boost/cstdint.hpp>
00015 
00016 
00017 class CSCRPCDigi{
00018 
00019 public:
00020 
00022   CSCRPCDigi (int rpc, int pad, int bxn , int tbin);  
00023   CSCRPCDigi ();                             
00024 
00025   
00027   int getRpc() const {return rpc_;}
00029   int getPad() const {return pad_;}
00031   int getTbin() const {return tbin_;}
00033   int getBXN() const {return bxn_;}
00034   
00036   void print() const;
00037 
00038 
00039 private:
00040 
00041   uint16_t rpc_;
00042   uint16_t pad_;
00043   uint16_t bxn_;
00044   uint16_t tbin_;
00045 
00046 
00047 };
00048 
00049 
00050 
00051 
00052 #include<iostream>
00053 // needed by COBRA
00054 inline std::ostream & operator<<(std::ostream & o, const CSCRPCDigi& digi) {
00055   return o << " RPC = " << digi.getRpc() << "  Pad = "<< digi.getPad()
00056            << "  Tbin = " << digi.getTbin() << "  Bxn = " << digi.getBXN();
00057 }
00058 
00059 
00060 
00061 #endif

Generated on Tue Jun 9 17:30:40 2009 for CMSSW by  doxygen 1.5.4