CMS 3D CMS Logo

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 <boost/cstdint.hpp>
7 
8 #include <vector>
9 
10 namespace l1t {
11  namespace emtf {
12  class RPC {
13  public:
14 
15  explicit RPC(uint64_t dataword);
16 
17  RPC() :
18  phi(-99), theta(-99), word(-99), frame(-99), link(-99), rpc_bxn(-99),
19  bc0(-99), tbin(-99), vp(-99), format_errors(0), dataword(-99)
20  {};
21 
22  virtual ~RPC() {};
23 
24  void set_phi(int bits) { phi = bits; }
25  void set_theta(int bits) { theta = bits; }
26  void set_word(int bits) { word = bits; }
27  void set_frame(int bits) { frame = bits; }
28  void set_link(int bits) { link = bits; }
29  void set_rpc_bxn(int bits) { rpc_bxn = bits; }
30  void set_bc0(int bits) { bc0 = bits; }
31  void set_tbin(int bits) { tbin = bits; }
32  void set_vp(int bits) { vp = bits; }
34  void set_dataword(uint64_t bits) { dataword = bits; }
35 
36  int Phi() const { return phi; }
37  int Theta() const { return theta; }
38  int Word() const { return word; }
39  int Frame() const { return frame; }
40  int Link() const { return link; }
41  int RPC_BXN() const { return rpc_bxn; }
42  int BC0() const { return bc0; }
43  int TBIN() const { return tbin; }
44  int VP() const { return vp; }
45  int Format_errors() const { return format_errors; }
46  uint64_t Dataword() const { return dataword; }
47 
48  private:
49  int phi;
50  int theta;
51  int word;
52  int frame;
53  int link;
54  int rpc_bxn;
55  int bc0;
56  int tbin;
57  int vp;
60 
61  }; // End of class RPC
62 
63  // Define a vector of RPC
64  typedef std::vector<RPC> RPCCollection;
65 
66  } // End of namespace emtf
67 } // End of namespace l1t
68 
69 #endif /* define __l1t_emtf_RPC_h__ */
int theta
Definition: RPC.h:50
int tbin
Definition: RPC.h:56
uint64_t Dataword() const
Definition: RPC.h:46
int Format_errors() const
Definition: RPC.h:45
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void add_format_error()
Definition: RPC.h:33
int link
Definition: RPC.h:53
int frame
Definition: RPC.h:52
Definition: Event.h:15
delete x;
Definition: CaloConfig.h:22
int rpc_bxn
Definition: RPC.h:54
int RPC_BXN() const
Definition: RPC.h:41
void set_dataword(uint64_t bits)
Definition: RPC.h:34
int BC0() const
Definition: RPC.h:42
void set_word(int bits)
Definition: RPC.h:26
int TBIN() const
Definition: RPC.h:43
int Theta() const
Definition: RPC.h:37
void set_frame(int bits)
Definition: RPC.h:27
int phi
Definition: RPC.h:49
void set_theta(int bits)
Definition: RPC.h:25
int format_errors
Definition: RPC.h:58
void set_tbin(int bits)
Definition: RPC.h:31
int Phi() const
Definition: RPC.h:36
int word
Definition: RPC.h:51
std::vector< RPC > RPCCollection
Definition: RPC.h:64
int Word() const
Definition: RPC.h:38
virtual ~RPC()
Definition: RPC.h:22
void set_bc0(int bits)
Definition: RPC.h:30
int VP() const
Definition: RPC.h:44
int bc0
Definition: RPC.h:55
int Frame() const
Definition: RPC.h:39
unsigned long long uint64_t
Definition: Time.h:15
void set_phi(int bits)
Definition: RPC.h:24
void set_link(int bits)
Definition: RPC.h:28
void set_rpc_bxn(int bits)
Definition: RPC.h:29
void set_vp(int bits)
Definition: RPC.h:32
int Link() const
Definition: RPC.h:40
int vp
Definition: RPC.h:57
uint64_t dataword
Definition: RPC.h:59