![]() |
Belle II Software
release-08-02-05
|
Calibration constants of a single ASIC window: pedestals. More...
#include <TOPASICPedestals.h>


Public Types | |
| enum | { c_WindowSize = 64 , c_Bits = 9 } |
| Various constants. More... | |
Public Member Functions | |
| TOPASICPedestals () | |
| Default constructor. | |
| TOPASICPedestals (unsigned short asicWindow) | |
| Constructor with ASIC window number. More... | |
| int | setPedestals (const TProfile *profile, double average=0) |
| Set pedestals from profile histogram with c_WindowSize bins. More... | |
| unsigned | getASICWindow () const |
| Return ASIC window number. More... | |
| unsigned | getSize () const |
| Return window size (number of pedestal samples) More... | |
| float | getValue (unsigned i) const |
| Return pedestal value of i-th sample. More... | |
| float | getError (unsigned i) const |
| Return pedestal uncertainly of i-th sample. More... | |
| bool | isValid (unsigned i) const |
| Check whether the pedestal of i-th sample is valid. More... | |
| unsigned | getNumofUnvalid () const |
| Return number of un-valid pedestals (e.g. More... | |
Private Member Functions | |
| 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. More... | |
| ClassDef (TOPASICPedestals, 1) | |
| ClassDef. | |
Private Attributes | |
| unsigned short | m_asicWindow |
| ASIC window number. | |
| unsigned short | m_offset |
| common pedestal offset | |
| unsigned short | m_pedestals [c_WindowSize] |
| pedestals (packed: value, error) | |
Calibration constants of a single ASIC window: pedestals.
Definition at line 24 of file TOPASICPedestals.h.
| anonymous enum |
Various constants.
| Enumerator | |
|---|---|
| c_WindowSize | number of samples |
| c_Bits | number of bits reserved for pedestal value |
Definition at line 30 of file TOPASICPedestals.h.
|
inlineexplicit |
Constructor with ASIC window number.
| asicWindow | ASIC window number |
Definition at line 46 of file TOPASICPedestals.h.
|
inline |
|
inline |
Return pedestal uncertainly of i-th sample.
| i | sample number |
Definition at line 92 of file TOPASICPedestals.h.
|
inline |
Return number of un-valid pedestals (e.g.
those cannot be packed into 16-bit word)
Definition at line 118 of file TOPASICPedestals.h.
|
inline |
Return window size (number of pedestal samples)
Definition at line 70 of file TOPASICPedestals.h.
|
inline |
Return pedestal value of i-th sample.
| i | sample number |
Definition at line 77 of file TOPASICPedestals.h.
|
inline |
Check whether the pedestal of i-th sample is valid.
| i | sample number |
Definition at line 105 of file TOPASICPedestals.h.