CMS 3D CMS Logo

CSCRPCDigi.h
Go to the documentation of this file.
1 #ifndef CSCRPCDigi_CSCRPCDigi_h
2 #define CSCRPCDigi_CSCRPCDigi_h
3 
12 #include <cstdint>
13 #include <iosfwd>
14 
15 class CSCRPCDigi {
16 public:
18  CSCRPCDigi(int rpc, int pad, int bxn, int tbin);
19  CSCRPCDigi();
20 
22  int getRpc() const { return rpc_; }
24  int getPad() const { return pad_; }
26  int getTbin() const { return tbin_; }
28  int getBXN() const { return bxn_; }
29 
31  void print() const;
32 
33 private:
34  uint16_t rpc_;
35  uint16_t pad_;
36  uint16_t bxn_;
37  uint16_t tbin_;
38 };
39 
40 std::ostream& operator<<(std::ostream& o, const CSCRPCDigi& digi);
41 
42 #endif
int getPad() const
return pad number
Definition: CSCRPCDigi.h:24
int getRpc() const
default
Definition: CSCRPCDigi.h:22
uint16_t rpc_
Definition: CSCRPCDigi.h:34
uint16_t pad_
Definition: CSCRPCDigi.h:35
int getBXN() const
return BXN
Definition: CSCRPCDigi.h:28
uint16_t bxn_
Definition: CSCRPCDigi.h:36
int getTbin() const
return tbin number
Definition: CSCRPCDigi.h:26
std::ostream & operator<<(std::ostream &o, const CSCRPCDigi &digi)
Definition: CSCRPCDigi.cc:36
uint16_t tbin_
Definition: CSCRPCDigi.h:37
void print() const
Print content of digi.
Definition: CSCRPCDigi.cc:31
CSCRPCDigi()
from the rpc#, pad#, bxn#, tbin#
Definition: CSCRPCDigi.cc:23