9 #ifndef CondFormats_TotemReadoutObjects_TotemFramePosition
10 #define CondFormats_TotemReadoutObjects_TotemFramePosition
40 TotemFramePosition(
unsigned short SubSystemId,
unsigned short TOTFEDId,
unsigned short OptoRxId,
unsigned short GOHId,
unsigned short IdxInFiber) :
75 void setAllIDs(
unsigned short SubSystemId,
unsigned short TOTFEDId,
unsigned short OptoRxId,
unsigned short GOHId,
unsigned short IdxInFiber)
123 return ((flag == 0x1f) | (flag == 0x20) | (flag == 0x40));
static const std::string tagSSTrigger
TotemFramePosition(unsigned int pos=0)
don't use this constructor unless you have a good reason
void setIdxInFiber(unsigned short v)
unsigned short getIdxInFiber() const
static const std::string tagSST2
void setGOHId(unsigned short v)
unsigned short getTOTFEDId() const
void setOptoRxId(unsigned short v)
unsigned short getOptoRxId() const
static const unsigned int offsetSubSystemId
void setTOTFEDId(unsigned short v)
void printXML()
prints XML formatted DAQ channel to stdout
static const std::string tagSST1
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
static const std::string tagSSRP
unsigned short getGOHId() const
static const unsigned int offsetOptoRxId
bool operator==(const TotemFramePosition &pos) const
static const unsigned int maskTOTFEDId
SubSystemType
the official enumeration of DAQ subsystems
bool operator<(const TotemFramePosition &pos) const
unsigned short getFullOptoRxId() const
static const unsigned int maskGOHId
static const unsigned int offsetTOTFEDId
static const std::string tagSSFEC
static const std::string tagSSNone
XML sub-system tags.
void setAllIDs(unsigned short SubSystemId, unsigned short TOTFEDId, unsigned short OptoRxId, unsigned short GOHId, unsigned short IdxInFiber)
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
static const std::string tagSSTTC
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