DataFormats
L1TMuon
interface
EMTF
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; }
39
void
add_format_error
() {
format_errors
+= 1; }
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
;
64
int
format_errors
;
65
uint64_t
dataword
;
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__ */
l1t::emtf::RPC::~RPC
virtual ~RPC()
Definition:
RPC.h:28
l1t::emtf::RPC::set_bc0
void set_bc0(int bits)
Definition:
RPC.h:36
l1t::emtf::RPCCollection
std::vector< RPC > RPCCollection
Definition:
RPC.h:70
l1t::emtf::RPC::add_format_error
void add_format_error()
Definition:
RPC.h:39
l1t::emtf::RPC::link
int link
Definition:
RPC.h:59
l1t::emtf::RPC::BC0
int BC0() const
Definition:
RPC.h:48
l1t::emtf::RPC::set_dataword
void set_dataword(uint64_t bits)
Definition:
RPC.h:40
l1t::emtf::RPC::bc0
int bc0
Definition:
RPC.h:61
l1t::emtf::RPC
Definition:
RPC.h:11
l1t::emtf::RPC::frame
int frame
Definition:
RPC.h:58
l1t::emtf::RPC::set_phi
void set_phi(int bits)
Definition:
RPC.h:30
l1t::emtf::RPC::set_link
void set_link(int bits)
Definition:
RPC.h:34
l1t::emtf::RPC::set_frame
void set_frame(int bits)
Definition:
RPC.h:33
word
uint64_t word
Definition:
CTPPSTotemDataFormatter.cc:29
l1t::emtf::RPC::Theta
int Theta() const
Definition:
RPC.h:43
l1t::emtf::RPC::word
int word
Definition:
RPC.h:57
emtf
Definition:
Event.h:15
l1t::emtf::RPC::Phi
int Phi() const
Definition:
RPC.h:42
l1t::emtf::RPC::dataword
uint64_t dataword
Definition:
RPC.h:65
l1t::emtf::RPC::rpc_bxn
int rpc_bxn
Definition:
RPC.h:60
l1t::emtf::RPC::theta
int theta
Definition:
RPC.h:56
l1t::emtf::RPC::tbin
int tbin
Definition:
RPC.h:62
l1t::emtf::RPC::phi
int phi
Definition:
RPC.h:55
l1t::emtf::RPC::set_vp
void set_vp(int bits)
Definition:
RPC.h:38
l1t
delete x;
Definition:
CaloConfig.h:22
l1t::emtf::RPC::format_errors
int format_errors
Definition:
RPC.h:64
l1t::emtf::RPC::Dataword
uint64_t Dataword() const
Definition:
RPC.h:52
l1t::emtf::RPC::set_tbin
void set_tbin(int bits)
Definition:
RPC.h:37
l1t::emtf::RPC::TBIN
int TBIN() const
Definition:
RPC.h:49
l1t::emtf::RPC::VP
int VP() const
Definition:
RPC.h:50
l1t::emtf::RPC::RPC
RPC()
Definition:
RPC.h:15
l1t::emtf::RPC::Frame
int Frame() const
Definition:
RPC.h:45
l1t::emtf::RPC::set_rpc_bxn
void set_rpc_bxn(int bits)
Definition:
RPC.h:35
l1t::emtf::RPC::Word
int Word() const
Definition:
RPC.h:44
l1t::emtf::RPC::set_word
void set_word(int bits)
Definition:
RPC.h:32
l1t::emtf::RPC::set_theta
void set_theta(int bits)
Definition:
RPC.h:31
l1t::emtf::RPC::vp
int vp
Definition:
RPC.h:63
l1t::emtf::RPC::RPC_BXN
int RPC_BXN() const
Definition:
RPC.h:47
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:13
l1t::emtf::RPC::Format_errors
int Format_errors() const
Definition:
RPC.h:51
l1t::emtf::RPC::Link
int Link() const
Definition:
RPC.h:46
Generated for CMSSW Reference Manual by
1.8.16