#include <CTPPSPixelFramePosition.h>
Public Member Functions | |
CTPPSPixelFramePosition (unsigned short FEDId, unsigned short FMCId, unsigned short ChannelIdx, unsigned short ROC) | |
the preferred constructor More... | |
CTPPSPixelFramePosition (unsigned int pos=0) | |
don't use this constructor unless you have a good reason More... | |
unsigned short | getChannelIdx () const |
unsigned short | getFEDId () const |
recomended getters and setters More... | |
unsigned short | getFMCId () const |
unsigned int | getRawPosition () const |
unsigned short | getROC () const |
bool | operator< (const CTPPSPixelFramePosition &pos) const |
bool | operator== (const CTPPSPixelFramePosition &pos) const |
void | printXML () |
prints XML formatted DAQ channel to stdout More... | |
void | setChannelIdx (unsigned short v) |
void | setFEDId (unsigned short v) |
void | setFMCId (unsigned short v) |
void | setROC (unsigned short v) |
unsigned char | setXMLAttribute (const std::string &attribute, const std::string &value, unsigned char &flag) |
~CTPPSPixelFramePosition () | |
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 | maskChannelIdx = 0x3F |
static const unsigned int | maskFEDId = 0xFFF |
static const unsigned int | maskFMCId = 0x1 |
static const unsigned int | maskROC = 0x3 |
static const unsigned int | offsetChannelIdx = 2 |
static const unsigned int | offsetFEDId = 9 |
static const unsigned int | offsetFMCId = 8 |
static const unsigned int | offsetROC = 0 |
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 CTPPSPixelFramePosition &fp) |
Uniquely identifies the DAQ channel through which a ROC frame has been received.
The internal representation has the following structure:
* | 32 bits raw position | * | 11 bits | 12 bits | 1 bit | 6 bits | 2bits | * | empty | FED ID | FMC 0-1 | fiber index 0-12 | ROC 0-2 | *
Definition at line 28 of file CTPPSPixelFramePosition.h.
|
inline |
the preferred constructor
Definition at line 36 of file CTPPSPixelFramePosition.h.
|
inline |
don't use this constructor unless you have a good reason
Definition at line 40 of file CTPPSPixelFramePosition.h.
|
inline |
Definition at line 42 of file CTPPSPixelFramePosition.h.
|
inlinestatic |
returns true if all attributes have been set
Definition at line 97 of file CTPPSPixelFramePosition.h.
Referenced by CTPPSPixelDAQMappingESSourceXML::ChipFramePosition().
|
inline |
Definition at line 54 of file CTPPSPixelFramePosition.h.
References maskChannelIdx, and rawPosition.
Referenced by operator<<().
|
inline |
recomended getters and setters
Definition at line 46 of file CTPPSPixelFramePosition.h.
References maskFEDId, and rawPosition.
Referenced by operator<<().
|
inline |
Definition at line 70 of file CTPPSPixelFramePosition.h.
References maskFMCId, and rawPosition.
Referenced by operator<<().
|
inline |
Definition at line 78 of file CTPPSPixelFramePosition.h.
References rawPosition.
|
inline |
Definition at line 62 of file CTPPSPixelFramePosition.h.
References maskROC, and rawPosition.
Referenced by operator<<().
|
inline |
Definition at line 80 of file CTPPSPixelFramePosition.h.
References rawPosition.
|
inline |
Definition at line 82 of file CTPPSPixelFramePosition.h.
References RemoveAddSevLevel::flag, personalPlayback::fp, operator<<, printXML(), rawPosition, alignCSCRings::s, setXMLAttribute(), and AlCaHLTBitMon_QueryRunRegistry::string.
void CTPPSPixelFramePosition::printXML | ( | ) |
prints XML formatted DAQ channel to stdout
Definition at line 23 of file CTPPSPixelFramePosition.cc.
Referenced by operator==().
|
private |
|
inline |
Definition at line 56 of file CTPPSPixelFramePosition.h.
References maskChannelIdx, offsetChannelIdx, and rawPosition.
|
inline |
Definition at line 48 of file CTPPSPixelFramePosition.h.
References maskFEDId, offsetFEDId, and rawPosition.
|
inline |
Definition at line 72 of file CTPPSPixelFramePosition.h.
References maskFMCId, offsetFMCId, and rawPosition.
|
inline |
Definition at line 64 of file CTPPSPixelFramePosition.h.
References maskROC, offsetROC, and rawPosition.
unsigned char CTPPSPixelFramePosition::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 CTPPSPixelFramePosition.cc.
References findQualityFiles::v.
Referenced by CTPPSPixelDAQMappingESSourceXML::ChipFramePosition(), and operator==().
|
friend |
Definition at line 102 of file CTPPSPixelFramePosition.h.
|
friend |
Definition at line 102 of file CTPPSPixelFramePosition.h.
|
friend |
Condensed representation of the DAQ channel. prints 5-digit hex number,
Definition at line 17 of file CTPPSPixelFramePosition.cc.
Referenced by operator==().
|
static |
Definition at line 31 of file CTPPSPixelFramePosition.h.
Referenced by getChannelIdx(), and setChannelIdx().
|
static |
Definition at line 33 of file CTPPSPixelFramePosition.h.
Referenced by getFEDId(), and setFEDId().
|
static |
Definition at line 32 of file CTPPSPixelFramePosition.h.
Referenced by getFMCId(), and setFMCId().
|
static |
Definition at line 30 of file CTPPSPixelFramePosition.h.
|
static |
Definition at line 31 of file CTPPSPixelFramePosition.h.
Referenced by setChannelIdx().
|
static |
Definition at line 33 of file CTPPSPixelFramePosition.h.
Referenced by setFEDId().
|
static |
Definition at line 32 of file CTPPSPixelFramePosition.h.
Referenced by setFMCId().
|
static |
Definition at line 30 of file CTPPSPixelFramePosition.h.
Referenced by setROC().
|
protected |
Definition at line 100 of file CTPPSPixelFramePosition.h.
Referenced by getChannelIdx(), getFEDId(), getFMCId(), getRawPosition(), getROC(), operator<(), operator==(), setChannelIdx(), setFEDId(), setFMCId(), and setROC().