DataFormats
L1TMuon
interface
EMTF
MTF7Trailer.h
Go to the documentation of this file.
1
// Class for AMC to AMC13 Trailer
2
3
#ifndef __l1t_emtf_MTF7Trailer_h__
4
#define __l1t_emtf_MTF7Trailer_h__
5
6
#include <vector>
7
#include <cstdint>
8
9
namespace
l1t
{
10
namespace
emtf
{
11
class
MTF7Trailer
{
12
public
:
13
explicit
MTF7Trailer
(
uint64_t
dataword
);
14
15
MTF7Trailer
() :
crc_32
(-99),
lv1_id
(-99),
data_length
(-99),
format_errors
(0),
dataword
(-99){};
16
17
virtual
~MTF7Trailer
(){};
18
19
void
set_crc_32
(
int
bits) {
crc_32
= bits; }
20
void
set_lv1_id
(
int
bits) {
lv1_id
= bits; }
21
void
set_data_length
(
int
bits) {
data_length
= bits; }
22
void
add_format_error
() {
format_errors
+= 1; }
23
void
set_dataword
(
uint64_t
bits) {
dataword
= bits; }
24
25
int
CRC_32
()
const
{
return
crc_32
; }
26
int
LV1_id
()
const
{
return
lv1_id
; }
27
int
Data_length
()
const
{
return
data_length
; }
28
int
Format_errors
()
const
{
return
format_errors
; }
29
uint64_t
Dataword
()
const
{
return
dataword
; }
30
31
private
:
32
int
crc_32
;
33
int
lv1_id
;
34
int
data_length
;
35
int
format_errors
;
36
uint64_t
dataword
;
37
38
};
// End class MTF7Trailer
39
}
// End namespace emtf
40
}
// End namespace l1t
41
42
#endif
/* define __l1t_emtf_MTF7Trailer_h__ */
l1t::emtf::MTF7Trailer::set_data_length
void set_data_length(int bits)
Definition:
MTF7Trailer.h:21
l1t::emtf::MTF7Trailer::add_format_error
void add_format_error()
Definition:
MTF7Trailer.h:22
l1t::emtf::MTF7Trailer::format_errors
int format_errors
Definition:
MTF7Trailer.h:35
l1t::emtf::MTF7Trailer::LV1_id
int LV1_id() const
Definition:
MTF7Trailer.h:26
emtf
Definition:
Event.h:15
l1t::emtf::MTF7Trailer::crc_32
int crc_32
Definition:
MTF7Trailer.h:32
l1t::emtf::MTF7Trailer::MTF7Trailer
MTF7Trailer()
Definition:
MTF7Trailer.h:15
l1t::emtf::MTF7Trailer::Data_length
int Data_length() const
Definition:
MTF7Trailer.h:27
l1t::emtf::MTF7Trailer
Definition:
MTF7Trailer.h:11
l1t::emtf::MTF7Trailer::set_crc_32
void set_crc_32(int bits)
Definition:
MTF7Trailer.h:19
l1t::emtf::MTF7Trailer::Format_errors
int Format_errors() const
Definition:
MTF7Trailer.h:28
l1t::emtf::MTF7Trailer::data_length
int data_length
Definition:
MTF7Trailer.h:34
l1t::emtf::MTF7Trailer::~MTF7Trailer
virtual ~MTF7Trailer()
Definition:
MTF7Trailer.h:17
l1t::emtf::MTF7Trailer::set_lv1_id
void set_lv1_id(int bits)
Definition:
MTF7Trailer.h:20
l1t
delete x;
Definition:
CaloConfig.h:22
l1t::emtf::MTF7Trailer::CRC_32
int CRC_32() const
Definition:
MTF7Trailer.h:25
l1t::emtf::MTF7Trailer::lv1_id
int lv1_id
Definition:
MTF7Trailer.h:33
l1t::emtf::MTF7Trailer::set_dataword
void set_dataword(uint64_t bits)
Definition:
MTF7Trailer.h:23
l1t::emtf::MTF7Trailer::dataword
uint64_t dataword
Definition:
MTF7Trailer.h:36
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:13
l1t::emtf::MTF7Trailer::Dataword
uint64_t Dataword() const
Definition:
MTF7Trailer.h:29
Generated for CMSSW Reference Manual by
1.8.16