CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
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 
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_ */
bool valid() const
Returns true if it&#39;s valid block header - i.e. if the header is known and can be unpacked.
uint32_t m_blockId
The Block ID.
std::vector< GctBlockHeader > GctBlockHeaderCollection
uint32_t bxId() const
Get the bunch crossing ID.
GctBlockHeader(uint32_t blockId, uint32_t blockLength, uint32_t nSamples, uint32_t bxId, uint32_t eventId, bool valid)
Constructor. Don&#39;t use directly - use the generateBlockHeader() method in GctFormatTranslateBase-deri...
uint32_t m_eventId
The event ID.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
~GctBlockHeader()
Destructor.
uint32_t m_blockLength
The fundamental block length (for 1 time sample)
uint32_t eventId() const
Get the event ID.
Simple class for holding the basic attributes of an 32-bit block header.
uint32_t blockLength() const
Get the fundamental block length (for 1 time sample)
bool m_valid
Is this a valid block header.
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
uint32_t m_nSamples
The number of time-samples.
uint32_t m_bxId
The bunch-crossing ID.
uint32_t blockId() const
Get the block ID.
uint32_t nSamples() const
Get the number of time samples.