#include <TotemFramePosition.h>
Public Member Functions | |
unsigned short | getFEDId () const |
recomended getters and setters More... | |
unsigned short | getGOHId () const |
unsigned short | getIdxInFiber () const |
unsigned short | getOptoRxId () const |
unsigned int | getRawPosition () const |
don't use this method unless you have a good reason More... | |
unsigned short | getSubSystemId () const |
the getters and setters below are deprecated More... | |
unsigned short | getTOTFEDId () const |
bool | operator< (const TotemFramePosition &pos) const |
bool | operator== (const TotemFramePosition &pos) const |
void | printXML () |
prints XML formatted DAQ channel to stdout More... | |
void | setFEDId (unsigned short v) |
void | setGOHId (unsigned short v) |
void | setIdxInFiber (unsigned short v) |
void | setOptoRxId (unsigned short v) |
void | setSubSystemId (unsigned short v) |
void | setTOTFEDId (unsigned short v) |
unsigned char | setXMLAttribute (const std::string &attribute, const std::string &value, unsigned char &flag) |
TotemFramePosition (unsigned short SubSystemId, unsigned short TOTFEDId, unsigned short OptoRxId, unsigned short GOHId, unsigned short IdxInFiber) | |
the preferred constructor More... | |
TotemFramePosition (unsigned int pos=0) | |
don't use this constructor unless you have a good reason More... | |
~TotemFramePosition () | |
Static Public Member Functions | |
static bool | checkXMLAttributeFlag (unsigned char flag) |
returns true if all attributes have been set More... | |
Static Public Attributes | |
static const unsigned int | maskFEDId = 0x3FF |
static const unsigned int | maskGOHId = 0xF |
static const unsigned int | maskIdxInFiber = 0xF |
static const unsigned int | maskOptoRxId = 0x3 |
static const unsigned int | maskSubSystemId = 0x7 |
static const unsigned int | maskTOTFEDId = 0x1F |
static const unsigned int | offsetFEDId = 8 |
static const unsigned int | offsetGOHId = 4 |
static const unsigned int | offsetIdxInFiber = 0 |
static const unsigned int | offsetOptoRxId = 8 |
static const unsigned int | offsetSubSystemId = 15 |
static const unsigned int | offsetTOTFEDId = 10 |
Protected Attributes | |
unsigned int | rawPosition |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
std::ostream & | operator<< (std::ostream &s, const TotemFramePosition &fp) |
Uniquely identifies the DAQ channel through which a VFAT frame has been received.
The internal representation has the following structure:
* | 32 bits raw position | * | 12 bits | 2 bits | 10 bits | 4 bits | 4 bits | * | empty | empty | FED ID | GOH ID | index within fiber | *
In the old (TOTEM only) scheme, the FED ID was further split
* | 3 bits | 5 bits | 2 bits | * | SubSystem | TOTFED ID | OptoRx ID | *
IMPORTANT: This splitting is only supported for backward compatibility and should not be used anymore.
Definition at line 33 of file TotemFramePosition.h.
|
inline |
the preferred constructor
Definition at line 44 of file TotemFramePosition.h.
|
inline |
don't use this constructor unless you have a good reason
Definition at line 53 of file TotemFramePosition.h.
|
inline |
Definition at line 55 of file TotemFramePosition.h.
|
inlinestatic |
returns true if all attributes have been set
Definition at line 130 of file TotemFramePosition.h.
References RemoveAddSevLevel::flag.
|
inline |
recomended getters and setters
Definition at line 59 of file TotemFramePosition.h.
References maskFEDId, offsetFEDId, and rawPosition.
|
inline |
Definition at line 67 of file TotemFramePosition.h.
References maskGOHId, offsetGOHId, and rawPosition.
Referenced by RawToDigiConverter::run().
|
inline |
Definition at line 75 of file TotemFramePosition.h.
References maskIdxInFiber, offsetIdxInFiber, and rawPosition.
Referenced by RawToDigiConverter::run().
|
inline |
Definition at line 101 of file TotemFramePosition.h.
References maskOptoRxId, offsetOptoRxId, and rawPosition.
Referenced by RawToDigiConverter::run().
|
inline |
don't use this method unless you have a good reason
Definition at line 110 of file TotemFramePosition.h.
References rawPosition.
|
inline |
the getters and setters below are deprecated
Definition at line 85 of file TotemFramePosition.h.
References maskSubSystemId, offsetSubSystemId, and rawPosition.
Referenced by RawToDigiConverter::run().
|
inline |
Definition at line 93 of file TotemFramePosition.h.
References maskTOTFEDId, offsetTOTFEDId, and rawPosition.
Referenced by RawToDigiConverter::run().
|
inline |
Definition at line 112 of file TotemFramePosition.h.
References rawPosition.
|
inline |
Definition at line 114 of file TotemFramePosition.h.
References rawPosition.
void TotemFramePosition::printXML | ( | ) |
prints XML formatted DAQ channel to stdout
Definition at line 24 of file TotemFramePosition.cc.
References gather_cfg::cout.
|
private |
|
inline |
Definition at line 61 of file TotemFramePosition.h.
References maskFEDId, offsetFEDId, rawPosition, and findQualityFiles::v.
|
inline |
Definition at line 69 of file TotemFramePosition.h.
References maskGOHId, offsetGOHId, rawPosition, and findQualityFiles::v.
|
inline |
Definition at line 77 of file TotemFramePosition.h.
References maskIdxInFiber, offsetIdxInFiber, rawPosition, and findQualityFiles::v.
|
inline |
Definition at line 103 of file TotemFramePosition.h.
References maskOptoRxId, offsetOptoRxId, rawPosition, and findQualityFiles::v.
|
inline |
Definition at line 87 of file TotemFramePosition.h.
References maskSubSystemId, offsetSubSystemId, rawPosition, and findQualityFiles::v.
|
inline |
Definition at line 95 of file TotemFramePosition.h.
References maskTOTFEDId, offsetTOTFEDId, rawPosition, and findQualityFiles::v.
unsigned char TotemFramePosition::setXMLAttribute | ( | const std::string & | attribute, |
const std::string & | value, | ||
unsigned char & | flag | ||
) |
Sets attribute with XML name 'attribute' and value 'value'. Also turns on attribute presents bit in the flag parameter returns 0 if the attribute is known, non-zero value else
Definition at line 30 of file TotemFramePosition.cc.
References RemoveAddSevLevel::flag, and findQualityFiles::v.
|
friend |
Definition at line 135 of file TotemFramePosition.h.
|
friend |
Definition at line 135 of file TotemFramePosition.h.
|
friend |
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 18 of file TotemFramePosition.cc.
|
static |
Definition at line 37 of file TotemFramePosition.h.
Referenced by TotemT2FramePosition::getFEDId(), getFEDId(), TotemT2FramePosition::setFEDId(), and setFEDId().
|
static |
Definition at line 36 of file TotemFramePosition.h.
Referenced by TotemT2FramePosition::getGOHId(), getGOHId(), TotemT2FramePosition::setGOHId(), and setGOHId().
|
static |
Definition at line 35 of file TotemFramePosition.h.
Referenced by TotemT2FramePosition::getIdxInFiber(), getIdxInFiber(), TotemT2FramePosition::setIdxInFiber(), and setIdxInFiber().
|
static |
Definition at line 39 of file TotemFramePosition.h.
Referenced by getOptoRxId(), and setOptoRxId().
|
static |
Definition at line 41 of file TotemFramePosition.h.
Referenced by getSubSystemId(), and setSubSystemId().
|
static |
Definition at line 40 of file TotemFramePosition.h.
Referenced by getTOTFEDId(), and setTOTFEDId().
|
static |
Definition at line 37 of file TotemFramePosition.h.
Referenced by TotemT2FramePosition::getFEDId(), getFEDId(), TotemT2FramePosition::setFEDId(), and setFEDId().
|
static |
Definition at line 36 of file TotemFramePosition.h.
Referenced by TotemT2FramePosition::getGOHId(), getGOHId(), TotemT2FramePosition::setGOHId(), and setGOHId().
|
static |
Definition at line 35 of file TotemFramePosition.h.
Referenced by TotemT2FramePosition::getIdxInFiber(), getIdxInFiber(), TotemT2FramePosition::setIdxInFiber(), and setIdxInFiber().
|
static |
Definition at line 39 of file TotemFramePosition.h.
Referenced by getOptoRxId(), and setOptoRxId().
|
static |
Definition at line 41 of file TotemFramePosition.h.
Referenced by getSubSystemId(), and setSubSystemId().
|
static |
Definition at line 40 of file TotemFramePosition.h.
Referenced by getTOTFEDId(), and setTOTFEDId().
|
protected |
Definition at line 133 of file TotemFramePosition.h.
Referenced by getFEDId(), getGOHId(), getIdxInFiber(), getOptoRxId(), getRawPosition(), getSubSystemId(), getTOTFEDId(), operator<(), operator==(), setFEDId(), setGOHId(), setIdxInFiber(), setOptoRxId(), setSubSystemId(), and setTOTFEDId().