test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
TotemFramePosition.cc File Reference
#include "CondFormats/CTPPSReadoutObjects/interface/TotemFramePosition.h"
#include <iomanip>
#include <cstdlib>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const TotemFramePosition &fp)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const TotemFramePosition fp 
)

Condensed representation of the DAQ channel. prints 5-digit hex number, the digits correspond to SubSystem, TOTFED ID, OptoRx ID, GOH ID, index within fiber in this order

Definition at line 26 of file TotemFramePosition.cc.

References TauDecayModes::dec, TotemFramePosition::getGOHId(), TotemFramePosition::getIdxInFiber(), TotemFramePosition::getOptoRxId(), TotemFramePosition::getSubSystemId(), and TotemFramePosition::getTOTFEDId().

27 {
28  return s << std::hex
29  << fp.getSubSystemId() << ":"
30  << std::setw(2) << std::setfill('0')
31  << fp.getTOTFEDId() << ":"
32  << fp.getOptoRxId() << ":"
33  << fp.getGOHId() << ":"
34  << fp.getIdxInFiber()
35  << std::dec;
36 }
unsigned short getIdxInFiber() const
unsigned short getTOTFEDId() const
unsigned short getOptoRxId() const
unsigned short getSubSystemId() const
unsigned short getGOHId() const