Belle II Software  release-06-00-14
KLMTriggerModule.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 #ifndef KLMTRIGGERMODULE_H
10 #define KLMTRIGGERMODULE_H
11 
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreObjPtr.h>
14 #include <framework/database/DBObjPtr.h>
15 #include <trg/klm/dataobjects/KLMTrgSummary.h>
16 #include <trg/klm/dbobjects/KLMTriggerParameters.h>
17 
18 namespace Belle2 {
27  class KLMTriggerModule : public Module {
28  public:
29 
30  // Constructor
32 
33  // Destructor
34  virtual ~KLMTriggerModule() { };
35 
36  virtual void initialize() override;
37  virtual void beginRun() override;
38  virtual void event() override;
39  virtual void endRun() override;
40  virtual void terminate() override { };
41 
42  private: // Parameters
43 
44  StoreObjPtr<KLMTrgSummary> m_KLMTrgSummary;
45 
46  DBObjPtr<KLMTriggerParameters> m_KLMTriggerParameters;
47 
48  int m_nLayerTrigger = 0;
49  std::vector<int> m_layerUsed;
50  std::string m_dummy_used_layers;
51  };
53 } // namespace Belle2
54 
55 #endif // KLMTRIGGERMODULE_H
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
virtual void terminate() override
This method is called at the end of the event processing.
virtual void initialize() override
Initialize the Module.
virtual void event() override
This method is the core of the module.
virtual void endRun() override
This method is called if the current run ends.
virtual void beginRun() override
Called when entering a new run.
Base class for Modules.
Definition: Module.h:72
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:95
Abstract base class for different kinds of events.