CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions
GctBlockHeader.h File Reference
#include <ostream>
#include <stdint.h>
#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 76 of file GctBlockHeader.h.

Function Documentation

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

Definition at line 18 of file GctBlockHeader.cc.

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

19 {
20  os << "ID " << std::hex << h.blockId() << " : Length : " << h.blockLength()
21  << " : Samples " << h.nSamples() << " : BX "
22  << h.bxId() << " : Event " << h.eventId() << std::dec;
23  return os;
24 }
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.