Class to store data from one half SAMPA.
More...
#include <HalfSAMPAData.h>
Class to store data from one half SAMPA.
Definition at line 29 of file HalfSAMPAData.h.
◆ HalfSAMPAData() [1/3]
| HalfSAMPAData::HalfSAMPAData |
( |
| ) |
|
◆ HalfSAMPAData() [2/3]
| HalfSAMPAData::HalfSAMPAData |
( |
int |
id, |
|
|
bool |
low |
|
) |
| |
Constructor
- Parameters
-
| id | SAMPA ID |
| low | Which half of SAMPA channels, true for low, false for high |
Definition at line 25 of file HalfSAMPAData.cxx.
◆ HalfSAMPAData() [3/3]
| HalfSAMPAData::HalfSAMPAData |
( |
int |
id, |
|
|
bool |
low, |
|
|
std::array< short, 16 > & |
data |
|
) |
| |
Constructor
- Parameters
-
| id | SAMPA ID |
| low | Which half of SAMPA channels, true for low, false for high |
| data | 32 ADC values |
Definition at line 31 of file HalfSAMPAData.cxx.
◆ ~HalfSAMPAData()
| HalfSAMPAData::~HalfSAMPAData |
( |
| ) |
|
|
default |
◆ fill()
| void o2::tpc::HalfSAMPAData::fill |
( |
short |
val | ) |
|
|
inline |
Assigns the given value to all elements in the container @val value the value to assign to the elements
Definition at line 85 of file HalfSAMPAData.h.
◆ getChannel()
| short o2::tpc::HalfSAMPAData::getChannel |
( |
int |
channel | ) |
const |
|
inline |
Returns ADC value of SAMPA channel
- Parameters
-
Definition at line 56 of file HalfSAMPAData.h.
◆ getData()
| std::array< short, 16 > & o2::tpc::HalfSAMPAData::getData |
( |
| ) |
|
|
inline |
Returns reference to data
- Returns
- Reference to data
Definition at line 81 of file HalfSAMPAData.h.
◆ getID()
| int o2::tpc::HalfSAMPAData::getID |
( |
| ) |
const |
|
inline |
Returns ID of this SAMPA
- Returns
- ID of SAMPA
Definition at line 70 of file HalfSAMPAData.h.
◆ operator!=()
| bool o2::tpc::HalfSAMPAData::operator!= |
( |
const HalfSAMPAData & |
rhs | ) |
const |
|
inline |
◆ operator==()
| bool o2::tpc::HalfSAMPAData::operator== |
( |
const HalfSAMPAData & |
rhs | ) |
const |
|
inline |
◆ operator[]() [1/2]
| short & o2::tpc::HalfSAMPAData::operator[] |
( |
int |
index | ) |
|
|
inline |
◆ operator[]() [2/2]
| short o2::tpc::HalfSAMPAData::operator[] |
( |
int |
index | ) |
const |
|
inline |
◆ Print()
| std::ostream & HalfSAMPAData::Print |
( |
std::ostream & |
output | ) |
const |
Print function
- Parameters
-
| output | stream to put the SAMPA data on |
- Returns
- The output stream
Definition at line 42 of file HalfSAMPAData.cxx.
◆ reset()
| void o2::tpc::HalfSAMPAData::reset |
( |
| ) |
|
|
inline |
◆ setChannel()
| void o2::tpc::HalfSAMPAData::setChannel |
( |
int |
channel, |
|
|
short |
value |
|
) |
| |
|
inline |
Sets ADC value of SAMPA channel
- Parameters
-
| channel | SAMPA channel |
| value | ADC value |
Definition at line 52 of file HalfSAMPAData.h.
◆ setID()
| void o2::tpc::HalfSAMPAData::setID |
( |
int |
val | ) |
|
|
inline |
◆ setLow()
| void o2::tpc::HalfSAMPAData::setLow |
( |
bool |
val | ) |
|
|
inline |
Sets SAMPA channel to Low or High
- Parameters
-
Definition at line 62 of file HalfSAMPAData.h.
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & |
out, |
|
|
const HalfSAMPAData & |
s |
|
) |
| |
|
friend |
The documentation for this class was generated from the following files:
- /home/runner/work/AliceO2/AliceO2/Detectors/TPC/reconstruction/include/TPCReconstruction/HalfSAMPAData.h
- /home/runner/work/AliceO2/AliceO2/Detectors/TPC/reconstruction/src/HalfSAMPAData.cxx