Belle II Software  release-08-01-10
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 #pragma once
10 
11 #include <memory>
12 #include <vector>
13 #include <framework/core/Module.h>
14 
15 
16 
17 
18 namespace Belle2 {
28  class KLMTriggerModule : public Module {
29  public:
30 
31  // Constructor
33 
34  // Destructor
35  virtual ~KLMTriggerModule() { };
36 
37  virtual void initialize() override;
38  virtual void beginRun() override;
39  virtual void event() override;
40  virtual void endRun() override;
41  virtual void terminate() override { };
42 
43  private: // Parameters
44  int m_nLayerTrigger = 0;
45 
46 
47 
48  int m_event_nr = 0;
49 
50  struct geometry_data;
51  std::shared_ptr<geometry_data> m_geometry;
52  std::vector<int> m_layerUsed;
53  std::string m_dummy_used_layers;
54  std::string m_geometry_fileName;
55 
56  };
58 } // namespace Belle2
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
Abstract base class for different kinds of events.