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 };
58
59}
Class to extract the event t0.
std::optional< EventT0::EventT0Component > m_eventT0Before
TrackFindingCDC::Findlet< AIOTypes... > Super
Type of the base class.
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.