Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:59

0001 #ifndef CSCRPCDigi_CSCRPCDigi_h
0002 #define CSCRPCDigi_CSCRPCDigi_h
0003 
0004 /**\class CSCRPCDigi
0005  *
0006  * Digi for RPC data coming thru RAT-ALCT-DDU. 
0007  *
0008  *
0009  * \author N. Terentiev, CMU
0010  */
0011 
0012 #include <cstdint>
0013 #include <iosfwd>
0014 
0015 class CSCRPCDigi {
0016 public:
0017   /// Constructors
0018   CSCRPCDigi(int rpc, int pad, int bxn, int tbin);  /// from the rpc#, pad#, bxn#, tbin#
0019   CSCRPCDigi();                                     /// default
0020 
0021   /// get RPC
0022   int getRpc() const { return rpc_; }
0023   /// return pad number
0024   int getPad() const { return pad_; }
0025   /// return tbin number
0026   int getTbin() const { return tbin_; }
0027   /// return BXN
0028   int getBXN() const { return bxn_; }
0029 
0030   /// Print content of digi
0031   void print() const;
0032 
0033 private:
0034   uint16_t rpc_;
0035   uint16_t pad_;
0036   uint16_t bxn_;
0037   uint16_t tbin_;
0038 };
0039 
0040 std::ostream& operator<<(std::ostream& o, const CSCRPCDigi& digi);
0041 
0042 #endif