CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GctBlockHeader.h
Go to the documentation of this file.
1 #ifndef GctBlockHeader_h_
2 #define GctBlockHeader_h_
3 
11 // C++ headers
12 #include <ostream>
13 #include <cstdint>
14 
16 public:
17  /* PUBLIC METHODS */
18 
20 
21  GctBlockHeader(uint32_t blockId, uint32_t blockLength, uint32_t nSamples, uint32_t bxId, uint32_t eventId, bool valid);
22 
25 
27  uint32_t blockId() const { return m_blockId; }
28 
30  uint32_t blockLength() const { return m_blockLength; }
31 
33  uint32_t nSamples() const { return m_nSamples; }
34 
36  uint32_t bxId() const { return m_bxId; }
37 
39  uint32_t eventId() const { return m_eventId; }
40 
42  bool valid() const { return m_valid; }
43 
44 private:
45  /* PRIVATE METHODS */
46 
47  /* PRIVATE MEMBER DATA */
48 
49  uint32_t m_blockId;
50 
51  uint32_t m_blockLength;
52 
53  uint32_t m_nSamples;
54 
55  uint32_t m_bxId;
56 
57  uint32_t m_eventId;
58 
59  bool m_valid;
60 };
61 
62 #include <vector>
63 typedef std::vector<GctBlockHeader> GctBlockHeaderCollection;
64 
65 std::ostream& operator<<(std::ostream& os, const GctBlockHeader& h);
66 
67 #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:167
~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.
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.
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 nSamples() const
Get the number of time samples.