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

#include <Digit.h>

Inherits o2::dataformats::TimeStamp< T >.

Inherited by o2::tpc::DigitAdd.

Public Member Functions

 GPUdDefault () Digit()=default
 Default constructor.
 
 GPUdi () Digit(int cru
 
 GPUdDefault () ~Digit()=default
 Destructor.
 
 GPUdi () int getCharge() const
 
 GPUdi () float getChargeFloat() const
 
 GPUdi () void setCharge(float q)
 
 GPUdi () int getCRU() const
 
 GPUdi () int getRow() const
 
 GPUdi () int getPad() const
 
- Public Member Functions inherited from o2::dataformats::TimeStamp< T >
 GPUhdDefault () TimeStamp()=default
 
 GPUhdDefault () ~TimeStamp()=default
 
 GPUdi () TimeStamp(T time)
 
 GPUhdi () T getTimeStamp() const
 
 GPUdi () void setTimeStamp(T t)
 
 GPUdi () bool operator
 
 ClassDefNV (TimeStamp, 1)
 

Public Attributes

float charge
 
float int row
 
float int int pad
 
float int int int time
 

Protected Member Functions

 ClassDefNV (Digit, 1)
 

Protected Attributes

float mCharge = 0.f
 ADC value of the Digit.
 
unsigned short mCRU = USHRT_MAX
 CRU of the Digit.
 
unsigned char mRow = UCHAR_MAX
 Global pad row of the Digit.
 
unsigned char mPad = UCHAR_MAX
 Pad of the Digit.
 

Detailed Description

This is the definition of the common Digit object, which is the final entity after Digitization Its coordinates are defined by the CRU, the time bin, the global pad row and the pad. It holds the ADC value of a given pad on the pad plane.

Definition at line 35 of file Digit.h.

Member Function Documentation

◆ ClassDefNV()

o2::tpc::Digit::ClassDefNV ( Digit  ,
 
)
protected

◆ GPUdDefault() [1/2]

o2::tpc::Digit::GPUdDefault ( )
default

Default constructor.

◆ GPUdDefault() [2/2]

o2::tpc::Digit::GPUdDefault ( )
default

Destructor.

◆ GPUdi() [1/7]

o2::tpc::Digit::GPUdi ( )

Constructor, initializing values for position, charge, time and common mode

Parameters
cruCRU of the Digit
chargeAccumulated charge of Digit
rowGlobal pad row in which the Digit was created
padPad in which the Digit was created

◆ GPUdi() [2/7]

o2::tpc::Digit::GPUdi ( ) const
inline

Get the accumulated charged of the Digit as a float

Returns
charge of the Digit as a float

Definition at line 58 of file Digit.h.

◆ GPUdi() [3/7]

o2::tpc::Digit::GPUdi ( ) const
inline

Get the accumulated charged of the Digit in ADC counts. The conversion is such that the decimals are simply stripped

Returns
charge of the Digit

Definition at line 54 of file Digit.h.

◆ GPUdi() [4/7]

o2::tpc::Digit::GPUdi ( ) const
inline

Get the CRU of the Digit

Returns
CRU of the Digit

Definition at line 64 of file Digit.h.

◆ GPUdi() [5/7]

o2::tpc::Digit::GPUdi ( ) const
inline

Get the pad of the Digit

Returns
pad of the Digit

Definition at line 72 of file Digit.h.

◆ GPUdi() [6/7]

o2::tpc::Digit::GPUdi ( ) const
inline

Get the global pad row of the Digit

Returns
Global pad row of the Digit

Definition at line 68 of file Digit.h.

◆ GPUdi() [7/7]

o2::tpc::Digit::GPUdi ( )
inline

Definition at line 60 of file Digit.h.

Member Data Documentation

◆ charge

float o2::tpc::Digit::charge

Definition at line 46 of file Digit.h.

◆ mCharge

float o2::tpc::Digit::mCharge = 0.f
protected

ADC value of the Digit.

Definition at line 75 of file Digit.h.

◆ mCRU

unsigned short o2::tpc::Digit::mCRU = USHRT_MAX
protected

CRU of the Digit.

Definition at line 76 of file Digit.h.

◆ mPad

unsigned char o2::tpc::Digit::mPad = UCHAR_MAX
protected

Pad of the Digit.

Definition at line 78 of file Digit.h.

◆ mRow

unsigned char o2::tpc::Digit::mRow = UCHAR_MAX
protected

Global pad row of the Digit.

Definition at line 77 of file Digit.h.

◆ pad

float int int o2::tpc::Digit::pad

Definition at line 46 of file Digit.h.

◆ row

float int o2::tpc::Digit::row

Definition at line 46 of file Digit.h.

◆ time

float int int int o2::tpc::Digit::time

Definition at line 46 of file Digit.h.


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