Belle II Software development
|
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) More... | |
Public Member Functions | |
TOPSampleTimes () | |
Default constructor. | |
TOPSampleTimes (unsigned scrodID, unsigned channel, double syncTimeBase) | |
Useful constructor, sets equidistant time base (uncalibrated) | |
~TOPSampleTimes () | |
Destructor. | |
void | setTimeAxis (double syncTimeBase) |
Sets equidistant time axis (uncalibrated). | |
void | setTimeAxis (const std::vector< double > &sampleTimes, double syncTimeBase) |
Sets time axis from calibration data and switches status to calibrated. | |
void | setTimeError (double error) |
Sets uncertainty on time base calibration incl. | |
void | setUnusable () |
Switches calibration status to unusable to flag badly calibrated constant. | |
unsigned | getScrodID () const |
Returns scrod ID. | |
unsigned | getChannel () const |
Returns hardware channel number. | |
double | getTimeRange () const |
Returns time axis range (time interval corresponding to 4 asic windows) | |
std::vector< double > | getTimeAxis () const |
Returns time axis (sample times) | |
double | getTimeError () const |
Returns uncertainty on time base calibration incl. | |
double | getFullTime (int window, double sample) const |
Returns time with respect to sample 0 of window 0. | |
double | getTime (int window, double sample) const |
Returns time w.r.t SSTin that corresponds to the window number. | |
double | getDeltaTime (int window, double sample2, double sample1) const |
Returns time difference between sample2 and sample1. | |
double | getTimeBin (int window, int sampleNumber) const |
Returns time bin of a given sample number and window (e.g. | |
double | getSample (int window, double time) const |
Returns sample with respect to sample 0 of the specified ASIC window (inverse of getTime). | |
bool | isCalibrated () const |
Returns calibration status. | |
bool | isDefault () const |
Returns calibration status. | |
bool | isUnusable () const |
Returns calibration status. | |
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. | |
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.
anonymous enum |
time axis size (time axis for 4 ASIC windows)
Definition at line 39 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 |
|
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 |
|
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.
|
inline |
Switches calibration status to unusable to flag badly calibrated constant.
Definition at line 90 of file TOPSampleTimes.h.
calibration status
Definition at line 207 of file TOPSampleTimes.h.
|
private |
hardware channel number within SCROD
Definition at line 204 of file TOPSampleTimes.h.
|
private |
scrod ID
Definition at line 203 of file TOPSampleTimes.h.
|
private |
time axis + right border point
Definition at line 205 of file TOPSampleTimes.h.
|
private |