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 namespace l1t {
9  namespace emtf {
10  class RPC {
11  public:
12 
13  explicit RPC(uint64_t dataword);
14 
15  RPC() :
16  phi(-99), theta(-99), word(-99), frame(-99), link(-99), rpc_bxn(-99),
17  bc0(-99), tbin(-99), vp(-99), format_errors(0), dataword(-99)
18  {};
19 
20  virtual ~RPC() {};
21 
22  void set_phi(int bits) { phi = bits; }
23  void set_theta(int bits) { theta = bits; }
24  void set_word(int bits) { word = bits; }
25  void set_frame(int bits) { frame = bits; }
26  void set_link(int bits) { link = bits; }
27  void set_rpc_bxn(int bits) { rpc_bxn = bits; }
28  void set_bc0(int bits) { bc0 = bits; }
29  void set_tbin(int bits) { tbin = bits; }
30  void set_vp(int bits) { vp = bits; }
32  void set_dataword(uint64_t bits) { dataword = bits; }
33 
34  int Phi() const { return phi; }
35  int Theta() const { return theta; }
36  int Word() const { return word; }
37  int Frame() const { return frame; }
38  int Link() const { return link; }
39  int RPC_BXN() const { return rpc_bxn; }
40  int BC0() const { return bc0; }
41  int TBIN() const { return tbin; }
42  int VP() const { return vp; }
43  int Format_errors() const { return format_errors; }
44  uint64_t Dataword() const { return dataword; }
45 
46  private:
47  int phi;
48  int theta;
49  int word;
50  int frame;
51  int link;
52  int rpc_bxn;
53  int bc0;
54  int tbin;
55  int vp;
58 
59  }; // End of class RPC
60 
61  // Define a vector of RPC
62  typedef std::vector<RPC> RPCCollection;
63 
64  } // End of namespace emtf
65 } // End of namespace l1t
66 
67 #endif /* define __l1t_emtf_RPC_h__ */
int theta
Definition: RPC.h:48
int tbin
Definition: RPC.h:54
uint64_t Dataword() const
Definition: RPC.h:44
int Format_errors() const
Definition: RPC.h:43
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:31
int link
Definition: RPC.h:51
int frame
Definition: RPC.h:50
Definition: Event.h:15
delete x;
Definition: CaloConfig.h:22
int rpc_bxn
Definition: RPC.h:52
int RPC_BXN() const
Definition: RPC.h:39
void set_dataword(uint64_t bits)
Definition: RPC.h:32
int BC0() const
Definition: RPC.h:40
void set_word(int bits)
Definition: RPC.h:24
int TBIN() const
Definition: RPC.h:41
int Theta() const
Definition: RPC.h:35
void set_frame(int bits)
Definition: RPC.h:25
int phi
Definition: RPC.h:47
void set_theta(int bits)
Definition: RPC.h:23
int format_errors
Definition: RPC.h:56
void set_tbin(int bits)
Definition: RPC.h:29
int Phi() const
Definition: RPC.h:34
int word
Definition: RPC.h:49
std::vector< RPC > RPCCollection
Definition: RPC.h:62
int Word() const
Definition: RPC.h:36
virtual ~RPC()
Definition: RPC.h:20
void set_bc0(int bits)
Definition: RPC.h:28
int VP() const
Definition: RPC.h:42
int bc0
Definition: RPC.h:53
int Frame() const
Definition: RPC.h:37
unsigned long long uint64_t
Definition: Time.h:15
void set_phi(int bits)
Definition: RPC.h:22
void set_link(int bits)
Definition: RPC.h:26
void set_rpc_bxn(int bits)
Definition: RPC.h:27
void set_vp(int bits)
Definition: RPC.h:30
int Link() const
Definition: RPC.h:38
int vp
Definition: RPC.h:55
uint64_t dataword
Definition: RPC.h:57