1 #ifndef TimePixPixelMode_h
2 #define TimePixPixelMode_h 1
12 #include "UTIL/LCFixedObject.h"
15 #define TimePixPixelModeNINTVals 4
16 #define TimePixPixelModeNFLOATVals 0
17 #define TimePixPixelModeNDOUBLEVals 0
19 namespace tpcconddata{
21 class TimePixPixelMode;
38 TimePixPixelModeNFLOATVals,
39 TimePixPixelModeNDOUBLEVals> {
43 TimePixPixelMode(
int ChipID = 0,
int PixelID = 0,
int PixelMode = 0,
int PixelStatus = 0,
int PixelCalibration = 0 );
55 PixelKey(
int _chipID,
int _pixelID );
88 out <<
"TimePixPixelMode::PixelKey(" << pixelkey.
ChipID <<
", "
137 return std::string(
"TimePixPixelMode");
141 return std::string(
"i:ChipID,i:PixelID,i:PixelStatusWord,i=PixelCalibration");
172 static const int DEAD = 0x20000;
static std::string getRevision()
void setPixelStatus(int Status)
Sets the status of this pixel.
TimePixPixelMode(int ChipID=0, int PixelID=0, int PixelMode=0, int PixelStatus=0, int PixelCalibration=0)
int getPixelMode()
Gets the mode of the pixel four possibilities: MEDIPIX, TOT, TIMEPIX, ONEHIT.
virtual ~TimePixPixelMode()
void setPixelID(int Pixel)
bool operator()(PixelKey *pk1, PixelKey *pk2)
void setPixelMode(int Mode)
Sets the mode of this pixel.
bool operator<(PixelKey const pixelkey) const
PixelKey1 < PixelKey2: if chipID1 < chipID2 or if chipID1 == chipID2 and pixelID1 < pixelID2...
bool operator==(PixelKey const pixelkey) const
PixelKey1 == PixelKey2: if chipID1 == chipID2 and pixelID1 == pixelID2.
class to store the mapping of the pixel modes of the TimePix a TimePixPixelMode contains three intege...
#define TimePixPixelModeNDOUBLEVals
int getPixelCalibration()
Gets the pixel calibration value to correct clock distribution.
virtual const std::string getDataDescription() const
#define TimePixPixelModeNINTVals
void setPixelCalibration(int Calibration)
Sets the calibration correction value.
void setPixelStatusWord(int StatusWord)
Sets the status word of a pixel.
int getPixelStatus()
Gets the status of the pixel three possibilities: INTACT (default), NOISY, DEAD.
PixelKey getPixelKey()
Gets the pixelKey of the pixel.
PixelKey(int _chipID, int _pixelID)
virtual const std::string getTypeName() const
int getPixelID()
Gets the pixelID of the pixel count begins with 0.
int getPixelStatusWord()
Gets the status word which is a combination of the pixel mode and the pixel status.
int getChipID()
Gets the chipID of the chip.
#define TimePixPixelModeNFLOATVals
TimePixPixelMode(EVENT::LCObject *obj)
friend std::ostream & operator<<(std::ostream &out, const TimePixPixelMode::PixelKey &pixelkey)