9#include <framework/dataobjects/EventT0.h>
10#include <gtest/gtest.h>
17 TEST(
EventT0, UncertaintyCalculation)
48 TEST(
EventT0, RetrievalOfTemporary)
65 ASSERT_EQ(cdcTemporaries.size(), 2);
67 ASSERT_DOUBLE_EQ(cdcTemporaries[0].eventT0, -1.0f);
68 ASSERT_DOUBLE_EQ(cdcTemporaries[1].eventT0, -2.0f);
Storage element for the eventwise T0 estimation.
void setEventT0(double eventT0, double eventT0Uncertainty, const Const::DetectorSet &detector, const std::string &algorithm="")
Replace/set the final double T0 estimation.
double getEventT0() const
Return the final event t0, if one is set. Else, return NAN.
bool hasEventT0() const
Check if a final event t0 is set.
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.
bool hasTemporaryEventT0(const Const::DetectorSet &detectorSet=Const::allDetectors) const
Check if one of the detectors in the given set has a temporary t0 estimation.
unsigned long getNumberOfTemporaryEventT0s() const
Return the number of stored event T0s.
Const::DetectorSet getTemporaryDetectors() const
Get the detectors that have determined temporary event T0s.
double getEventT0Uncertainty() const
Return the final event t0 uncertainty, if one is set. Else, return NAN.
Abstract base class for different kinds of events.
Structure for storing the extracted event t0s together with its detector and its uncertainty.