Belle II Software  release-08-01-10
TOPASICChannel Class Reference

Calibration constants of a singe ASIC channel: pedestals, gains and time axis. More...

#include <TOPASICChannel.h>

Inheritance diagram for TOPASICChannel:
Collaboration diagram for TOPASICChannel:

Public Member Functions

 TOPASICChannel ()
 Default constructor.
 
 TOPASICChannel (int moduleID, unsigned channel, int numWindows)
 Constructor with module ID, hardware channel number and number of ASIC windows. More...
 
 TOPASICChannel (const TOPASICChannel &chan)
 Copy constructor.
 
TOPASICChanneloperator= (const TOPASICChannel &chan)
 Assignment operator.
 
 ~TOPASICChannel ()
 Destructor.
 
bool setPedestals (const TOPASICPedestals &pedestals)
 Set pedestals of a single ASIC window. More...
 
bool setGains (const TOPASICGains &gains)
 Set gains of a single ASIC window. More...
 
int getModuleID () const
 Return module ID. More...
 
unsigned getChannel () const
 Return hardware channel number. More...
 
unsigned getNumofWindows () const
 Return number of ASIC windows. More...
 
const TOPASICPedestalsgetPedestals (unsigned window) const
 Return pedestals of an ASIC window. More...
 
const std::vector< TOPASICPedestals * > & getPedestals () const
 Returns a vector of pedestals. More...
 
const TOPASICGainsgetGains (unsigned window) const
 Return gains of an ASIC window. More...
 
const std::vector< TOPASICGains * > & getGains () const
 Returns a vector of gains. More...
 
unsigned getNumofGoodWindows () const
 Return number of good ASIC windows (e.g. More...
 

Private Member Functions

 ClassDef (TOPASICChannel, 4)
 ClassDef.
 

Private Attributes

int m_moduleID = 0
 module ID
 
unsigned m_channel = 0
 hardware channel number
 
std::vector< TOPASICPedestals * > m_pedestals
 pedestals
 
std::vector< TOPASICGains * > m_gains
 gains
 
TOPASICGains m_defaultGain
 default gain
 

Detailed Description

Calibration constants of a singe ASIC channel: pedestals, gains and time axis.

Definition at line 25 of file TOPASICChannel.h.

Constructor & Destructor Documentation

◆ TOPASICChannel()

TOPASICChannel ( int  moduleID,
unsigned  channel,
int  numWindows 
)
inline

Constructor with module ID, hardware channel number and number of ASIC windows.

Parameters
moduleIDmodule ID
channelhardware channel number
numWindowsnumber of active windows per ASIC

Definition at line 41 of file TOPASICChannel.h.

41  :
42  m_moduleID(moduleID), m_channel(channel)
43  {
44  for (int i = 0; i < numWindows; i++) m_pedestals.push_back(NULL);
45  }
unsigned m_channel
hardware channel number
std::vector< TOPASICPedestals * > m_pedestals
pedestals

Member Function Documentation

◆ getChannel()

unsigned getChannel ( ) const
inline

Return hardware channel number.

Returns
channel number

Definition at line 145 of file TOPASICChannel.h.

◆ getGains() [1/2]

const std::vector<TOPASICGains*>& getGains ( ) const
inline

Returns a vector of gains.

Returns
gains

Definition at line 189 of file TOPASICChannel.h.

◆ getGains() [2/2]

const TOPASICGains* getGains ( unsigned  window) const
inline

Return gains of an ASIC window.

Parameters
windowASIC window number
Returns
pointer to gains or NULL

Definition at line 178 of file TOPASICChannel.h.

◆ getModuleID()

int getModuleID ( ) const
inline

Return module ID.

Returns
module ID

Definition at line 139 of file TOPASICChannel.h.

◆ getNumofGoodWindows()

unsigned getNumofGoodWindows ( ) const
inline

Return number of good ASIC windows (e.g.

those with defined pedestals)

Returns
number of good windows

Definition at line 195 of file TOPASICChannel.h.

◆ getNumofWindows()

unsigned getNumofWindows ( ) const
inline

Return number of ASIC windows.

Returns
number of windows

Definition at line 151 of file TOPASICChannel.h.

◆ getPedestals() [1/2]

const std::vector<TOPASICPedestals*>& getPedestals ( ) const
inline

Returns a vector of pedestals.

Returns
pedestals

Definition at line 171 of file TOPASICChannel.h.

◆ getPedestals() [2/2]

const TOPASICPedestals* getPedestals ( unsigned  window) const
inline

Return pedestals of an ASIC window.

Parameters
windowASIC window number
Returns
pointer to pedestals or NULL

Definition at line 161 of file TOPASICChannel.h.

◆ setGains()

bool setGains ( const TOPASICGains gains)
inline

Set gains of a single ASIC window.

Parameters
gainsASIC window gains
Returns
true on success

Definition at line 118 of file TOPASICChannel.h.

◆ setPedestals()

bool setPedestals ( const TOPASICPedestals pedestals)
inline

Set pedestals of a single ASIC window.

Parameters
pedestalsASIC window pedestals
Returns
true on success

Definition at line 99 of file TOPASICChannel.h.


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