DataFormats
L1TMuon
interface
EMTF
MTF7Header.h
Go to the documentation of this file.
1
// Class for AMC to AMC13 Header
2
3
#ifndef __l1t_emtf_MTF7Header_h__
4
#define __l1t_emtf_MTF7Header_h__
5
6
#include <vector>
7
#include <cstdint>
8
9
namespace
l1t
{
10
namespace
emtf
{
11
class
MTF7Header
{
12
public
:
13
explicit
MTF7Header
(
uint64_t
dataword
);
14
15
MTF7Header
()
16
:
amc_number
(-99),
17
bx_id
(-99),
18
orbit_number
(-99),
19
board_id
(-99),
20
lv1_id
(-99),
21
data_length
(-99),
22
user_id
(-99),
23
format_errors
(0),
24
dataword
(-99){};
25
26
virtual
~MTF7Header
(){};
27
28
void
set_amc_number
(
int
bits
) {
amc_number
=
bits
; }
29
void
set_bx_id
(
int
bits
) {
bx_id
=
bits
; }
30
void
set_orbit_number
(
int
bits
) {
orbit_number
=
bits
; }
31
void
set_board_id
(
int
bits
) {
board_id
=
bits
; }
32
void
set_lv1_id
(
int
bits
) {
lv1_id
=
bits
; }
33
void
set_data_length
(
int
bits
) {
data_length
=
bits
; }
34
void
set_user_id
(
int
bits
) {
user_id
=
bits
; }
35
void
add_format_error
() {
format_errors
+= 1; }
36
void
set_dataword
(
uint64_t
bits
) {
dataword
=
bits
; }
37
38
int
AMC_number
()
const
{
return
amc_number
; }
39
int
BX_id
()
const
{
return
bx_id
; }
40
int
Orbit_number
()
const
{
return
orbit_number
; }
41
int
Board_id
()
const
{
return
board_id
; }
42
int
LV1_id
()
const
{
return
lv1_id
; }
43
int
Data_length
()
const
{
return
data_length
; }
44
int
User_id
()
const
{
return
user_id
; }
45
int
Format_errors
()
const
{
return
format_errors
; }
46
uint64_t
Dataword
()
const
{
return
dataword
; }
47
48
private
:
49
int
amc_number
;
50
int
bx_id
;
51
int
orbit_number
;
52
int
board_id
;
53
int
lv1_id
;
54
int
data_length
;
55
int
user_id
;
56
int
format_errors
;
57
uint64_t
dataword
;
58
59
};
// End class MTF7Header
60
}
// End namespace emtf
61
}
// End namespace l1t
62
63
#endif
/* define __l1t_emtf_MTF7Header_h__ */
l1t::emtf::MTF7Header::orbit_number
int orbit_number
Definition:
MTF7Header.h:51
l1t::emtf::MTF7Header::lv1_id
int lv1_id
Definition:
MTF7Header.h:53
l1t::emtf::MTF7Header::set_lv1_id
void set_lv1_id(int bits)
Definition:
MTF7Header.h:32
l1t::emtf::MTF7Header::amc_number
int amc_number
Definition:
MTF7Header.h:49
l1t::emtf::MTF7Header::Data_length
int Data_length() const
Definition:
MTF7Header.h:43
l1t::emtf::MTF7Header::set_orbit_number
void set_orbit_number(int bits)
Definition:
MTF7Header.h:30
gpuClustering::pixelStatus::bits
constexpr uint32_t bits
Definition:
gpuClustering.h:25
l1t::emtf::MTF7Header::set_amc_number
void set_amc_number(int bits)
Definition:
MTF7Header.h:28
emtf
Definition:
Event.h:15
l1t::emtf::MTF7Header::AMC_number
int AMC_number() const
Definition:
MTF7Header.h:38
l1t
delete x;
Definition:
CaloConfig.h:22
l1t::emtf::MTF7Header::add_format_error
void add_format_error()
Definition:
MTF7Header.h:35
l1t::emtf::MTF7Header::board_id
int board_id
Definition:
MTF7Header.h:52
l1t::emtf::MTF7Header::LV1_id
int LV1_id() const
Definition:
MTF7Header.h:42
l1t::emtf::MTF7Header::User_id
int User_id() const
Definition:
MTF7Header.h:44
l1t::emtf::MTF7Header::set_data_length
void set_data_length(int bits)
Definition:
MTF7Header.h:33
l1t::emtf::MTF7Header::BX_id
int BX_id() const
Definition:
MTF7Header.h:39
l1t::emtf::MTF7Header::set_bx_id
void set_bx_id(int bits)
Definition:
MTF7Header.h:29
l1t::emtf::MTF7Header
Definition:
MTF7Header.h:11
l1t::emtf::MTF7Header::set_board_id
void set_board_id(int bits)
Definition:
MTF7Header.h:31
l1t::emtf::MTF7Header::bx_id
int bx_id
Definition:
MTF7Header.h:50
l1t::emtf::MTF7Header::set_user_id
void set_user_id(int bits)
Definition:
MTF7Header.h:34
l1t::emtf::MTF7Header::set_dataword
void set_dataword(uint64_t bits)
Definition:
MTF7Header.h:36
l1t::emtf::MTF7Header::dataword
uint64_t dataword
Definition:
MTF7Header.h:57
l1t::emtf::MTF7Header::MTF7Header
MTF7Header()
Definition:
MTF7Header.h:15
l1t::emtf::MTF7Header::data_length
int data_length
Definition:
MTF7Header.h:54
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:13
l1t::emtf::MTF7Header::user_id
int user_id
Definition:
MTF7Header.h:55
l1t::emtf::MTF7Header::Orbit_number
int Orbit_number() const
Definition:
MTF7Header.h:40
l1t::emtf::MTF7Header::format_errors
int format_errors
Definition:
MTF7Header.h:56
l1t::emtf::MTF7Header::Format_errors
int Format_errors() const
Definition:
MTF7Header.h:45
l1t::emtf::MTF7Header::~MTF7Header
virtual ~MTF7Header()
Definition:
MTF7Header.h:26
l1t::emtf::MTF7Header::Board_id
int Board_id() const
Definition:
MTF7Header.h:41
l1t::emtf::MTF7Header::Dataword
uint64_t Dataword() const
Definition:
MTF7Header.h:46
Generated for CMSSW Reference Manual by
1.8.14