Project
Loading...
Searching...
No Matches
o2::tpc::HalfSAMPAData Class Reference

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
 
shortoperator[] (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)
 

Detailed Description

Class to store data from one half SAMPA.

Definition at line 29 of file HalfSAMPAData.h.

Constructor & Destructor Documentation

◆ HalfSAMPAData() [1/3]

HalfSAMPAData::HalfSAMPAData ( )

Default constructor.

Definition at line 20 of file HalfSAMPAData.cxx.

◆ HalfSAMPAData() [2/3]

HalfSAMPAData::HalfSAMPAData ( int  id,
bool  low 
)

Constructor

Parameters
idSAMPA ID
lowWhich 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
idSAMPA ID
lowWhich half of SAMPA channels, true for low, false for high
data32 ADC values

Definition at line 31 of file HalfSAMPAData.cxx.

◆ ~HalfSAMPAData()

HalfSAMPAData::~HalfSAMPAData ( )
default

Destructor.

Member Function Documentation

◆ 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
channelSAMPA channel

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

Definition at line 94 of file HalfSAMPAData.h.

◆ operator==()

bool o2::tpc::HalfSAMPAData::operator== ( const HalfSAMPAData rhs) const
inline

Definition at line 93 of file HalfSAMPAData.h.

◆ operator[]() [1/2]

short & o2::tpc::HalfSAMPAData::operator[] ( int  index)
inline

Definition at line 58 of file HalfSAMPAData.h.

◆ operator[]() [2/2]

short o2::tpc::HalfSAMPAData::operator[] ( int  index) const
inline

Definition at line 57 of file HalfSAMPAData.h.

◆ Print()

std::ostream & HalfSAMPAData::Print ( std::ostream &  output) const

Print function

Parameters
outputstream 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

Resets internal storage.

Definition at line 73 of file HalfSAMPAData.h.

◆ setChannel()

void o2::tpc::HalfSAMPAData::setChannel ( int  channel,
short  value 
)
inline

Sets ADC value of SAMPA channel

Parameters
channelSAMPA channel
valueADC value

Definition at line 52 of file HalfSAMPAData.h.

◆ setID()

void o2::tpc::HalfSAMPAData::setID ( int  val)
inline

Sets ID of SAMPA

Parameters
valSAMPA ID

Definition at line 66 of file HalfSAMPAData.h.

◆ setLow()

void o2::tpc::HalfSAMPAData::setLow ( bool  val)
inline

Sets SAMPA channel to Low or High

Parameters
valSAMPA channel

Definition at line 62 of file HalfSAMPAData.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
const HalfSAMPAData s 
)
friend

Definition at line 91 of file HalfSAMPAData.h.


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