Belle II Software light-2406-ragdoll
|
Database object for storing a binned EventT0 coming from the trigger. More...
#include <BinnedEventT0.h>
Public Member Functions | |
int | getBinnedEventT0 (const Const::EDetector detector) const |
Return the stored binned event t0 for the given detector or 0 if nothing stored. | |
void | addBinnedEventT0 (int eventT0, Const::EDetector detector) |
Store a binned event t0 for the given detector replacing any other hypothesis for this detector. | |
bool | hasBinnedEventT0 (const Const::EDetector detector) const |
Check if one of the detectors in the given set has a binned t0 estimation. | |
void | clear () |
Clear the list of extracted event T0 estimations. | |
Private Attributes | |
std::map< Const::EDetector, int > | m_eventT0Map |
Internal storage of the event t0 list. | |
Database object for storing a binned EventT0 coming from the trigger.
It stores one binned (integer) event t0 estimation for each detector, which will be replaced whenever you store a new one for the same detector.
It is only possible to extract the estimations for one detector at the time, as averaging does not make sense for the binned data (additionally, the detectors may have different time offsets unknown to this object).
It is in the responsibility of the user to calculate a floating point t0 in nanoseconds out of the integer estimations if desired.
Definition at line 33 of file BinnedEventT0.h.
void addBinnedEventT0 | ( | int | eventT0, |
Const::EDetector | detector | ||
) |
Store a binned event t0 for the given detector replacing any other hypothesis for this detector.
Definition at line 24 of file BinnedEventT0.cc.
void clear | ( | ) |
Clear the list of extracted event T0 estimations.
Definition at line 34 of file BinnedEventT0.cc.
int getBinnedEventT0 | ( | const Const::EDetector | detector | ) | const |
Return the stored binned event t0 for the given detector or 0 if nothing stored.
Definition at line 13 of file BinnedEventT0.cc.
bool hasBinnedEventT0 | ( | const Const::EDetector | detector | ) | const |
Check if one of the detectors in the given set has a binned t0 estimation.
Definition at line 29 of file BinnedEventT0.cc.
|
private |
Internal storage of the event t0 list.
Definition at line 49 of file BinnedEventT0.h.