CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RPC.h
Go to the documentation of this file.
1 // Class for Resistive Plate Chamber (RPC) Data Record
2 
3 #ifndef __l1t_emtf_RPC_h__
4 #define __l1t_emtf_RPC_h__
5 
6 #include <vector>
7 #include <cstdint>
8 
9 namespace l1t {
10  namespace emtf {
11  class RPC {
12  public:
13  explicit RPC(uint64_t dataword);
14 
15  RPC()
16  : phi(-99),
17  theta(-99),
18  word(-99),
19  frame(-99),
20  link(-99),
21  rpc_bxn(-99),
22  bc0(-99),
23  tbin(-99),
24  vp(-99),
25  format_errors(0),
26  dataword(-99){};
27 
28  virtual ~RPC(){};
29 
30  void set_phi(int bits) { phi = bits; }
31  void set_theta(int bits) { theta = bits; }
32  void set_word(int bits) { word = bits; }
33  void set_frame(int bits) { frame = bits; }
34  void set_link(int bits) { link = bits; }
35  void set_rpc_bxn(int bits) { rpc_bxn = bits; }
36  void set_bc0(int bits) { bc0 = bits; }
37  void set_tbin(int bits) { tbin = bits; }
38  void set_vp(int bits) { vp = bits; }
40  void set_dataword(uint64_t bits) { dataword = bits; }
41 
42  int Phi() const { return phi; }
43  int Theta() const { return theta; }
44  int Word() const { return word; }
45  int Frame() const { return frame; }
46  int Link() const { return link; }
47  int RPC_BXN() const { return rpc_bxn; }
48  int BC0() const { return bc0; }
49  int TBIN() const { return tbin; }
50  int VP() const { return vp; }
51  int Format_errors() const { return format_errors; }
52  uint64_t Dataword() const { return dataword; }
53 
54  private:
55  int phi;
56  int theta;
57  int word;
58  int frame;
59  int link;
60  int rpc_bxn;
61  int bc0;
62  int tbin;
63  int vp;
66 
67  }; // End of class RPC
68 
69  // Define a vector of RPC
70  typedef std::vector<RPC> RPCCollection;
71 
72  } // End of namespace emtf
73 } // End of namespace l1t
74 
75 #endif /* define __l1t_emtf_RPC_h__ */
int theta
Definition: RPC.h:56
int tbin
Definition: RPC.h:62
uint64_t Dataword() const
Definition: RPC.h:52
int Format_errors() const
Definition: RPC.h:51
void add_format_error()
Definition: RPC.h:39
int link
Definition: RPC.h:59
int frame
Definition: RPC.h:58
int rpc_bxn
Definition: RPC.h:60
int RPC_BXN() const
Definition: RPC.h:47
void set_dataword(uint64_t bits)
Definition: RPC.h:40
int BC0() const
Definition: RPC.h:48
void set_word(int bits)
Definition: RPC.h:32
int TBIN() const
Definition: RPC.h:49
int Theta() const
Definition: RPC.h:43
void set_frame(int bits)
Definition: RPC.h:33
uint64_t word
int phi
Definition: RPC.h:55
void set_theta(int bits)
Definition: RPC.h:31
int format_errors
Definition: RPC.h:64
void set_tbin(int bits)
Definition: RPC.h:37
int Phi() const
Definition: RPC.h:42
int word
Definition: RPC.h:57
std::vector< RPC > RPCCollection
Definition: RPC.h:70
int Word() const
Definition: RPC.h:44
virtual ~RPC()
Definition: RPC.h:28
void set_bc0(int bits)
Definition: RPC.h:36
int VP() const
Definition: RPC.h:50
int bc0
Definition: RPC.h:61
int Frame() const
Definition: RPC.h:45
unsigned long long uint64_t
Definition: Time.h:13
void set_phi(int bits)
Definition: RPC.h:30
void set_link(int bits)
Definition: RPC.h:34
void set_rpc_bxn(int bits)
Definition: RPC.h:35
void set_vp(int bits)
Definition: RPC.h:38
int Link() const
Definition: RPC.h:46
int vp
Definition: RPC.h:63
uint64_t dataword
Definition: RPC.h:65