#include <TotemFramePosition.h>
Public Types | |
enum | SubSystemType { ssNone =0, ssT1 =1, ssT2 =2, ssRP =3, ssTrigger =4, ssTTC =5, ssFEC =6 } |
the official enumeration of DAQ subsystems More... | |
Public Member Functions | |
unsigned short | getFullOptoRxId () const |
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 |
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 | setAllIDs (unsigned short SubSystemId, unsigned short TOTFEDId, unsigned short OptoRxId, unsigned short GOHId, unsigned short IdxInFiber) |
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 | 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 | 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 |
static const std::string | tagSSFEC = "FEC" |
static const std::string | tagSSNone = "None" |
XML sub-system tags. More... | |
static const std::string | tagSSRP = "RP" |
static const std::string | tagSST1 = "T1" |
static const std::string | tagSST2 = "T2" |
static const std::string | tagSSTrigger = "Trigger" |
static const std::string | tagSSTTC = "TTC" |
Protected Attributes | |
unsigned int | rawPosition |
Friends | |
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 | 3 bits | 5 bits | 2 bits | 4 bits | 4 bits | * | empty | empty | SubSystem | TOTFED ID | OptoRx ID | GOH ID | index within fiber | * | | (this part is encoded in OptoRx header) | | *
According to the convention SubSystemId goes from 1 to 6, TOTFEDId from 1 to 21 and OptoRx from 1 to 3.
Definition at line 27 of file TotemFramePosition.h.
the official enumeration of DAQ subsystems
Enumerator | |
---|---|
ssNone | |
ssT1 | |
ssT2 | |
ssRP | |
ssTrigger | |
ssTTC | |
ssFEC |
Definition at line 31 of file TotemFramePosition.h.
|
inline |
the preferred constructor
Definition at line 40 of file TotemFramePosition.h.
|
inline |
don't use this constructor unless you have a good reason
Definition at line 46 of file TotemFramePosition.h.
|
inline |
Definition at line 50 of file TotemFramePosition.h.
|
inlinestatic |
returns true if all attributes have been set
Definition at line 121 of file TotemFramePosition.h.
Referenced by TotemDAQMappingESSourceXML::ChipFramePosition().
|
inline |
|
inline |
Definition at line 57 of file TotemFramePosition.h.
References maskGOHId, offsetGOHId, and rawPosition.
Referenced by operator<<().
|
inline |
Definition at line 58 of file TotemFramePosition.h.
References maskIdxInFiber, offsetIdxInFiber, and rawPosition.
Referenced by operator<<().
|
inline |
Definition at line 56 of file TotemFramePosition.h.
References maskOptoRxId, offsetOptoRxId, and rawPosition.
Referenced by operator<<().
|
inline |
don't use this method unless you have a good reason
Definition at line 82 of file TotemFramePosition.h.
References rawPosition.
|
inline |
Definition at line 54 of file TotemFramePosition.h.
References maskSubSystemId, offsetSubSystemId, and rawPosition.
Referenced by operator<<().
|
inline |
Definition at line 55 of file TotemFramePosition.h.
References maskTOTFEDId, offsetTOTFEDId, and rawPosition.
Referenced by operator<<().
|
inline |
|
inline |
void TotemFramePosition::printXML | ( | ) |
prints XML formatted DAQ channel to stdout
Definition at line 40 of file TotemFramePosition.cc.
References gather_cfg::cout, TauDecayModes::dec, and contentValuesCheck::ss.
|
inline |
Definition at line 75 of file TotemFramePosition.h.
References offsetGOHId, offsetIdxInFiber, offsetOptoRxId, offsetSubSystemId, offsetTOTFEDId, and rawPosition.
|
inline |
Definition at line 69 of file TotemFramePosition.h.
References maskGOHId, offsetGOHId, and rawPosition.
|
inline |
Definition at line 72 of file TotemFramePosition.h.
References maskIdxInFiber, offsetIdxInFiber, and rawPosition.
|
inline |
Definition at line 66 of file TotemFramePosition.h.
References maskOptoRxId, offsetOptoRxId, and rawPosition.
|
inline |
Definition at line 60 of file TotemFramePosition.h.
References maskSubSystemId, offsetSubSystemId, and rawPosition.
|
inline |
Definition at line 63 of file TotemFramePosition.h.
References maskTOTFEDId, offsetTOTFEDId, and rawPosition.
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 65 of file TotemFramePosition.cc.
References NULL, contentValuesCheck::ss, and findQualityFiles::v.
Referenced by TotemDAQMappingESSourceXML::ChipFramePosition().
|
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 26 of file TotemFramePosition.cc.
|
static |
Definition at line 34 of file TotemFramePosition.h.
Referenced by getGOHId(), and setGOHId().
|
static |
Definition at line 33 of file TotemFramePosition.h.
Referenced by getIdxInFiber(), and setIdxInFiber().
|
static |
Definition at line 35 of file TotemFramePosition.h.
Referenced by getOptoRxId(), and setOptoRxId().
|
static |
Definition at line 37 of file TotemFramePosition.h.
Referenced by getSubSystemId(), and setSubSystemId().
|
static |
Definition at line 36 of file TotemFramePosition.h.
Referenced by getTOTFEDId(), and setTOTFEDId().
|
static |
Definition at line 34 of file TotemFramePosition.h.
Referenced by getGOHId(), setAllIDs(), and setGOHId().
|
static |
Definition at line 33 of file TotemFramePosition.h.
Referenced by getIdxInFiber(), setAllIDs(), and setIdxInFiber().
|
static |
Definition at line 35 of file TotemFramePosition.h.
Referenced by getOptoRxId(), setAllIDs(), and setOptoRxId().
|
static |
Definition at line 37 of file TotemFramePosition.h.
Referenced by getSubSystemId(), setAllIDs(), and setSubSystemId().
|
static |
Definition at line 36 of file TotemFramePosition.h.
Referenced by getTOTFEDId(), setAllIDs(), and setTOTFEDId().
|
protected |
Definition at line 132 of file TotemFramePosition.h.
Referenced by getFullOptoRxId(), getGOHId(), getIdxInFiber(), getOptoRxId(), getRawPosition(), getSubSystemId(), getTOTFEDId(), operator<(), operator==(), setAllIDs(), setGOHId(), setIdxInFiber(), setOptoRxId(), setSubSystemId(), and setTOTFEDId().
|
static |
Definition at line 110 of file TotemFramePosition.h.
|
static |
XML sub-system tags.
Definition at line 104 of file TotemFramePosition.h.
|
static |
Definition at line 108 of file TotemFramePosition.h.
|
static |
Definition at line 106 of file TotemFramePosition.h.
|
static |
Definition at line 107 of file TotemFramePosition.h.
|
static |
Definition at line 105 of file TotemFramePosition.h.
|
static |
Definition at line 109 of file TotemFramePosition.h.