9 #ifndef CondFormats_CTPPSReadoutObjects_TotemFramePosition
10 #define CondFormats_CTPPSReadoutObjects_TotemFramePosition
44 TotemFramePosition(
unsigned short SubSystemId,
unsigned short TOTFEDId,
unsigned short OptoRxId,
unsigned short GOHId,
unsigned short IdxInFiber) :
128 return (flag == 0x1f);
TotemFramePosition(unsigned int pos=0)
don't use this constructor unless you have a good reason
void setIdxInFiber(unsigned short v)
unsigned short getFEDId() const
recomended getters and setters
unsigned short getIdxInFiber() const
void setGOHId(unsigned short v)
unsigned short getTOTFEDId() const
void setOptoRxId(unsigned short v)
static const unsigned int offsetFEDId
unsigned short getOptoRxId() const
static const unsigned int offsetSubSystemId
void setTOTFEDId(unsigned short v)
void printXML()
prints XML formatted DAQ channel to stdout
friend std::ostream & operator<<(std::ostream &s, const TotemFramePosition &fp)
unsigned int getRawPosition() const
don't use this method unless you have a good reason
static const unsigned int offsetIdxInFiber
void setSubSystemId(unsigned short v)
unsigned short getSubSystemId() const
the getters and setters below are deprecated
unsigned short getGOHId() const
static const unsigned int offsetOptoRxId
static const unsigned int maskFEDId
bool operator==(const TotemFramePosition &pos) const
static const unsigned int maskTOTFEDId
bool operator<(const TotemFramePosition &pos) const
static const unsigned int maskGOHId
static const unsigned int offsetTOTFEDId
TotemFramePosition(unsigned short SubSystemId, unsigned short TOTFEDId, unsigned short OptoRxId, unsigned short GOHId, unsigned short IdxInFiber)
the preferred constructor
static const unsigned int maskSubSystemId
static bool checkXMLAttributeFlag(unsigned char flag)
returns true if all attributes have been set
void setFEDId(unsigned short v)
unsigned char setXMLAttribute(const std::string &attribute, const std::string &value, unsigned char &flag)
static const unsigned int maskOptoRxId
static const unsigned int maskIdxInFiber
static const unsigned int offsetGOHId