 |
Belle II Software
release-05-01-25
|
10 #include <framework/dataobjects/EventT0.h>
12 #include <framework/logging/Logger.h>
29 B2ASSERT(
"Not EventT0 available, but someone tried to acces it. Check with hasEventT0() method before!",
hasEventT0());
50 const std::string& algorithm)
64 if (detectorSet.
contains(eventT0Component.detectorSet)) {
79 std::vector<EventT0::EventT0Component> detectorT0s;
81 const auto lmdSelectDetector = [detector](
EventT0::EventT0Component const & c) {
return c.detectorSet.contains(detector);};
83 std::back_inserter(detectorT0s), lmdSelectDetector);
93 temporarySet += eventT0Component.detectorSet;
Const::DetectorSet getTemporaryDetectors() const
Get the detectors that have determined temporary event T0s.
bool m_hasEventT0
Internal storage of the final eventT0 is set.
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.
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.
double getEventT0Uncertainty() const
Return the final event t0 uncertainty, if one is set. Else, return NAN.
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 ...
bool contains(const DetectorSet &set) const
Check whether this set contains another set.
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.
void addTemporaryEventT0(const EventT0Component &eventT0)
Add another temporary double T0 estimation.