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>
16 using namespace TrackFindingCDC;
22 addProcessingSignalListener(&m_finalExtractor);
23 addProcessingSignalListener(&m_gridExtractor);
29 m_gridExtractor.exposeParameters(moduleParamList, prefixed(
"Grid", prefix));
30 m_finalExtractor.exposeParameters(moduleParamList, prefixed(
"Refiner", prefix));
32 moduleParamList->
getParameter<
unsigned int>(
"GridIterations").setDefaultValue(1);
33 moduleParamList->
getParameter<
bool>(
"RefinerUseLastEventT0").setDefaultValue(
true);
39 const auto& temporaryT0Extractions = m_eventT0->getTemporaryEventT0s(Const::CDC);
40 B2ASSERT(
"There should only be a single or none extraction at this stage!", temporaryT0Extractions.size() <= 1);
42 if (temporaryT0Extractions.empty()) {
43 m_gridExtractor.apply(recoTracks);
45 if (not m_gridExtractor.wasSuccessful()) {
46 m_wasSuccessful =
false;
51 m_eventT0->setEventT0(temporaryT0Extractions[0]);
54 m_finalExtractor.apply(recoTracks);
55 m_wasSuccessful = m_finalExtractor.wasSuccessful();
57 if (not wasSuccessful()) {
58 B2DEBUG(50,
"Resetting the event t0 as the final extraction was not successful.");
The Module parameter list class.
ModuleParam< T > & getParameter(const std::string &name) const
Returns a reference to a parameter.
Abstract base class for different kinds of events.