 |
Belle II Software
release-05-02-19
|
14 #include <top/dbobjects/TOPASICPedestals.h>
15 #include <top/dbobjects/TOPASICGains.h>
27 class TOPASICChannel:
public TObject {
46 for (
int i = 0; i < numWindows; i++)
m_pedestals.push_back(NULL);
66 if (pedestals)
delete pedestals;
73 if (gains)
delete gains;
77 if (gains) gains =
new TOPASICGains(*gains);
89 if (window)
delete window;
92 if (window)
delete window;
120 bool setGains(
const TOPASICGains& gains)
125 unsigned i = gains.getASICWindow();
180 const TOPASICGains*
getGains(
unsigned window)
const
200 for (
auto& pedestal :
m_pedestals)
if (pedestal) n++;
210 std::vector<TOPASICGains*>
m_gains;
unsigned m_channel
hardware channel number
TOPASICGains m_defaultGain
default gain
bool setGains(const TOPASICGains &gains)
Set gains of a single ASIC window.
ClassDef(TOPASICChannel, 4)
ClassDef.
Calibration constants of a singe ASIC channel: pedestals, gains and time axis.
const std::vector< TOPASICGains * > & getGains() const
Returns a vector of gains.
TOPASICChannel()
Default constructor.
Abstract base class for different kinds of events.
bool setPedestals(const TOPASICPedestals &pedestals)
Set pedestals of a single ASIC window.
unsigned getNumofGoodWindows() const
Return number of good ASIC windows (e.g.
unsigned getNumofWindows() const
Return number of ASIC windows.
unsigned getASICWindow() const
Return ASIC window number.
~TOPASICChannel()
Destructor.
unsigned getChannel() const
Return hardware channel number.
std::vector< TOPASICGains * > m_gains
gains
int getModuleID() const
Return module ID.
std::vector< TOPASICPedestals * > m_pedestals
pedestals
const std::vector< TOPASICPedestals * > & getPedestals() const
Returns a vector of pedestals.
Calibration constants of a single ASIC window: gains.
TOPASICChannel & operator=(const TOPASICChannel &chan)
Assignment operator.
Calibration constants of a single ASIC window: pedestals.