Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
EventFilter
GctRawToDigi
src
GctBlockHeader.h
Go to the documentation of this file.
1
#ifndef GctBlockHeader_h_
2
#define GctBlockHeader_h_
3
4
14
// C++ headers
15
#include <ostream>
16
#include <stdint.h>
17
18
class
GctBlockHeader
19
{
20
public
:
21
22
/* PUBLIC METHODS */
23
25
26
GctBlockHeader
(uint32_t
blockId
,
27
uint32_t
blockLength
,
28
uint32_t
nSamples
,
29
uint32_t
bxId
,
30
uint32_t
eventId
,
31
bool
valid
);
32
34
~GctBlockHeader
() {};
35
37
uint32_t
blockId
()
const
{
return
m_blockId
; }
38
40
uint32_t
blockLength
()
const
{
return
m_blockLength
; }
41
43
uint32_t
nSamples
()
const
{
return
m_nSamples
; }
44
46
uint32_t
bxId
()
const
{
return
m_bxId
; }
47
49
uint32_t
eventId
()
const
{
return
m_eventId
; }
50
52
bool
valid
()
const
{
return
m_valid
; }
53
54
55
private
:
56
57
/* PRIVATE METHODS */
58
59
60
61
/* PRIVATE MEMBER DATA */
62
63
uint32_t
m_blockId
;
64
65
uint32_t
m_blockLength
;
66
67
uint32_t
m_nSamples
;
68
69
uint32_t
m_bxId
;
70
71
uint32_t
m_eventId
;
72
73
bool
m_valid
;
74
75
};
76
77
#include <vector>
78
typedef
std::vector<GctBlockHeader>
GctBlockHeaderCollection
;
79
80
std::ostream&
operator<<
(std::ostream& os,
const
GctBlockHeader
&
h
);
81
82
#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:52
GctBlockHeader::m_blockId
uint32_t m_blockId
The Block ID.
Definition:
GctBlockHeader.h:63
GctBlockHeaderCollection
std::vector< GctBlockHeader > GctBlockHeaderCollection
Definition:
GctBlockHeader.h:78
GctBlockHeader::bxId
uint32_t bxId() const
Get the bunch crossing ID.
Definition:
GctBlockHeader.h:46
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:71
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
GctBlockHeader::~GctBlockHeader
~GctBlockHeader()
Destructor.
Definition:
GctBlockHeader.h:34
GctBlockHeader::m_blockLength
uint32_t m_blockLength
The fundamental block length (for 1 time sample)
Definition:
GctBlockHeader.h:65
GctBlockHeader::eventId
uint32_t eventId() const
Get the event ID.
Definition:
GctBlockHeader.h:49
GctBlockHeader
Simple class for holding the basic attributes of an 32-bit block header.
Definition:
GctBlockHeader.h:18
GctBlockHeader::blockLength
uint32_t blockLength() const
Get the fundamental block length (for 1 time sample)
Definition:
GctBlockHeader.h:40
GctBlockHeader::m_valid
bool m_valid
Is this a valid block header.
Definition:
GctBlockHeader.h:73
GctBlockHeader::m_nSamples
uint32_t m_nSamples
The number of time-samples.
Definition:
GctBlockHeader.h:67
GctBlockHeader::m_bxId
uint32_t m_bxId
The bunch-crossing ID.
Definition:
GctBlockHeader.h:69
GctBlockHeader::blockId
uint32_t blockId() const
Get the block ID.
Definition:
GctBlockHeader.h:37
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition:
Activities.doc:4
GctBlockHeader::nSamples
uint32_t nSamples() const
Get the number of time samples.
Definition:
GctBlockHeader.h:43
Generated for CMSSW Reference Manual by
1.8.5