Belle II Software development
|
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. | |
int | setPedestals (const TProfile *profile, double average=0) |
Set pedestals from profile histogram with c_WindowSize bins. | |
unsigned | getASICWindow () const |
Return ASIC window number. | |
unsigned | getSize () const |
Return window size (number of pedestal samples) | |
float | getValue (unsigned i) const |
Return pedestal value of i-th sample. | |
float | getError (unsigned i) const |
Return pedestal uncertainly of i-th sample. | |
bool | isValid (unsigned i) const |
Check whether the pedestal of i-th sample is valid. | |
unsigned | getNumofUnvalid () const |
Return number of un-valid pedestals (e.g. | |
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. | |
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.
|
inline |
Default constructor.
Definition at line 37 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.
|
private |
ASIC window number.
Definition at line 142 of file TOPASICPedestals.h.
|
private |
common pedestal offset
Definition at line 143 of file TOPASICPedestals.h.
|
private |
pedestals (packed: value, error)
Definition at line 144 of file TOPASICPedestals.h.