 |
Belle II Software
release-05-02-19
|
12 #include <framework/gearbox/Const.h>
15 #include <boost/optional.hpp>
32 class EventT0 :
public TObject {
36 struct EventT0Component {
41 EventT0Component(
double eventT0_,
double eventT0Uncertainty_,
const Const::DetectorSet& detectorSet_,
42 const std::string& algorithm_ =
"",
double quality_ = NAN) :
Const::DetectorSet getTemporaryDetectors() const
Get the detectors that have determined temporary event T0s.
bool m_hasEventT0
Internal storage of the final eventT0 is set.
Storage element for the eventwise T0 estimation.
unsigned long getNumberOfTemporaryEventT0s() const
Return the number of stored event T0s.
bool hasEventT0() const
Check if a final event t0 is set.
EventT0Component m_eventT0
Internal storage for the final event t0.
std::string algorithm
Storage for which algorithm created the event t0.
double eventT0
Storage of the T0 estimation.
double eventT0Uncertainty
Storage of the uncertainty of the T0 estimation.
void clearTemporaries()
Clear the list of temporary event T0 estimations.
The DetectorSet class for sets of detector IDs in the form of EDetector values.
void setEventT0(double eventT0, double eventT0Uncertainty, const Const::DetectorSet &detector, const std::string &algorithm="")
Replace/set the final double T0 estimation.
std::vector< EventT0Component > m_temporaryEventT0List
Internal storage of the temporary event t0 list.
EDetector
Enum for identifying the detector components (detector and subdetector).
boost::optional< EventT0Component > getEventT0Component() const
Return the final event t0, if one is set. Else, return an empty optional.
Structure for storing the extracted event t0s together with its detector and its uncertainty.
Const::DetectorSet detectorSet
Storage of the detector, who has determined the event T0.
double quality
Storage for the internal quality estimation for a single algorithm. Only comparable for all temporari...
double getEventT0Uncertainty() const
Return the final event t0 uncertainty, if one is set. Else, return NAN.
static const DetectorSet allDetectors
The set of all detectors.
bool hasTemporaryEventT0(const Const::DetectorSet &detectorSet=Const::allDetectors) const
Check if one of the detectors in the given set has a temporary t0 estimation.
Abstract base class for different kinds of events.
void clearEventT0()
Clear the final EventT0, this is neded in case some algorithm has set one for an itertive t0 finding ...
double getEventT0() const
Return the final event t0, if one is set. Else, return NAN.
const std::vector< EventT0Component > & getTemporaryEventT0s() const
Return the list of all temporary event t0 estimations.
EventT0Component()=default
Empty constructor for ROOT.
void addTemporaryEventT0(const EventT0Component &eventT0)
Add another temporary double T0 estimation.