#include <CTPPSPixelFramePosition.h>
Public Member Functions | |
CTPPSPixelFramePosition (unsigned int pos=0) | |
don't use this constructor unless you have a good reason More... | |
CTPPSPixelFramePosition (unsigned short FEDId, unsigned short FMCId, unsigned short ChannelIdx, unsigned short ROC) | |
the preferred constructor 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 27 of file CTPPSPixelFramePosition.h.
|
inline |
|
inline |
don't use this constructor unless you have a good reason
Definition at line 44 of file CTPPSPixelFramePosition.h.
|
inline |
Definition at line 46 of file CTPPSPixelFramePosition.h.
References maskFEDId, offsetFEDId, and rawPosition.
|
inlinestatic |
returns true if all attributes have been set
Definition at line 101 of file CTPPSPixelFramePosition.h.
|
inline |
Definition at line 58 of file CTPPSPixelFramePosition.h.
|
inline |
|
inline |
Definition at line 74 of file CTPPSPixelFramePosition.h.
|
inline |
|
inline |
Definition at line 66 of file CTPPSPixelFramePosition.h.
|
inline |
Definition at line 84 of file CTPPSPixelFramePosition.h.
|
inline |
Definition at line 86 of file CTPPSPixelFramePosition.h.
void CTPPSPixelFramePosition::printXML | ( | ) |
prints XML formatted DAQ channel to stdout
Definition at line 22 of file CTPPSPixelFramePosition.cc.
References sipixelconstants::functions::getROC().
|
private |
|
inline |
Definition at line 60 of file CTPPSPixelFramePosition.h.
|
inline |
Definition at line 52 of file CTPPSPixelFramePosition.h.
|
inline |
Definition at line 76 of file CTPPSPixelFramePosition.h.
|
inline |
Definition at line 68 of file CTPPSPixelFramePosition.h.
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 29 of file CTPPSPixelFramePosition.cc.
References RemoveAddSevLevel::flag, and findQualityFiles::v.
|
friend |
Definition at line 106 of file CTPPSPixelFramePosition.h.
|
friend |
Definition at line 106 of file CTPPSPixelFramePosition.h.
|
friend |
|
static |
Definition at line 35 of file CTPPSPixelFramePosition.h.
|
static |
Definition at line 37 of file CTPPSPixelFramePosition.h.
Referenced by ~CTPPSPixelFramePosition().
|
static |
Definition at line 36 of file CTPPSPixelFramePosition.h.
|
static |
Definition at line 34 of file CTPPSPixelFramePosition.h.
|
static |
Definition at line 35 of file CTPPSPixelFramePosition.h.
|
static |
Definition at line 37 of file CTPPSPixelFramePosition.h.
Referenced by ~CTPPSPixelFramePosition().
|
static |
Definition at line 36 of file CTPPSPixelFramePosition.h.
|
static |
Definition at line 34 of file CTPPSPixelFramePosition.h.
|
protected |
Definition at line 104 of file CTPPSPixelFramePosition.h.
Referenced by getRawPosition(), and ~CTPPSPixelFramePosition().