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 );
46 UTIL::LCFixedObject<TimePixPixelModeNINTVals,
47 TimePixPixelModeNFLOATVals,
48 TimePixPixelModeNDOUBLEVals>(obj) { }
55 PixelKey(
int _chipID,
int _pixelID );
84 friend std::ostream& operator<<(std::ostream& out,
88 out <<
"TimePixPixelMode::PixelKey(" << pixelkey.
ChipID <<
", "
133 static std::string getRevision();
136 virtual const std::string getTypeName()
const{
137 return std::string(
"TimePixPixelMode");
140 virtual const std::string getDataDescription()
const{
141 return std::string(
"i:ChipID,i:PixelID,i:PixelStatusWord,i=PixelCalibration");
165 static const int MEDIPIX = 0;
166 static const int TOT = 1;
167 static const int ONEHIT = 2;
168 static const int TIMEPIX = 3;
170 static const int INTACT = 0;
171 static const int NOISY = 0x10000;
172 static const int DEAD = 0x20000;
177 void setChipID(
int Chip);
178 void setPixelID(
int Pixel);
void setPixelStatus(int Status)
Sets the status of this pixel.
Definition: TimePixPixelMode.cc:70
Definition: TimePixPixelMode.h:53
int getPixelMode()
Gets the mode of the pixel four possibilities: MEDIPIX, TOT, TIMEPIX, ONEHIT.
Definition: TimePixPixelMode.cc:32
void setPixelMode(int Mode)
Sets the mode of this pixel.
Definition: TimePixPixelMode.cc:62
bool operator<(PixelKey const pixelkey) const
PixelKey1 < PixelKey2: if chipID1 < chipID2 or if chipID1 == chipID2 and pixelID1 < pixelID2...
Definition: TimePixPixelMode.h:70
bool operator==(PixelKey const pixelkey) const
PixelKey1 == PixelKey2: if chipID1 == chipID2 and pixelID1 == pixelID2.
Definition: TimePixPixelMode.h:79
class to store the mapping of the pixel modes of the TimePix a TimePixPixelMode contains three intege...
Definition: TimePixPixelMode.h:37
int getPixelCalibration()
Gets the pixel calibration value to correct clock distribution.
Definition: TimePixPixelMode.cc:44
void setPixelCalibration(int Calibration)
Sets the calibration correction value.
Definition: TimePixPixelMode.cc:84
int PixelID
The pixelID.
Definition: TimePixPixelMode.h:58
void setPixelStatusWord(int StatusWord)
Sets the status word of a pixel.
Definition: TimePixPixelMode.cc:80
int getPixelStatus()
Gets the status of the pixel three possibilities: INTACT (default), NOISY, DEAD.
Definition: TimePixPixelMode.cc:36
PixelKey getPixelKey()
Gets the pixelKey of the pixel.
Definition: TimePixPixelMode.cc:48
int getPixelID()
Gets the pixelID of the pixel count begins with 0.
Definition: TimePixPixelMode.cc:28
int getPixelStatusWord()
Gets the status word which is a combination of the pixel mode and the pixel status.
Definition: TimePixPixelMode.cc:40
int getChipID()
Gets the chipID of the chip.
Definition: TimePixPixelMode.cc:24
int ChipID
The chipID.
Definition: TimePixPixelMode.h:57