58 int setPedestals(
const TProfile* profile,
double average = 0);
80 unsigned short mask = (1 <<
c_Bits);
138 const std::vector<unsigned>& errors,
Calibration constants of a single ASIC window: pedestals.
ClassDef(TOPASICPedestals, 1)
ClassDef.
unsigned short m_pedestals[c_WindowSize]
pedestals (packed: value, error)
float getValue(unsigned i) const
Return pedestal value of i-th sample.
unsigned getSize() const
Return window size (number of pedestal samples)
TOPASICPedestals(unsigned short asicWindow)
Constructor with ASIC window number.
unsigned getNumofUnvalid() const
Return number of un-valid pedestals (e.g.
float getError(unsigned i) const
Return pedestal uncertainly of i-th sample.
unsigned getASICWindow() const
Return ASIC window number.
unsigned short m_asicWindow
ASIC window number.
TOPASICPedestals()
Default constructor.
unsigned short m_offset
common pedestal offset
bool isValid(unsigned i) const
Check whether the pedestal of i-th sample is valid.
@ c_Bits
number of bits reserved for pedestal value
@ c_WindowSize
number of samples
unsigned getOptimizedOffset(const std::vector< unsigned > &values, const std::vector< unsigned > &errors, unsigned maxDif, unsigned maxErr)
Return the offset that can allow for the maximal number of good pedestal samples.
int setPedestals(const TProfile *profile, double average=0)
Set pedestals from profile histogram with c_WindowSize bins.
Abstract base class for different kinds of events.