Belle II Software development
BaseEventTimeExtractor.dcl.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <tracking/trackFindingCDC/findlets/base/Findlet.h>
11
12#include <framework/datastore/StoreObjPtr.h>
13#include <framework/dataobjects/EventT0.h>
14
15namespace Belle2 {
21 template<class ... AIOTypes>
23
24 private:
26 using Super = TrackFindingCDC::Findlet<AIOTypes...>;
27
28 public:
30 bool wasSuccessful() const;
31
33 virtual void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
34
36 virtual void initialize() override;
37
39 virtual void beginEvent() override;
40
41 protected:
43 void resetEventT0() const;
44
47
49 bool m_wasSuccessful = false;
50
51 private:
54
56 std::optional<EventT0::EventT0Component> m_eventT0Before;
57 };
59}
Class to extract the event t0.
std::optional< EventT0::EventT0Component > m_eventT0Before
Storage for the event t0 before this module ran.
StoreObjPtr< EventT0 > m_eventT0
Pointer to the storage of the eventwise T0 estimation in the data store.
bool m_param_overwriteExistingEstimation
Parameter if it is fine to overwrite the current EventT0.
bool m_wasSuccessful
Variable to show that the execution was successful.
The Module parameter list class.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
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.