10#include <tracking/eventTimeExtraction/findlets/BaseEventTimeExtractor.dcl.h>
12#include <tracking/trackFindingCDC/utilities/StringManipulation.h>
13#include <framework/core/ModuleParamList.h>
20 template<
class ... AIOTypes>
23 return m_wasSuccessful;
26 template<
class ... AIOTypes>
29 moduleParamList->
addParameter(TrackFindingCDC::prefixed(prefix,
"overwriteExistingEstimation"),
30 m_param_overwriteExistingEstimation,
31 "Is it fine to overwrite the current EventT0?",
32 m_param_overwriteExistingEstimation);
34 Super::exposeParameters(moduleParamList, prefix);
37 template<
class ... AIOTypes>
41 m_eventT0.registerInDataStore();
44 template<
class ... AIOTypes>
49 m_wasSuccessful =
false;
51 if (not m_eventT0.isValid()) {
55 m_eventT0Before = m_eventT0->getEventT0Component();
58 template<
class ... AIOTypes>
61 if (m_eventT0Before) {
62 m_eventT0->setEventT0(*m_eventT0Before);
64 m_eventT0->clearEventT0();
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.
virtual void initialize() override
Initialize the event t0 store obj ptr.
virtual void beginEvent() override
Create the event t0 store obj ptr.
virtual void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose our parameters to the super module.
bool wasSuccessful() const
Returns true if the last run t0 extraction was successful.
void resetEventT0() const
Reset the t0 value to cached value if it exists or clear it otherwise.
Abstract base class for different kinds of events.