CMS 3D CMS Logo

GctBlockHeader Class Reference

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

#include <EventFilter/GctRawToDigi/src/GctBlockHeader.h>

List of all members.

Public Member Functions

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

Private Attributes

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


Detailed Description

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

Author:
Robert Frazier
Revision
1.13.4.1
Date
2009/04/27 14:30:54

Definition at line 18 of file GctBlockHeader.h.


Constructor & Destructor Documentation

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:
valid Flag if this is a known and valid header .

Definition at line 3 of file GctBlockHeader.cc.

00008                                           :
00009   m_blockId(blockId),
00010   m_blockLength(blockLength),
00011   m_nSamples(nSamples),
00012   m_bxId(bxId),
00013   m_eventId(eventId),
00014   m_valid(valid)
00015 {
00016 }

GctBlockHeader::~GctBlockHeader (  )  [inline]

Destructor.

Definition at line 34 of file GctBlockHeader.h.

00034 {};


Member Function Documentation

uint32_t GctBlockHeader::blockId (  )  const [inline]

Get the block ID.

Definition at line 37 of file GctBlockHeader.h.

References m_blockId.

Referenced by GctFormatTranslateV35::blockToFibres(), GctFormatTranslateV38::blockToFibres(), GctFormatTranslateMCLegacy::blockToFibres(), GctFormatTranslateV35::blockToGctEmCandsAndEnergySums(), GctFormatTranslateMCLegacy::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV38::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV35::blockToGctInternEmCand(), GctFormatTranslateV38::blockToGctInternEmCand(), GctFormatTranslateV35::blockToGctJetCandsAndCounts(), GctFormatTranslateV38::blockToGctJetCandsAndCounts(), GctFormatTranslateMCLegacy::blockToGctJetCandsAndCounts(), GctFormatTranslateV35::blockToGctJetClusterMinimal(), GctFormatTranslateV38::blockToGctJetClusterMinimal(), GctFormatTranslateV35::blockToGctJetPreCluster(), GctFormatTranslateV38::blockToGctJetPreCluster(), GctFormatTranslateV35::blockToGctTrigObjects(), GctFormatTranslateV38::blockToGctTrigObjects(), GctFormatTranslateV35::blockToRctCaloRegions(), GctFormatTranslateV38::blockToRctCaloRegions(), GctFormatTranslateV35::blockToRctEmCand(), GctFormatTranslateV38::blockToRctEmCand(), GctFormatTranslateMCLegacy::blockToRctEmCand(), GctFormatTranslateV35::convertBlock(), GctFormatTranslateV38::convertBlock(), GctFormatTranslateMCLegacy::convertBlock(), GctFormatTranslateBase::getBlockDescription(), and operator<<().

00037 { return m_blockId; }

uint32_t GctBlockHeader::blockLength (  )  const [inline]

Get the fundamental block length (for 1 time sample).

Definition at line 40 of file GctBlockHeader.h.

References m_blockLength.

Referenced by GctFormatTranslateV35::blockToFibres(), GctFormatTranslateV38::blockToFibres(), GctFormatTranslateMCLegacy::blockToFibres(), GctFormatTranslateV35::blockToGctInternEmCand(), GctFormatTranslateV38::blockToGctInternEmCand(), GctFormatTranslateV35::blockToGctJetClusterMinimal(), GctFormatTranslateV38::blockToGctJetClusterMinimal(), GctFormatTranslateV35::blockToGctJetPreCluster(), GctFormatTranslateV38::blockToGctJetPreCluster(), GctFormatTranslateV35::blockToGctTrigObjects(), GctFormatTranslateV38::blockToGctTrigObjects(), GctFormatTranslateV35::blockToRctCaloRegions(), GctFormatTranslateV38::blockToRctCaloRegions(), GctFormatTranslateV35::blockToRctEmCand(), GctFormatTranslateV38::blockToRctEmCand(), GctFormatTranslateMCLegacy::blockToRctEmCand(), operator<<(), and GctRawToDigi::unpack().

00040 { return m_blockLength; }

uint32_t GctBlockHeader::bxId (  )  const [inline]

Get the bunch crossing ID.

Definition at line 46 of file GctBlockHeader.h.

References m_bxId.

Referenced by operator<<().

00046 { return m_bxId; }

uint32_t GctBlockHeader::eventId (  )  const [inline]

Get the event ID.

Definition at line 49 of file GctBlockHeader.h.

References m_eventId.

Referenced by operator<<().

00049 { return m_eventId; }

uint32_t GctBlockHeader::nSamples (  )  const [inline]

Get the number of time samples.

Definition at line 43 of file GctBlockHeader.h.

References m_nSamples.

Referenced by GctFormatTranslateMCLegacy::blockToAllRctCaloRegions(), GctFormatTranslateV35::blockToFibres(), GctFormatTranslateV38::blockToFibres(), GctFormatTranslateMCLegacy::blockToFibres(), GctFormatTranslateV35::blockToGctEmCandsAndEnergySums(), GctFormatTranslateMCLegacy::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV38::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV35::blockToGctInternEmCand(), GctFormatTranslateV38::blockToGctInternEmCand(), GctFormatTranslateV35::blockToGctJetCandsAndCounts(), GctFormatTranslateV38::blockToGctJetCandsAndCounts(), GctFormatTranslateMCLegacy::blockToGctJetCandsAndCounts(), GctFormatTranslateV35::blockToGctJetClusterMinimal(), GctFormatTranslateV38::blockToGctJetClusterMinimal(), GctFormatTranslateV35::blockToGctJetPreCluster(), GctFormatTranslateV38::blockToGctJetPreCluster(), GctFormatTranslateV35::blockToGctTrigObjects(), GctFormatTranslateV38::blockToGctTrigObjects(), GctFormatTranslateV35::blockToRctCaloRegions(), GctFormatTranslateV38::blockToRctCaloRegions(), GctFormatTranslateV35::blockToRctEmCand(), GctFormatTranslateV38::blockToRctEmCand(), GctFormatTranslateMCLegacy::blockToRctEmCand(), GctFormatTranslateBase::checkBlock(), GctFormatTranslateV35::convertBlock(), GctFormatTranslateV38::convertBlock(), GctFormatTranslateMCLegacy::convertBlock(), operator<<(), and GctRawToDigi::unpack().

00043 { return m_nSamples; }

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 52 of file GctBlockHeader.h.

References m_valid.

Referenced by GctFormatTranslateBase::checkBlock(), and GctFormatTranslateBase::getBlockDescription().

00052 { return m_valid; }


Member Data Documentation

uint32_t GctBlockHeader::m_blockId [private]

The Block ID.

Definition at line 63 of file GctBlockHeader.h.

Referenced by blockId().

uint32_t GctBlockHeader::m_blockLength [private]

The fundamental block length (for 1 time sample).

Definition at line 65 of file GctBlockHeader.h.

Referenced by blockLength().

uint32_t GctBlockHeader::m_bxId [private]

The bunch-crossing ID.

Definition at line 69 of file GctBlockHeader.h.

Referenced by bxId().

uint32_t GctBlockHeader::m_eventId [private]

The event ID.

Definition at line 71 of file GctBlockHeader.h.

Referenced by eventId().

uint32_t GctBlockHeader::m_nSamples [private]

The number of time-samples.

Definition at line 67 of file GctBlockHeader.h.

Referenced by nSamples().

bool GctBlockHeader::m_valid [private]

Is this a valid block header.

Definition at line 73 of file GctBlockHeader.h.

Referenced by valid().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:21:09 2009 for CMSSW by  doxygen 1.5.4