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

EMCAL labeled digit implementation. More...

#include <LabeledDigit.h>

Public Member Functions

 LabeledDigit ()=default
 
 LabeledDigit (Digit digit, o2::emcal::MCLabel label)
 
 LabeledDigit (Short_t tower, Double_t amplitudeGeV, Double_t time, o2::emcal::MCLabel label)
 
 LabeledDigit (Short_t tower, uint16_t noiseLG, uint16_t noiseHG, Double_t time, o2::emcal::MCLabel label)
 
 ~LabeledDigit ()=default
 
void setDigit (Digit d)
 
Digit getDigit () const
 
void addLabel (o2::emcal::MCLabel l)
 
Int_t getNumberOfLabels () const
 
std::vector< o2::emcal::MCLabelgetLabels () const
 
bool operator< (const LabeledDigit &other) const
 
bool operator> (const LabeledDigit &other) const
 
bool operator== (const LabeledDigit &other) const
 
bool canAdd (const LabeledDigit other)
 
LabeledDigitoperator+= (const LabeledDigit &other)
 
void setTimeStamp (Double_t time)
 
Double_t getTimeStamp () const
 
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 ()
 
void setAmplitudeADC (Short_t amplitude, ChannelType_t ctype=ChannelType_t::HIGH_GAIN)
 
Int_t getAmplitudeADC (ChannelType_t ctype=ChannelType_t::HIGH_GAIN) 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
 

Friends

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

Detailed Description

EMCAL labeled digit implementation.

Definition at line 34 of file LabeledDigit.h.

Constructor & Destructor Documentation

◆ LabeledDigit() [1/4]

o2::emcal::LabeledDigit::LabeledDigit ( )
default

◆ LabeledDigit() [2/4]

LabeledDigit::LabeledDigit ( Digit  digit,
o2::emcal::MCLabel  label 
)

Definition at line 17 of file LabeledDigit.cxx.

◆ LabeledDigit() [3/4]

LabeledDigit::LabeledDigit ( Short_t  tower,
Double_t  amplitudeGeV,
Double_t  time,
o2::emcal::MCLabel  label 
)

Definition at line 23 of file LabeledDigit.cxx.

◆ LabeledDigit() [4/4]

LabeledDigit::LabeledDigit ( Short_t  tower,
uint16_t  noiseLG,
uint16_t  noiseHG,
Double_t  time,
o2::emcal::MCLabel  label 
)

Definition at line 29 of file LabeledDigit.cxx.

◆ ~LabeledDigit()

o2::emcal::LabeledDigit::~LabeledDigit ( )
default

Member Function Documentation

◆ addLabel()

void o2::emcal::LabeledDigit::addLabel ( o2::emcal::MCLabel  l)
inline

Definition at line 48 of file LabeledDigit.h.

◆ canAdd()

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

Definition at line 56 of file LabeledDigit.h.

◆ getAmplitude()

Double_t o2::emcal::LabeledDigit::getAmplitude ( ) const
inline

Definition at line 75 of file LabeledDigit.h.

◆ getAmplitudeADC()

Int_t o2::emcal::LabeledDigit::getAmplitudeADC ( ChannelType_t  ctype = ChannelType_t::HIGH_GAIN) const
inline

Definition at line 81 of file LabeledDigit.h.

◆ getDigit()

Digit o2::emcal::LabeledDigit::getDigit ( ) const
inline

Definition at line 46 of file LabeledDigit.h.

◆ getEnergy()

Double_t o2::emcal::LabeledDigit::getEnergy ( )
inline

Definition at line 78 of file LabeledDigit.h.

◆ getHighGain()

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

Definition at line 87 of file LabeledDigit.h.

◆ getLabels()

std::vector< o2::emcal::MCLabel > o2::emcal::LabeledDigit::getLabels ( ) const
inline

Definition at line 50 of file LabeledDigit.h.

◆ getLEDMon()

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

Definition at line 96 of file LabeledDigit.h.

◆ getLowGain()

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

Definition at line 90 of file LabeledDigit.h.

◆ getNumberOfLabels()

Int_t o2::emcal::LabeledDigit::getNumberOfLabels ( ) const
inline

Definition at line 49 of file LabeledDigit.h.

◆ getTimeStamp()

Double_t o2::emcal::LabeledDigit::getTimeStamp ( ) const
inline

Definition at line 69 of file LabeledDigit.h.

◆ getTower()

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

Definition at line 72 of file LabeledDigit.h.

◆ getTRU()

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

Definition at line 93 of file LabeledDigit.h.

◆ getType()

ChannelType_t o2::emcal::LabeledDigit::getType ( ) const
inline

Definition at line 84 of file LabeledDigit.h.

◆ operator+=()

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

Definition at line 35 of file LabeledDigit.cxx.

◆ operator<()

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

Definition at line 52 of file LabeledDigit.h.

◆ operator==()

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

Definition at line 54 of file LabeledDigit.h.

◆ operator>()

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

Definition at line 53 of file LabeledDigit.h.

◆ PrintStream()

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

Definition at line 56 of file LabeledDigit.cxx.

◆ setAmplitude()

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

Definition at line 74 of file LabeledDigit.h.

◆ setAmplitudeADC()

void o2::emcal::LabeledDigit::setAmplitudeADC ( Short_t  amplitude,
ChannelType_t  ctype = ChannelType_t::HIGH_GAIN 
)
inline

Definition at line 80 of file LabeledDigit.h.

◆ setDigit()

void o2::emcal::LabeledDigit::setDigit ( Digit  d)
inline

Definition at line 45 of file LabeledDigit.h.

◆ setEnergy()

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

Definition at line 77 of file LabeledDigit.h.

◆ setHighGain()

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

Definition at line 86 of file LabeledDigit.h.

◆ setLEDMon()

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

Definition at line 95 of file LabeledDigit.h.

◆ setLowGain()

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

Definition at line 89 of file LabeledDigit.h.

◆ setTimeStamp()

void o2::emcal::LabeledDigit::setTimeStamp ( Double_t  time)
inline

Definition at line 68 of file LabeledDigit.h.

◆ setTower()

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

Definition at line 71 of file LabeledDigit.h.

◆ setTRU()

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

Definition at line 92 of file LabeledDigit.h.

◆ setType()

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

Definition at line 83 of file LabeledDigit.h.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 101 of file LabeledDigit.h.

◆ operator+

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

Definition at line 62 of file LabeledDigit.h.


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