8#include <tracking/eventTimeExtraction/findlets/Chi2BasedEventTimeExtractor.h>
10#include <tracking/eventTimeExtraction/utilities/TimeExtractionUtils.h>
11#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
13#include <framework/core/ModuleParamList.h>
14#include <framework/logging/Logger.h>
17using namespace TrackFindingCDC;
22 "Hard cut on this value of extracted times in the positive as well as the negative direction.",
32 double extractedDeltaT0 = derivatives.first;
33 double uncertainty = derivatives.second;
35 if (std::isnan(extractedDeltaT0)) {
36 B2DEBUG(25,
"Extracted delta t0 is nan. Aborting");
41 extractedDeltaT0 +=
m_eventT0->getEventT0();
42 const double oldUncertainty =
m_eventT0->getEventT0Uncertainty();
43 uncertainty = std::sqrt(uncertainty * uncertainty + oldUncertainty * oldUncertainty);
47 B2DEBUG(25,
"Extracted t0 of " << extractedDeltaT0 <<
" is too large");
54 B2DEBUG(25,
"Chi2 gave a result of " << extractedDeltaT0);
The Module parameter list class.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Abstract base class for different kinds of events.
Structure for storing the extracted event t0s together with its detector and its uncertainty.