![]() |
Belle II Software
release-08-02-06
|
Calibration constants of a singe ASIC channel: time axis (sample times) More...
#include <TOPSampleTimes.h>


Public Types | |
| enum | EStatus { c_Default = 0 , c_Calibrated = 1 , c_Unusable = 2 } |
| Calibration status values. More... | |
| enum | { c_WindowSize = TOPASICPedestals::c_WindowSize , c_TimeAxisSize = c_WindowSize * 4 } |
| time axis size (time axis for 4 ASIC windows) | |
Public Member Functions | |
| TOPSampleTimes () | |
| Default constructor. | |
| TOPSampleTimes (unsigned scrodID, unsigned channel, double syncTimeBase) | |
| Useful constructor, sets equidistant time base (uncalibrated) More... | |
| ~TOPSampleTimes () | |
| Destructor. | |
| void | setTimeAxis (double syncTimeBase) |
| Sets equidistant time axis (uncalibrated). More... | |
| void | setTimeAxis (const std::vector< double > &sampleTimes, double syncTimeBase) |
| Sets time axis from calibration data and switches status to calibrated. More... | |
| void | setTimeError (double error) |
| Sets uncertainty on time base calibration incl. More... | |
| void | setUnusable () |
| Switches calibration status to unusable to flag badly calibrated constant. | |
| unsigned | getScrodID () const |
| Returns scrod ID. More... | |
| unsigned | getChannel () const |
| Returns hardware channel number. More... | |
| double | getTimeRange () const |
| Returns time axis range (time interval corresponding to 4 asic windows) More... | |
| std::vector< double > | getTimeAxis () const |
| Returns time axis (sample times) More... | |
| double | getTimeError () const |
| Returns uncertainty on time base calibration incl. More... | |
| double | getFullTime (int window, double sample) const |
| Returns time with respect to sample 0 of window 0. More... | |
| double | getTime (int window, double sample) const |
| Returns time w.r.t SSTin that corresponds to the window number. More... | |
| double | getDeltaTime (int window, double sample2, double sample1) const |
| Returns time difference between sample2 and sample1. More... | |
| double | getTimeBin (int window, int sampleNumber) const |
| Returns time bin of a given sample number and window (e.g. More... | |
| double | getSample (int window, double time) const |
| Returns sample with respect to sample 0 of the specified ASIC window (inverse of getTime). More... | |
| bool | isCalibrated () const |
| Returns calibration status. More... | |
| bool | isDefault () const |
| Returns calibration status. More... | |
| bool | isUnusable () const |
| Returns calibration status. More... | |
Private Member Functions | |
| ClassDef (TOPSampleTimes, 2) | |
| ClassDef. | |
Private Attributes | |
| unsigned short | m_scrodID = 0 |
| scrod ID | |
| unsigned short | m_channel = 0 |
| hardware channel number within SCROD | |
| float | m_timeAxis [c_TimeAxisSize+1] = {0} |
| time axis + right border point | |
| float | m_timeError = 0 |
| uncertainty of time axis points incl. More... | |
| EStatus | m_calibrated = c_Default |
| calibration status | |
Calibration constants of a singe ASIC channel: time axis (sample times)
Definition at line 24 of file TOPSampleTimes.h.
| enum EStatus |
Calibration status values.
| Enumerator | |
|---|---|
| c_Default | uncalibrated default value |
| c_Calibrated | good calibrated value |
| c_Unusable | bad calibrated value |
Definition at line 30 of file TOPSampleTimes.h.
|
inline |
Useful constructor, sets equidistant time base (uncalibrated)
| scrodID | scrod ID |
| channel | hardware channel number |
| syncTimeBase | sinchronization time base (width of 2 ASIC windows) |
Definition at line 55 of file TOPSampleTimes.h.
|
inline |
Returns hardware channel number.
Definition at line 102 of file TOPSampleTimes.h.
|
inline |
Returns time difference between sample2 and sample1.
Note: sample is float - digits that follow the decimal point are used to interpolate the time btw. two samples
| window | ASIC window number |
| sample2 | sample counted from the first sample of the specified ASIC window |
| sample1 | sample counted from the first sample of the specified ASIC window |
Definition at line 157 of file TOPSampleTimes.h.
|
inline |
|
inline |
Returns time w.r.t SSTin that corresponds to the window number.
Note: sample is float - digits that follow the decimal point are used to interpolate the time btw. two samples
| window | ASIC window number |
| sample | sample counted from the first one in the specified ASIC window |
Definition at line 142 of file TOPSampleTimes.h.
|
inline |
Returns uncertainty on time base calibration incl.
systematics
Definition at line 120 of file TOPSampleTimes.h.
|
inline |
Returns time axis range (time interval corresponding to 4 asic windows)
Definition at line 108 of file TOPSampleTimes.h.
|
inline |
Returns calibration status.
Definition at line 187 of file TOPSampleTimes.h.
|
inline |
Returns calibration status.
Definition at line 193 of file TOPSampleTimes.h.
|
inline |
Returns calibration status.
Definition at line 199 of file TOPSampleTimes.h.
|
inline |
Sets uncertainty on time base calibration incl.
systematics
| error | estimated uncertainty of time axis points |
Definition at line 85 of file TOPSampleTimes.h.
|
private |