Belle II Software  release-08-01-10
OnlineEventT0CreatorModule.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 
9 #pragma once
10 
11 /* Basf2 headers. */
12 #include <framework/core/Module.h>
13 #include <framework/datastore/DataStore.h>
14 #include <framework/datastore/StoreArray.h>
15 #include <framework/datastore/StoreObjPtr.h>
16 #include <framework/dataobjects/EventT0.h>
17 #include <hlt/dataobjects/OnlineEventT0.h>
18 
19 
20 namespace Belle2 {
35 
36  public:
37 
40 
42  virtual ~OnlineEventT0CreatorModule() = default;
43 
45  void initialize() override;
46 
51  void event() override;
52 
53  private:
54 
60  bool m_executeThisModule{false};
61 
64 
67 
68  };
69 
71 } // Belle2 namespace
Base class for Modules.
Definition: Module.h:72
Module to write the EventT0s computed on the online systems (HLT).
StoreObjPtr< EventT0 > m_eventT0
StoreArray of EventT0.
virtual ~OnlineEventT0CreatorModule()=default
Destructor.
void initialize() override
Initialize: check DataStore content.
bool m_executeThisModule
Module parameter for executing the module or not.
void event() override
This method is called for each event.
StoreArray< OnlineEventT0 > m_onlineEventT0
StoreArray of OnlineEventT0.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.