CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Typedefs | Functions
GctBlockHeader.h File Reference
#include <ostream>
#include <cstdint>
#include <vector>

Go to the source code of this file.

Classes

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

Typedefs

typedef std::vector
< GctBlockHeader
GctBlockHeaderCollection
 

Functions

std::ostream & operator<< (std::ostream &os, const GctBlockHeader &h)
 

Typedef Documentation

Definition at line 63 of file GctBlockHeader.h.

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const GctBlockHeader h 
)

Definition at line 12 of file GctBlockHeader.cc.

References GctBlockHeader::blockId(), GctBlockHeader::blockLength(), GctBlockHeader::bxId(), TauDecayModes::dec, GctBlockHeader::eventId(), and GctBlockHeader::nSamples().

12  {
13  os << "ID " << std::hex << h.blockId() << " : Length : " << h.blockLength() << " : Samples " << h.nSamples()
14  << " : BX " << h.bxId() << " : Event " << h.eventId() << std::dec;
15  return os;
16 }
uint32_t bxId() const
Get the bunch crossing ID.
uint32_t eventId() const
Get the event ID.
uint32_t blockLength() const
Get the fundamental block length (for 1 time sample)
uint32_t blockId() const
Get the block ID.
uint32_t nSamples() const
Get the number of time samples.