Belle II Software light-2406-ragdoll
|
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. | |
std::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. | |
std::optional< EventT0Component > | getBestSVDTemporaryEventT0 () const |
Return the best SVD-based EventT0 candidate if it exists. | |
std::optional< EventT0Component > | getBestCDCTemporaryEventT0 () const |
Return the best CDC-based EventT0 candidate if it exists. | |
std::optional< EventT0Component > | getBestTOPTemporaryEventT0 () const |
Return the best TOP-based EventT0 candidate if it exists. | |
std::optional< EventT0Component > | getBestECLTemporaryEventT0 () const |
Return the best ECL-based EventT0 candidate if it exists. | |
bool | isEventT0Of (Const::EDetector detector) const |
Is the current EventT0 value based on information of the detector. | |
bool | isSVDEventT0 () const |
Is m_eventT0 based on SVD information? | |
bool | isCDCEventT0 () const |
Is m_eventT0 based on CDC information? | |
bool | isTOPEventT0 () const |
Is m_eventT0 based on TOP information? | |
bool | isECLEventT0 () const |
Is m_eventT0 based on ECL information? | |
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.
void addTemporaryEventT0 | ( | const EventT0Component & | eventT0 | ) |
Add another temporary double T0 estimation.
Definition at line 102 of file EventT0.cc.
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.
Definition at line 112 of file EventT0.cc.
void clearTemporaries | ( | ) |
Clear the list of temporary event T0 estimations.
Definition at line 107 of file EventT0.cc.
std::optional< EventT0::EventT0Component > getBestCDCTemporaryEventT0 | ( | ) | const |
Return the best CDC-based EventT0 candidate if it exists.
Definition at line 128 of file EventT0.cc.
std::optional< EventT0::EventT0Component > getBestECLTemporaryEventT0 | ( | ) | const |
Return the best ECL-based EventT0 candidate if it exists.
Definition at line 150 of file EventT0.cc.
std::optional< EventT0::EventT0Component > getBestSVDTemporaryEventT0 | ( | ) | const |
Return the best SVD-based EventT0 candidate if it exists.
Definition at line 117 of file EventT0.cc.
std::optional< EventT0::EventT0Component > getBestTOPTemporaryEventT0 | ( | ) | const |
Return the best TOP-based EventT0 candidate if it exists.
Definition at line 139 of file EventT0.cc.
double getEventT0 | ( | ) | const |
Return the final event t0, if one is set. Else, return NAN.
Definition at line 25 of file EventT0.cc.
std::optional< EventT0::EventT0Component > getEventT0Component | ( | ) | const |
Return the final event t0, if one is set. Else, return an empty optional.
Definition at line 31 of file EventT0.cc.
double getEventT0Uncertainty | ( | ) | const |
Return the final event t0 uncertainty, if one is set. Else, return NAN.
Definition at line 41 of file EventT0.cc.
unsigned long getNumberOfTemporaryEventT0s | ( | ) | const |
Return the number of stored event T0s.
Definition at line 97 of file EventT0.cc.
Const::DetectorSet getTemporaryDetectors | ( | ) | const |
Get the detectors that have determined temporary event T0s.
Definition at line 86 of file EventT0.cc.
const std::vector< EventT0::EventT0Component > & getTemporaryEventT0s | ( | ) | const |
Return the list of all temporary event t0 estimations.
Definition at line 70 of file EventT0.cc.
const std::vector< EventT0::EventT0Component > getTemporaryEventT0s | ( | Const::EDetector | detector | ) | const |
Return the list of all temporary event t0 estimations for a specific detector.
Definition at line 75 of file EventT0.cc.
bool hasEventT0 | ( | ) | const |
Check if a final event t0 is set.
Definition at line 19 of file EventT0.cc.
bool hasTemporaryEventT0 | ( | const Const::DetectorSet & | detectorSet = Const::allDetectors | ) | const |
Check if one of the detectors in the given set has a temporary t0 estimation.
Definition at line 59 of file EventT0.cc.
|
inline |
Is m_eventT0 based on CDC information?
Definition at line 123 of file EventT0.h.
|
inline |
Is m_eventT0 based on ECL information?
|
inline |
Is the current EventT0 value based on information of the detector.
detector | The detector for which one wants to know whether m_eventT0 is based on it |
Definition at line 109 of file EventT0.h.
|
inline |
Is m_eventT0 based on SVD information?
|
inline |
Is m_eventT0 based on TOP information?
void setEventT0 | ( | const EventT0Component & | eventT0 | ) |
Replace/set the final double T0 estimation.
Definition at line 53 of file EventT0.cc.
void setEventT0 | ( | double | eventT0, |
double | eventT0Uncertainty, | ||
const Const::DetectorSet & | detector, | ||
const std::string & | algorithm = "" |
||
) |
Replace/set the final double T0 estimation.
Definition at line 47 of file EventT0.cc.
|
private |
|
private |
|
private |