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 {
84 if (m_calibrations.empty()) set();
85 return m_calibrations[detector];
86 }
◆ 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.
94 {
95 if (m_calibrations.empty()) set();
96 return (m_calibrations[detector].sigma > 0);
97 }
◆ isEmpty()
◆ set() [1/2]
Set the cache.
Definition at line 110 of file TOPCalEventT0Offset.h.
111 {
112 for (const auto& data : m_data) m_calibrations[data.component] = data;
113 }
◆ 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 }
◆ m_calibrations
◆ m_data
The documentation for this class was generated from the following file: