Class to store the calibrated EventT0 offsets of other detector components The offsets are measured relative to TOP EventT0 (e.g CDC - TOP etc)
More...
#include <TOPCalEventT0Offset.h>
Class to store the calibrated EventT0 offsets of other detector components The offsets are measured relative to TOP EventT0 (e.g CDC - TOP etc)
Definition at line 27 of file TOPCalEventT0Offset.h.
◆ TOPCalEventT0Offset()
◆ ClassDef()
do not write out
ClassDef
◆ get()
Getter.
- Parameters
-
detector | detector component |
- Returns
- calibration constants
Definition at line 82 of file TOPCalEventT0Offset.h.
83 {
86 }
std::map< Const::EDetector, OffsetData > m_calibrations
cache
void set() const
Set the cache.
◆ isAvailable()
Is calibration available for a given detector component?
- Parameters
-
detector | detector component |
- Returns
- true if available
Definition at line 93 of file TOPCalEventT0Offset.h.
◆ isEmpty()
Is object empty?
- Returns
- true if empty
Definition at line 103 of file TOPCalEventT0Offset.h.
std::vector< OffsetData > m_data
calibration data
◆ set() [1/2]
◆ set() [2/2]
Setter.
- Parameters
-
detector | detector component |
offset | offset relative to TOP |
sigma | time resolution of the detector component (must be a positive value) |
Definition at line 67 of file TOPCalEventT0Offset.h.
68 {
69 if (sigma > 0) {
70 m_data.push_back(OffsetData(offset, sigma, detector));
71 } else {
72 B2ERROR("TOPCalEventT0Offset::set: time resolution must be a positive number. Entry ignored"
73 <<
LogVar(
"detector component", detector));
74 }
75 }
Class to store variables with their name which were sent to the logging service.
◆ m_calibrations
◆ m_data
The documentation for this class was generated from the following file: