MarlinTPC  1.2.0
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
tpcconddata::TimePixPixelMode Class Reference

class to store the mapping of the pixel modes of the TimePix a TimePixPixelMode contains three integers, the ChipID, the PixelID and the PixelMode furthermore it contains a struct called PixelKey of ChipID and PixelID as the key for the map More...

#include <TimePixPixelMode.h>

Inheritance diagram for tpcconddata::TimePixPixelMode:

Classes

struct  PixelKey
 

Public Member Functions

 TimePixPixelMode (int ChipID=0, int PixelID=0, int PixelMode=0, int PixelStatus=0, int PixelCalibration=0)
 
 TimePixPixelMode (EVENT::LCObject *obj)
 
int getChipID ()
 Gets the chipID of the chip.
 
int getPixelID ()
 Gets the pixelID of the pixel count begins with 0.
 
int getPixelMode ()
 Gets the mode of the pixel four possibilities: MEDIPIX, TOT, TIMEPIX, ONEHIT.
 
int getPixelStatus ()
 Gets the status of the pixel three possibilities: INTACT (default), NOISY, DEAD.
 
int getPixelStatusWord ()
 Gets the status word which is a combination of the pixel mode and the pixel status.
 
int getPixelCalibration ()
 Gets the pixel calibration value to correct clock distribution.
 
PixelKey getPixelKey ()
 Gets the pixelKey of the pixel. More...
 
virtual const std::string getTypeName () const
 
virtual const std::string getDataDescription () const
 
void setPixelMode (int Mode)
 Sets the mode of this pixel. More...
 
void setPixelStatus (int Status)
 Sets the status of this pixel. More...
 
void setPixelStatusWord (int StatusWord)
 Sets the status word of a pixel.
 
void setPixelCalibration (int Calibration)
 Sets the calibration correction value.
 

Static Public Member Functions

static std::string getRevision ()
 

Static Public Attributes

static const int MEDIPIX = 0
 
static const int TOT = 1
 
static const int ONEHIT = 2
 
static const int TIMEPIX = 3
 
static const int INTACT = 0
 
static const int NOISY = 0x10000
 
static const int DEAD = 0x20000
 

Protected Member Functions

void setChipID (int Chip)
 
void setPixelID (int Pixel)
 

Detailed Description

class to store the mapping of the pixel modes of the TimePix a TimePixPixelMode contains three integers, the ChipID, the PixelID and the PixelMode furthermore it contains a struct called PixelKey of ChipID and PixelID as the key for the map

the possible modes are: MEDIPIX = 0 TOT = 1 ONEHIT = 2 TIMEPIX = 3

Member Function Documentation

TimePixPixelMode::PixelKey tpcconddata::TimePixPixelMode::getPixelKey ( )

Gets the pixelKey of the pixel.

The PixelKey consists of the chipID and the pixelID.

Referenced by marlintpc::TimePixHighTOTAnalyserProcessor::updateTimePixModeMap().

void tpcconddata::TimePixPixelMode::setPixelMode ( int  Mode)

Sets the mode of this pixel.

From the given int only the bits describing the mode are taken to replace the mode bits in the status word. This means you can pass the Mode or a complete StatusWord as argument.

void tpcconddata::TimePixPixelMode::setPixelStatus ( int  Status)

Sets the status of this pixel.

From the given int only the bits describing the status are taken to replace the status bits in the status word. This means you can pass the Status or a complete StatusWord as argument.


The documentation for this class was generated from the following files: