12#include <top/dbobjects/TOPASICPedestals.h>
13#include <top/dbobjects/TOPASICGains.h>
44 for (
int i = 0; i < numWindows; i++)
m_pedestals.push_back(NULL);
64 if (pedestals)
delete pedestals;
71 if (gains)
delete gains;
87 if (window)
delete window;
90 if (window)
delete window;
198 for (
auto& pedestal :
m_pedestals)
if (pedestal) n++;
Calibration constants of a singe ASIC channel: pedestals, gains and time axis.
~TOPASICChannel()
Destructor.
TOPASICChannel(int moduleID, unsigned channel, int numWindows)
Constructor with module ID, hardware channel number and number of ASIC windows.
unsigned m_channel
hardware channel number
std::vector< TOPASICPedestals * > m_pedestals
pedestals
bool setPedestals(const TOPASICPedestals &pedestals)
Set pedestals of a single ASIC window.
unsigned getNumofGoodWindows() const
Return number of good ASIC windows (e.g.
ClassDef(TOPASICChannel, 4)
ClassDef.
TOPASICGains m_defaultGain
default gain
std::vector< TOPASICGains * > m_gains
gains
unsigned getNumofWindows() const
Return number of ASIC windows.
const TOPASICPedestals * getPedestals(unsigned window) const
Return pedestals of an ASIC window.
int getModuleID() const
Return module ID.
unsigned getChannel() const
Return hardware channel number.
TOPASICChannel & operator=(const TOPASICChannel &chan)
Assignment operator.
const std::vector< TOPASICGains * > & getGains() const
Returns a vector of gains.
bool setGains(const TOPASICGains &gains)
Set gains of a single ASIC window.
TOPASICChannel(const TOPASICChannel &chan)
Copy constructor.
const TOPASICGains * getGains(unsigned window) const
Return gains of an ASIC window.
TOPASICChannel()
Default constructor.
const std::vector< TOPASICPedestals * > & getPedestals() const
Returns a vector of pedestals.
Calibration constants of a single ASIC window: gains.
unsigned getASICWindow() const
Return ASIC window number.
Calibration constants of a single ASIC window: pedestals.
unsigned getASICWindow() const
Return ASIC window number.
Abstract base class for different kinds of events.