 |
Belle II Software
release-05-02-19
|
26 class TOPASICPedestals :
public TObject {
60 int setPedestals(
const TProfile* profile,
double average = 0);
82 unsigned short mask = (1 <<
c_Bits);
140 const std::vector<unsigned>& errors,
bool isValid(unsigned i) const
Check whether the pedestal of i-th sample is valid.
@ c_WindowSize
number of samples
unsigned short m_pedestals[c_WindowSize]
pedestals (packed: value, error)
ClassDef(TOPASICPedestals, 1)
ClassDef.
unsigned short m_asicWindow
ASIC window number.
int setPedestals(const TProfile *profile, double average=0)
Set pedestals from profile histogram with c_WindowSize bins.
unsigned getSize() const
Return window size (number of pedestal samples)
TOPASICPedestals()
Default constructor.
float getError(unsigned i) const
Return pedestal uncertainly of i-th sample.
Abstract base class for different kinds of events.
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.
unsigned getASICWindow() const
Return ASIC window number.
unsigned getNumofUnvalid() const
Return number of un-valid pedestals (e.g.
unsigned short m_offset
common pedestal offset
@ c_Bits
number of bits reserved for pedestal value
float getValue(unsigned i) const
Return pedestal value of i-th sample.
Calibration constants of a single ASIC window: pedestals.