CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 <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  prt_delay(-99), partition_num(-99), partition_data(-99), bcn(-99), lb(-99), link_number(-99),
17  bxn(-99), tbin(-99), eod(-99), bc0(-99), format_errors(0), dataword(-99)
18  {};
19 
20  RPC(int int_prt_delay, int int_partition_num, int int_partition_data, int int_bcn, int int_lb, int int_link_number,
21  int int_bxn, int int_tbin, int int_eod, int int_bc0) :
22  prt_delay(int_prt_delay), partition_num(int_partition_num), partition_data(int_partition_data), bcn(int_bcn), lb(int_lb), link_number(int_link_number),
23  bxn(int_bxn), tbin(int_tbin), eod(int_eod), bc0(int_bc0), format_errors(0), dataword(-99)
24  {};
25 
26  virtual ~RPC() {};
27 
28  void set_prt_delay(int bits) { prt_delay = bits; }
31  void set_bcn(int bits) { bcn = bits; }
32  void set_lb(int bits) { lb = bits; }
34  void set_bxn(int bits) { bxn = bits; }
35  void set_tbin(int bits) { tbin = bits; }
36  void set_eod(int bits) { eod = bits; }
37  void set_bc0(int bits) { bc0 = bits; }
39  void set_dataword(uint64_t bits) { dataword = bits; }
40 
41  int PRT_delay() const { return prt_delay; }
42  int Partition_num() const { return partition_num; }
43  int Partition_data() const { return partition_data; }
44  int BCN() const { return bcn; }
45  int LB() const { return lb; }
46  int Link_number() const { return link_number; }
47  int BXN() const { return bxn; }
48  int Tbin() const { return tbin; }
49  int EOD() const { return eod; }
50  int BC0() const { return bc0; }
51  int Format_Errors() const { return format_errors; }
52  uint64_t Dataword() const { return dataword; }
53 
54  private:
55  int prt_delay;
58  int bcn;
59  int lb;
61  int bxn;
62  int tbin;
63  int eod;
64  int bc0;
67 
68  }; // End of class RPC
69 
70  // Define a vector of RPC
71  typedef std::vector<RPC> RPCCollection;
72 
73  } // End of namespace emtf
74 } // End of namespace l1t
75 
76 #endif /* define __l1t_emtf_RPC_h__ */
void set_link_number(int bits)
Definition: RPC.h:33
int partition_num
Definition: RPC.h:56
int tbin
Definition: RPC.h:62
uint64_t Dataword() const
Definition: RPC.h:52
void set_partition_data(int bits)
Definition: RPC.h:30
RPC(int int_prt_delay, int int_partition_num, int int_partition_data, int int_bcn, int int_lb, int int_link_number, int int_bxn, int int_tbin, int int_eod, int int_bc0)
Definition: RPC.h:20
void set_bcn(int bits)
Definition: RPC.h:31
int Link_number() const
Definition: RPC.h:46
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:38
int lb
Definition: RPC.h:59
void set_prt_delay(int bits)
Definition: RPC.h:28
void set_bxn(int bits)
Definition: RPC.h:34
void set_dataword(uint64_t bits)
Definition: RPC.h:39
int BC0() const
Definition: RPC.h:50
int prt_delay
Definition: RPC.h:55
void set_eod(int bits)
Definition: RPC.h:36
void set_partition_num(int bits)
Definition: RPC.h:29
int format_errors
Definition: RPC.h:65
int bcn
Definition: RPC.h:58
void set_tbin(int bits)
Definition: RPC.h:35
std::vector< RPC > RPCCollection
Definition: RPC.h:71
int Format_Errors() const
Definition: RPC.h:51
virtual ~RPC()
Definition: RPC.h:26
void set_bc0(int bits)
Definition: RPC.h:37
int Partition_data() const
Definition: RPC.h:43
int BCN() const
Definition: RPC.h:44
int bc0
Definition: RPC.h:64
void set_lb(int bits)
Definition: RPC.h:32
int Partition_num() const
Definition: RPC.h:42
unsigned long long uint64_t
Definition: Time.h:15
int eod
Definition: RPC.h:63
int BXN() const
Definition: RPC.h:47
int link_number
Definition: RPC.h:60
int PRT_delay() const
Definition: RPC.h:41
int EOD() const
Definition: RPC.h:49
int Tbin() const
Definition: RPC.h:48
int LB() const
Definition: RPC.h:45
int bxn
Definition: RPC.h:61
int partition_data
Definition: RPC.h:57
uint64_t dataword
Definition: RPC.h:66