CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GctBlockHeader Class Reference

Simple class for holding the basic attributes of an 32-bit block header. More...

#include <GctBlockHeader.h>

Public Member Functions

uint32_t blockId () const
 Get the block ID. More...
 
uint32_t blockLength () const
 Get the fundamental block length (for 1 time sample) More...
 
uint32_t bxId () const
 Get the bunch crossing ID. More...
 
uint32_t eventId () const
 Get the event ID. More...
 
 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-derived classes. More...
 
uint32_t nSamples () const
 Get the number of time samples. More...
 
bool valid () const
 Returns true if it's valid block header - i.e. if the header is known and can be unpacked. More...
 
 ~GctBlockHeader ()
 Destructor. More...
 

Private Attributes

uint32_t m_blockId
 The Block ID. More...
 
uint32_t m_blockLength
 The fundamental block length (for 1 time sample) More...
 
uint32_t m_bxId
 The bunch-crossing ID. More...
 
uint32_t m_eventId
 The event ID. More...
 
uint32_t m_nSamples
 The number of time-samples. More...
 
bool m_valid
 Is this a valid block header. More...
 

Detailed Description

Simple class for holding the basic attributes of an 32-bit block header.

Definition at line 15 of file GctBlockHeader.h.

Constructor & Destructor Documentation

◆ 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-derived classes.

Parameters
validFlag if this is a known and valid header .

Definition at line 3 of file GctBlockHeader.cc.

◆ ~GctBlockHeader()

GctBlockHeader::~GctBlockHeader ( )
inline

Destructor.

Definition at line 24 of file GctBlockHeader.h.

24 {};

Member Function Documentation

◆ blockId()

uint32_t GctBlockHeader::blockId ( ) const
inline

Get the block ID.

Definition at line 27 of file GctBlockHeader.h.

27 { return m_blockId; }

References m_blockId.

Referenced by GctFormatTranslateV35::blockToFibres(), GctFormatTranslateV38::blockToFibres(), GctFormatTranslateMCLegacy::blockToFibres(), GctFormatTranslateV35::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV38::blockToGctEmCandsAndEnergySums(), GctFormatTranslateMCLegacy::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV35::blockToGctInternEmCand(), GctFormatTranslateV38::blockToGctInternEmCand(), GctFormatTranslateV35::blockToGctInternEtSums(), GctFormatTranslateV38::blockToGctInternEtSums(), GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV38::blockToGctInternHtMissPostWheel(), GctFormatTranslateV38::blockToGctInternHtMissPreWheel(), GctFormatTranslateV35::blockToGctInternRingSums(), GctFormatTranslateV38::blockToGctInternRingSums(), GctFormatTranslateV35::blockToGctJetCandsAndCounts(), GctFormatTranslateV38::blockToGctJetCandsAndCounts(), GctFormatTranslateMCLegacy::blockToGctJetCandsAndCounts(), GctFormatTranslateV35::blockToGctJetClusterMinimal(), GctFormatTranslateV38::blockToGctJetClusterMinimal(), GctFormatTranslateV35::blockToGctJetPreCluster(), GctFormatTranslateV38::blockToGctJetPreCluster(), GctFormatTranslateV35::blockToGctTrigObjects(), GctFormatTranslateV38::blockToGctTrigObjects(), GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums(), GctFormatTranslateV35::blockToRctCaloRegions(), GctFormatTranslateV38::blockToRctCaloRegions(), GctFormatTranslateV35::blockToRctEmCand(), GctFormatTranslateV38::blockToRctEmCand(), GctFormatTranslateMCLegacy::blockToRctEmCand(), GctFormatTranslateV35::convertBlock(), GctFormatTranslateMCLegacy::convertBlock(), and GctFormatTranslateV38::convertBlock().

◆ blockLength()

uint32_t GctBlockHeader::blockLength ( ) const
inline

Get the fundamental block length (for 1 time sample)

Definition at line 30 of file GctBlockHeader.h.

30 { return m_blockLength; }

References m_blockLength.

Referenced by GctFormatTranslateV35::blockToFibres(), GctFormatTranslateV38::blockToFibres(), GctFormatTranslateMCLegacy::blockToFibres(), GctFormatTranslateV35::blockToGctInternEmCand(), GctFormatTranslateV38::blockToGctInternEmCand(), GctFormatTranslateV35::blockToGctInternEtSums(), GctFormatTranslateV38::blockToGctInternEtSums(), GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV38::blockToGctInternHtMissPostWheel(), GctFormatTranslateV38::blockToGctInternHtMissPreWheel(), GctFormatTranslateV35::blockToGctInternRingSums(), GctFormatTranslateV38::blockToGctInternRingSums(), GctFormatTranslateV35::blockToGctJetClusterMinimal(), GctFormatTranslateV38::blockToGctJetClusterMinimal(), GctFormatTranslateV35::blockToGctJetPreCluster(), GctFormatTranslateV38::blockToGctJetPreCluster(), GctFormatTranslateV35::blockToGctTrigObjects(), GctFormatTranslateV38::blockToGctTrigObjects(), GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums(), GctFormatTranslateV35::blockToRctCaloRegions(), GctFormatTranslateV38::blockToRctCaloRegions(), GctFormatTranslateV35::blockToRctEmCand(), GctFormatTranslateV38::blockToRctEmCand(), GctFormatTranslateMCLegacy::blockToRctEmCand(), and GctRawToDigi::unpack().

◆ bxId()

uint32_t GctBlockHeader::bxId ( ) const
inline

Get the bunch crossing ID.

Definition at line 36 of file GctBlockHeader.h.

36 { return m_bxId; }

References m_bxId.

◆ eventId()

uint32_t GctBlockHeader::eventId ( ) const
inline

Get the event ID.

Definition at line 39 of file GctBlockHeader.h.

39 { return m_eventId; }

References m_eventId.

Referenced by ntupleDataFormat.Event::eventIdStr().

◆ nSamples()

uint32_t GctBlockHeader::nSamples ( ) const
inline

Get the number of time samples.

Definition at line 33 of file GctBlockHeader.h.

33 { return m_nSamples; }

References m_nSamples.

Referenced by GctFormatTranslateMCLegacy::blockToAllRctCaloRegions(), GctFormatTranslateV35::blockToFibres(), GctFormatTranslateV38::blockToFibres(), GctFormatTranslateMCLegacy::blockToFibres(), GctFormatTranslateV35::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV38::blockToGctEmCandsAndEnergySums(), GctFormatTranslateMCLegacy::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV35::blockToGctInternEmCand(), GctFormatTranslateV38::blockToGctInternEmCand(), GctFormatTranslateV35::blockToGctInternEtSums(), GctFormatTranslateV38::blockToGctInternEtSums(), GctFormatTranslateV35::blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV38::blockToGctInternEtSumsAndJetCluster(), GctFormatTranslateV38::blockToGctInternHtMissPostWheel(), GctFormatTranslateV38::blockToGctInternHtMissPreWheel(), GctFormatTranslateV35::blockToGctInternRingSums(), GctFormatTranslateV38::blockToGctInternRingSums(), GctFormatTranslateV35::blockToGctJetCandsAndCounts(), GctFormatTranslateV38::blockToGctJetCandsAndCounts(), GctFormatTranslateMCLegacy::blockToGctJetCandsAndCounts(), GctFormatTranslateV35::blockToGctJetClusterMinimal(), GctFormatTranslateV38::blockToGctJetClusterMinimal(), GctFormatTranslateV35::blockToGctJetPreCluster(), GctFormatTranslateV38::blockToGctJetPreCluster(), GctFormatTranslateV35::blockToGctTrigObjects(), GctFormatTranslateV38::blockToGctTrigObjects(), GctFormatTranslateV35::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelInputInternEtAndRingSums(), GctFormatTranslateV35::blockToGctWheelOutputInternEtAndRingSums(), GctFormatTranslateV38::blockToGctWheelOutputInternEtAndRingSums(), GctFormatTranslateV35::blockToRctCaloRegions(), GctFormatTranslateV38::blockToRctCaloRegions(), GctFormatTranslateV35::blockToRctEmCand(), GctFormatTranslateV38::blockToRctEmCand(), GctFormatTranslateMCLegacy::blockToRctEmCand(), GctFormatTranslateBase::checkBlock(), GctFormatTranslateV35::convertBlock(), GctFormatTranslateV38::convertBlock(), GctFormatTranslateMCLegacy::convertBlock(), and GctRawToDigi::unpack().

◆ valid()

bool GctBlockHeader::valid ( ) const
inline

Returns true if it's valid block header - i.e. if the header is known and can be unpacked.

Definition at line 42 of file GctBlockHeader.h.

42 { return m_valid; }

References m_valid.

Referenced by GctFormatTranslateBase::checkBlock().

Member Data Documentation

◆ m_blockId

uint32_t GctBlockHeader::m_blockId
private

The Block ID.

Definition at line 49 of file GctBlockHeader.h.

Referenced by blockId().

◆ m_blockLength

uint32_t GctBlockHeader::m_blockLength
private

The fundamental block length (for 1 time sample)

Definition at line 51 of file GctBlockHeader.h.

Referenced by blockLength().

◆ m_bxId

uint32_t GctBlockHeader::m_bxId
private

The bunch-crossing ID.

Definition at line 55 of file GctBlockHeader.h.

Referenced by bxId().

◆ m_eventId

uint32_t GctBlockHeader::m_eventId
private

The event ID.

Definition at line 57 of file GctBlockHeader.h.

Referenced by eventId().

◆ m_nSamples

uint32_t GctBlockHeader::m_nSamples
private

The number of time-samples.

Definition at line 53 of file GctBlockHeader.h.

Referenced by nSamples().

◆ m_valid

bool GctBlockHeader::m_valid
private

Is this a valid block header.

Definition at line 59 of file GctBlockHeader.h.

Referenced by valid().

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:42
GctBlockHeader::m_valid
bool m_valid
Is this a valid block header.
Definition: GctBlockHeader.h:59
GctBlockHeader::blockId
uint32_t blockId() const
Get the block ID.
Definition: GctBlockHeader.h:27
GctBlockHeader::eventId
uint32_t eventId() const
Get the event ID.
Definition: GctBlockHeader.h:39
GctBlockHeader::m_bxId
uint32_t m_bxId
The bunch-crossing ID.
Definition: GctBlockHeader.h:55
GctBlockHeader::m_eventId
uint32_t m_eventId
The event ID.
Definition: GctBlockHeader.h:57
GctBlockHeader::blockLength
uint32_t blockLength() const
Get the fundamental block length (for 1 time sample)
Definition: GctBlockHeader.h:30
GctBlockHeader::m_blockId
uint32_t m_blockId
The Block ID.
Definition: GctBlockHeader.h:49
GctBlockHeader::bxId
uint32_t bxId() const
Get the bunch crossing ID.
Definition: GctBlockHeader.h:36
GctBlockHeader::m_blockLength
uint32_t m_blockLength
The fundamental block length (for 1 time sample)
Definition: GctBlockHeader.h:51
GctBlockHeader::nSamples
uint32_t nSamples() const
Get the number of time samples.
Definition: GctBlockHeader.h:33
GctBlockHeader::m_nSamples
uint32_t m_nSamples
The number of time-samples.
Definition: GctBlockHeader.h:53