Main Page
Namespaces
Classes
Package Documentation
src
EventFilter
GctRawToDigi
src
GctBlockHeader.h
Go to the documentation of this file.
1
#ifndef GctBlockHeader_h_
2
#define GctBlockHeader_h_
3
4
12
// C++ headers
13
#include <ostream>
14
#include <cstdint>
15
16
class
GctBlockHeader
17
{
18
public
:
19
20
/* PUBLIC METHODS */
21
23
24
GctBlockHeader
(uint32_t
blockId
,
25
uint32_t
blockLength
,
26
uint32_t
nSamples
,
27
uint32_t
bxId
,
28
uint32_t
eventId
,
29
bool
valid
);
30
32
~GctBlockHeader
() {};
33
35
uint32_t
blockId
()
const
{
return
m_blockId
; }
36
38
uint32_t
blockLength
()
const
{
return
m_blockLength
; }
39
41
uint32_t
nSamples
()
const
{
return
m_nSamples
; }
42
44
uint32_t
bxId
()
const
{
return
m_bxId
; }
45
47
uint32_t
eventId
()
const
{
return
m_eventId
; }
48
50
bool
valid
()
const
{
return
m_valid
; }
51
52
53
private
:
54
55
/* PRIVATE METHODS */
56
57
58
59
/* PRIVATE MEMBER DATA */
60
61
uint32_t
m_blockId
;
62
63
uint32_t
m_blockLength
;
64
65
uint32_t
m_nSamples
;
66
67
uint32_t
m_bxId
;
68
69
uint32_t
m_eventId
;
70
71
bool
m_valid
;
72
73
};
74
75
#include <vector>
76
typedef
std::vector<GctBlockHeader>
GctBlockHeaderCollection
;
77
78
std::ostream&
operator<<
(std::ostream& os,
const
GctBlockHeader
&
h
);
79
80
#endif
/* GctBlockHeader_h_ */
GctBlockHeader::valid
bool valid() const
Returns true if it's valid block header - i.e. if the header is known and can be unpacked.
Definition:
GctBlockHeader.h:50
GctBlockHeader::m_blockId
uint32_t m_blockId
The Block ID.
Definition:
GctBlockHeader.h:61
GctBlockHeaderCollection
std::vector< GctBlockHeader > GctBlockHeaderCollection
Definition:
GctBlockHeader.h:76
GctBlockHeader::bxId
uint32_t bxId() const
Get the bunch crossing ID.
Definition:
GctBlockHeader.h:44
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition:
L1TUtmAlgorithmRcd.h:4
GctBlockHeader::GctBlockHeader
GctBlockHeader(uint32_t blockId, uint32_t blockLength, uint32_t nSamples, uint32_t bxId, uint32_t eventId, bool valid)
Constructor. Don't use directly - use the generateBlockHeader() method in GctFormatTranslateBase-deri...
Definition:
GctBlockHeader.cc:3
GctBlockHeader::m_eventId
uint32_t m_eventId
The event ID.
Definition:
GctBlockHeader.h:69
operator<<
std::ostream & operator<<(std::ostream &os, const GctBlockHeader &h)
Definition:
GctBlockHeader.cc:18
GctBlockHeader::~GctBlockHeader
~GctBlockHeader()
Destructor.
Definition:
GctBlockHeader.h:32
GctBlockHeader::m_blockLength
uint32_t m_blockLength
The fundamental block length (for 1 time sample)
Definition:
GctBlockHeader.h:63
GctBlockHeader::eventId
uint32_t eventId() const
Get the event ID.
Definition:
GctBlockHeader.h:47
GctBlockHeader
Simple class for holding the basic attributes of an 32-bit block header.
Definition:
GctBlockHeader.h:16
GctBlockHeader::blockLength
uint32_t blockLength() const
Get the fundamental block length (for 1 time sample)
Definition:
GctBlockHeader.h:38
GctBlockHeader::m_valid
bool m_valid
Is this a valid block header.
Definition:
GctBlockHeader.h:71
GctBlockHeader::m_nSamples
uint32_t m_nSamples
The number of time-samples.
Definition:
GctBlockHeader.h:65
GctBlockHeader::m_bxId
uint32_t m_bxId
The bunch-crossing ID.
Definition:
GctBlockHeader.h:67
GctBlockHeader::blockId
uint32_t blockId() const
Get the block ID.
Definition:
GctBlockHeader.h:35
GctBlockHeader::nSamples
uint32_t nSamples() const
Get the number of time samples.
Definition:
GctBlockHeader.h:41
Generated for CMSSW Reference Manual by
1.8.11