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

EMCAL digit implementation. More...

#include <Digit.h>

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

Public Member Functions

 Digit ()=default
 
 Digit (Short_t tower, Double_t amplitudeGeV, Double_t time)
 
 Digit (Short_t tower, uint16_t noiseLG, uint16_t noiseHG, double time)
 
 ~Digit ()=default
 
bool operator< (const Digit &other) const
 
bool operator> (const Digit &other) const
 
bool operator== (const Digit &other) const
 
bool canAdd (const Digit other)
 
Digitoperator+= (const Digit &other)
 
void setTower (Short_t tower)
 
Short_t getTower () const
 
void setAmplitude (Double_t amplitude)
 
Double_t getAmplitude () const
 
void setEnergy (Double_t energy)
 
Double_t getEnergy () const
 
void setAmplitudeADC (Short_t amplitude, ChannelType_t ctype=ChannelType_t::HIGH_GAIN)
 
Int_t getAmplitudeADC (ChannelType_t ctype) const
 
Int_t getAmplitudeADC () const
 
void setType (ChannelType_t ctype)
 
ChannelType_t getType () const
 
void setHighGain ()
 
Bool_t getHighGain () const
 
void setLowGain ()
 
Bool_t getLowGain () const
 
void setTRU ()
 
Bool_t getTRU () const
 
void setLEDMon ()
 
Bool_t getLEDMon () const
 
void PrintStream (std::ostream &stream) const
 
void setNoiseLG (uint16_t noise)
 
uint16_t getNoiseLG () const
 
void setNoiseHG (uint16_t noise)
 
uint16_t getNoiseHG () const
 
void setNoiseTRU (uint16_t noise)
 
uint16_t getNoiseTRU () 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)
 

Friends

class boost::serialization::access
 
Digit operator+ (Digit lhs, const Digit &rhs)
 

Detailed Description

EMCAL digit implementation.

Definition at line 33 of file Digit.h.

Constructor & Destructor Documentation

◆ Digit() [1/3]

o2::emcal::Digit::Digit ( )
default

◆ Digit() [2/3]

Digit::Digit ( Short_t  tower,
Double_t  amplitudeGeV,
Double_t  time 
)

Definition at line 17 of file Digit.cxx.

◆ Digit() [3/3]

o2::emcal::Digit::Digit ( Short_t  tower,
uint16_t  noiseLG,
uint16_t  noiseHG,
double  time 
)

◆ ~Digit()

o2::emcal::Digit::~Digit ( )
default

Member Function Documentation

◆ canAdd()

bool o2::emcal::Digit::canAdd ( const Digit  other)
inline

Definition at line 46 of file Digit.h.

◆ getAmplitude()

Double_t Digit::getAmplitude ( ) const

Definition at line 101 of file Digit.cxx.

◆ getAmplitudeADC() [1/2]

Int_t o2::emcal::Digit::getAmplitudeADC ( ) const
inline

Definition at line 69 of file Digit.h.

◆ getAmplitudeADC() [2/2]

Int_t Digit::getAmplitudeADC ( ChannelType_t  ctype) const

Definition at line 66 of file Digit.cxx.

◆ getEnergy()

Double_t o2::emcal::Digit::getEnergy ( ) const
inline

Definition at line 65 of file Digit.h.

◆ getHighGain()

Bool_t o2::emcal::Digit::getHighGain ( ) const
inline

Definition at line 75 of file Digit.h.

◆ getLEDMon()

Bool_t o2::emcal::Digit::getLEDMon ( ) const
inline

Definition at line 84 of file Digit.h.

◆ getLowGain()

Bool_t o2::emcal::Digit::getLowGain ( ) const
inline

Definition at line 78 of file Digit.h.

◆ getNoiseHG()

uint16_t o2::emcal::Digit::getNoiseHG ( ) const
inline

Definition at line 92 of file Digit.h.

◆ getNoiseLG()

uint16_t o2::emcal::Digit::getNoiseLG ( ) const
inline

Definition at line 89 of file Digit.h.

◆ getNoiseTRU()

uint16_t o2::emcal::Digit::getNoiseTRU ( ) const
inline

Definition at line 95 of file Digit.h.

◆ getTower()

Short_t o2::emcal::Digit::getTower ( ) const
inline

Definition at line 59 of file Digit.h.

◆ getTRU()

Bool_t o2::emcal::Digit::getTRU ( ) const
inline

Definition at line 81 of file Digit.h.

◆ getType()

ChannelType_t Digit::getType ( ) const

Definition at line 125 of file Digit.cxx.

◆ operator+=()

Digit & Digit::operator+= ( const Digit other)

Definition at line 27 of file Digit.cxx.

◆ operator<()

bool o2::emcal::Digit::operator< ( const Digit other) const
inline

Definition at line 42 of file Digit.h.

◆ operator==()

bool o2::emcal::Digit::operator== ( const Digit other) const
inline

Definition at line 44 of file Digit.h.

◆ operator>()

bool o2::emcal::Digit::operator> ( const Digit other) const
inline

Definition at line 43 of file Digit.h.

◆ PrintStream()

void Digit::PrintStream ( std::ostream &  stream) const

Definition at line 140 of file Digit.cxx.

◆ setAmplitude()

void o2::emcal::Digit::setAmplitude ( Double_t  amplitude)
inline

Definition at line 61 of file Digit.h.

◆ setAmplitudeADC()

void Digit::setAmplitudeADC ( Short_t  amplitude,
ChannelType_t  ctype = ChannelType_t::HIGH_GAIN 
)

Definition at line 37 of file Digit.cxx.

◆ setEnergy()

void o2::emcal::Digit::setEnergy ( Double_t  energy)
inline

Definition at line 64 of file Digit.h.

◆ setHighGain()

void o2::emcal::Digit::setHighGain ( )
inline

Definition at line 74 of file Digit.h.

◆ setLEDMon()

void o2::emcal::Digit::setLEDMon ( )
inline

Definition at line 83 of file Digit.h.

◆ setLowGain()

void o2::emcal::Digit::setLowGain ( )
inline

Definition at line 77 of file Digit.h.

◆ setNoiseHG()

void o2::emcal::Digit::setNoiseHG ( uint16_t  noise)
inline

Definition at line 91 of file Digit.h.

◆ setNoiseLG()

void o2::emcal::Digit::setNoiseLG ( uint16_t  noise)
inline

Definition at line 88 of file Digit.h.

◆ setNoiseTRU()

void o2::emcal::Digit::setNoiseTRU ( uint16_t  noise)
inline

Definition at line 94 of file Digit.h.

◆ setTower()

void o2::emcal::Digit::setTower ( Short_t  tower)
inline

Definition at line 58 of file Digit.h.

◆ setTRU()

void o2::emcal::Digit::setTRU ( )
inline

Definition at line 80 of file Digit.h.

◆ setType()

void o2::emcal::Digit::setType ( ChannelType_t  ctype)
inline

Definition at line 71 of file Digit.h.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 98 of file Digit.h.

◆ operator+

Digit operator+ ( Digit  lhs,
const Digit rhs 
)
friend

Definition at line 52 of file Digit.h.


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