![]() |
Project
|
Class to store data from one half SAMPA. More...
#include <HalfSAMPAData.h>
Public Member Functions | |
HalfSAMPAData () | |
Default constructor. | |
HalfSAMPAData (int id, bool low) | |
HalfSAMPAData (int id, bool low, std::array< short, 16 > &data) | |
~HalfSAMPAData () | |
Destructor. | |
void | setChannel (int channel, short value) |
short | getChannel (int channel) const |
short | operator[] (int index) const |
short & | operator[] (int index) |
void | setLow (bool val) |
void | setID (int val) |
int | getID () const |
void | reset () |
Resets internal storage. | |
std::array< short, 16 > & | getData () |
void | fill (short val) |
std::ostream & | Print (std::ostream &output) const |
bool | operator== (const HalfSAMPAData &rhs) const |
bool | operator!= (const HalfSAMPAData &rhs) const |
Friends | |
std::ostream & | operator<< (std::ostream &out, const HalfSAMPAData &s) |
Class to store data from one half SAMPA.
Definition at line 29 of file HalfSAMPAData.h.
HalfSAMPAData::HalfSAMPAData | ( | ) |
Default constructor.
Definition at line 20 of file HalfSAMPAData.cxx.
HalfSAMPAData::HalfSAMPAData | ( | int | id, |
bool | low | ||
) |
Constructor
id | SAMPA ID |
low | Which half of SAMPA channels, true for low, false for high |
Definition at line 25 of file HalfSAMPAData.cxx.
Constructor
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.
|
default |
Destructor.
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.
Returns ADC value of SAMPA channel
channel | SAMPA channel |
Definition at line 56 of file HalfSAMPAData.h.
|
inline |
|
inline |
|
inline |
Definition at line 94 of file HalfSAMPAData.h.
|
inline |
Definition at line 93 of file HalfSAMPAData.h.
Definition at line 58 of file HalfSAMPAData.h.
Definition at line 57 of file HalfSAMPAData.h.
std::ostream & HalfSAMPAData::Print | ( | std::ostream & | output | ) | const |
Print function
output | stream to put the SAMPA data on |
Definition at line 42 of file HalfSAMPAData.cxx.
|
inline |
Resets internal storage.
Definition at line 73 of file HalfSAMPAData.h.
Sets ADC value of SAMPA channel
channel | SAMPA channel |
value | ADC value |
Definition at line 52 of file HalfSAMPAData.h.
|
inline |
Sets SAMPA channel to Low or High
val | SAMPA channel |
Definition at line 62 of file HalfSAMPAData.h.
|
friend |
Definition at line 91 of file HalfSAMPAData.h.