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