#include <Digit.h>
Inherits o2::dataformats::TimeStamp< T >.
Definition at line 28 of file Digit.h.
◆ Digit() [1/2]
o2::cpv::Digit::Digit |
( |
| ) |
|
|
default |
◆ Digit() [2/2]
Digit::Digit |
( |
unsigned short |
cell, |
|
|
float |
amplitude, |
|
|
int |
label |
|
) |
| |
Main Digit constructor.
- Parameters
-
cell | absId of a cell, amplitude energy deposited in a cell, time time measured in cell, label label of a particle in case of MC |
- Returns
- constructed Digit
Definition at line 21 of file Digit.cxx.
◆ ~Digit()
o2::cpv::Digit::~Digit |
( |
| ) |
|
|
default |
◆ canAdd()
bool Digit::canAdd |
( |
const Digit |
other | ) |
const |
Check, if one can add two digits.
- Parameters
-
- Returns
- true if time stamps are same and absId are same
Definition at line 25 of file Digit.cxx.
◆ getAbsId()
unsigned short o2::cpv::Digit::getAbsId |
( |
| ) |
const |
|
inline |
Absolute sell id.
Definition at line 87 of file Digit.h.
◆ getAmplitude()
float o2::cpv::Digit::getAmplitude |
( |
| ) |
const |
|
inline |
Energy deposited in a cell.
Definition at line 91 of file Digit.h.
◆ getLabel()
int o2::cpv::Digit::getLabel |
( |
| ) |
const |
|
inline |
index of entry in MCLabels array
- Returns
- ndex of entry in MCLabels array
Definition at line 96 of file Digit.h.
◆ operator+=()
if addable, adds energy and list of primaries.
- Parameters
-
- Returns
- digit with sum of energies
Definition at line 30 of file Digit.cxx.
◆ operator<()
bool o2::cpv::Digit::operator< |
( |
const Digit & |
other | ) |
const |
|
inline |
Comparison oparator, based on time and absId.
- Parameters
-
- Returns
- result of comparison: first time, if time same, then absId
Definition at line 47 of file Digit.h.
◆ operator==()
bool o2::cpv::Digit::operator== |
( |
const Digit & |
other | ) |
const |
|
inline |
Comparison oparator, based on time and absId.
- Parameters
-
- Returns
- result of comparison: first time, if time same, then absId
Definition at line 71 of file Digit.h.
◆ operator>()
bool o2::cpv::Digit::operator> |
( |
const Digit & |
other | ) |
const |
|
inline |
Comparison oparator, based on time and absId.
- Parameters
-
- Returns
- result of comparison: first time, if time same, then absId
Definition at line 59 of file Digit.h.
◆ PrintStream()
void Digit::PrintStream |
( |
std::ostream & |
stream | ) |
const |
◆ reset()
void o2::cpv::Digit::reset |
( |
| ) |
|
|
inline |
◆ setAbsId()
void o2::cpv::Digit::setAbsId |
( |
unsigned short |
cellId | ) |
|
|
inline |
◆ setAmplitude()
void o2::cpv::Digit::setAmplitude |
( |
float |
amplitude | ) |
|
|
inline |
◆ setLabel()
void o2::cpv::Digit::setLabel |
( |
int |
l | ) |
|
|
inline |
◆ kTimeGate
constexpr int o2::cpv::Digit::kTimeGate = 25 |
|
staticconstexpr |
The documentation for this class was generated from the following files:
- /home/runner/work/AliceO2/AliceO2/DataFormats/Detectors/CPV/include/DataFormatsCPV/Digit.h
- /home/runner/work/AliceO2/AliceO2/DataFormats/Detectors/CPV/src/Digit.cxx