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 
12 // C++ headers
13 #include <ostream>
14 #include <stdint.h>
15 
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 
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_ */
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.
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
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:188
~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.
uint32_t nSamples() const
Get the number of time samples.