![]() |
Belle II Software
release-06-01-15
|
Storage element for the eventwise T0 estimation. More...
#include <EventT0.h>
Classes | |
struct | EventT0Component |
Structure for storing the extracted event t0s together with its detector and its uncertainty. More... | |
Public Member Functions | |
bool | hasEventT0 () const |
Check if a final event t0 is set. | |
double | getEventT0 () const |
Return the final event t0, if one is set. Else, return NAN. | |
boost::optional< EventT0Component > | getEventT0Component () const |
Return the final event t0, if one is set. Else, return an empty optional. | |
double | getEventT0Uncertainty () const |
Return the final event t0 uncertainty, if one is set. Else, return NAN. | |
void | setEventT0 (double eventT0, double eventT0Uncertainty, const Const::DetectorSet &detector, const std::string &algorithm="") |
Replace/set the final double T0 estimation. | |
void | setEventT0 (const EventT0Component &eventT0) |
Replace/set the final double T0 estimation. | |
void | addTemporaryEventT0 (const EventT0Component &eventT0) |
Add another temporary double T0 estimation. | |
const std::vector< EventT0Component > & | getTemporaryEventT0s () const |
Return the list of all temporary event t0 estimations. | |
const std::vector< EventT0Component > | getTemporaryEventT0s (Const::EDetector detector) const |
Return the list of all temporary event t0 estimations for a specific detector. | |
bool | hasTemporaryEventT0 (const Const::DetectorSet &detectorSet=Const::allDetectors) const |
Check if one of the detectors in the given set has a temporary t0 estimation. | |
Const::DetectorSet | getTemporaryDetectors () const |
Get the detectors that have determined temporary event T0s. | |
unsigned long | getNumberOfTemporaryEventT0s () const |
Return the number of stored event T0s. | |
void | clearTemporaries () |
Clear the list of temporary event T0 estimations. | |
void | clearEventT0 () |
Clear the final EventT0, this is neded in case some algorithm has set one for an itertive t0 finding procedure and none was set in the beginning. | |
Private Attributes | |
std::vector< EventT0Component > | m_temporaryEventT0List |
Internal storage of the temporary event t0 list. | |
EventT0Component | m_eventT0 |
Internal storage for the final event t0. | |
bool | m_hasEventT0 = false |
Internal storage of the final eventT0 is set. | |
Storage element for the eventwise T0 estimation.
It can store a double value with uncertainty together with the detector component.
Additionally, it can store an arbitrary number of temporary event t0 estimations not to be used for the final decision.