8#include <tracking/eventTimeExtraction/findlets/FullGridChi2TrackTimeExtractor.h>
9#include <tracking/eventTimeExtraction/findlets/BaseEventTimeExtractor.icc.h>
10#include <tracking/eventTimeExtraction/findlets/GridEventTimeExtractor.icc.h>
11#include <tracking/eventTimeExtraction/findlets/IterativeEventTimeExtractor.icc.h>
12#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
13#include <tracking/dataobjects/RecoTrack.h>
14#include <framework/core/ModuleParamList.templateDetails.h>
17using namespace TrackFindingCDC;
30 m_gridExtractor.exposeParameters(moduleParamList, prefixed(
"Grid", prefix));
31 m_finalExtractor.exposeParameters(moduleParamList, prefixed(
"Refiner", prefix));
33 moduleParamList->
getParameter<
unsigned int>(
"GridIterations").setDefaultValue(1);
34 moduleParamList->
getParameter<
bool>(
"RefinerUseLastEventT0").setDefaultValue(
true);
36 moduleParamList->
addParameter(prefixed(prefix,
"skipIfSVDEventT0Present"),
38 "Skip execution of the time consuming FullGridChi2 algorithm if a valid SVD based EventT0 estimate is present. " \
39 "If set to true, this module is only used to get an CDC based EventT0 in the few events where no sufficient SVD information is available to estimate EventT0.",
51 const auto& temporaryT0Extractions =
m_eventT0->getTemporaryEventT0s(Const::CDC);
52 B2ASSERT(
"There should only be a single or none extraction at this stage!", temporaryT0Extractions.size() <= 1);
54 if (temporaryT0Extractions.empty()) {
63 m_eventT0->setEventT0(temporaryT0Extractions[0]);
70 B2DEBUG(25,
"Resetting the event t0 as the final extraction was not successful.");
The Module parameter list class.
void addProcessingSignalListener(ProcessingSignalListener *psl)
ModuleParam< T > & getParameter(const std::string &name) const
Returns a reference to a parameter.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
bool wasSuccessful() const
void resetEventT0() const
Abstract base class for different kinds of events.