Project
Loading...
Searching...
No Matches
o2::iotof::Digit Class Reference

#include <Digit.h>

Inherits o2::itsmft::Digit.

Inherited by o2::iotof::LabeledDigit.

Public Member Functions

 ~Digit ()=default
 
 Digit (UShort_t chipindex=0, UShort_t row=0, UShort_t col=0, Int_t charge=0, double time=0., ULong64_t bc=0, Int_t tdc=0)
 
void setTime (double time)
 
double getTime () const
 
ULong64_t getBc () const
 
Int_t getTdc () const
 
- Public Member Functions inherited from o2::itsmft::Digit
 Digit (UShort_t chipindex=0, UShort_t row=0, UShort_t col=0, Int_t charge=0)
 Constructor, initializing values for position, charge and readout frame.
 
 ~Digit ()=default
 Destructor.
 
UShort_t getChipIndex () const
 Get the index of the chip.
 
UShort_t getColumn () const
 Get the column of the pixel within the chip.
 
UShort_t getRow () const
 Get the row of the pixel within the chip.
 
Int_t getCharge () const
 Get the accumulated charged of the digit.
 
void setChipIndex (UShort_t index)
 Set the index of the chip.
 
void setPixelIndex (UShort_t row, UShort_t col)
 Set the index of the pixel within the chip.
 
void setCharge (Int_t charge)
 Set the charge of the digit.
 
void addCharge (int charge)
 Add charge to the digit, registering the label if provided.
 
std::ostream & print (std::ostream &output) const
 Print function: Print basic digit information on the output stream.
 

Static Public Member Functions

static DigitKey getOrderingKey (ULong64_t bc, UInt_t tdc, uint16_t row, uint16_t col)
 

Detailed Description

Definition at line 41 of file Digit.h.

Constructor & Destructor Documentation

◆ ~Digit()

o2::iotof::Digit::~Digit ( )
default

◆ Digit()

o2::iotof::Digit::Digit ( UShort_t  chipindex = 0,
UShort_t  row = 0,
UShort_t  col = 0,
Int_t  charge = 0,
double  time = 0.,
ULong64_t  bc = 0,
Int_t  tdc = 0 
)
inline

Definition at line 45 of file Digit.h.

Member Function Documentation

◆ getBc()

ULong64_t o2::iotof::Digit::getBc ( ) const
inline

Definition at line 53 of file Digit.h.

◆ getOrderingKey()

static DigitKey o2::iotof::Digit::getOrderingKey ( ULong64_t  bc,
UInt_t  tdc,
uint16_t  row,
uint16_t  col 
)
inlinestatic

Definition at line 56 of file Digit.h.

◆ getTdc()

Int_t o2::iotof::Digit::getTdc ( ) const
inline

Definition at line 54 of file Digit.h.

◆ getTime()

double o2::iotof::Digit::getTime ( ) const
inline

Definition at line 52 of file Digit.h.

◆ setTime()

void o2::iotof::Digit::setTime ( double  time)
inline

Definition at line 49 of file Digit.h.


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