Belle II Software development
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
18namespace Belle2 {
23 class klm_trig_linear_fit_t;
24 class klmtrg_layer_counter_t;
25
26 class KLMTriggerModule : public Module {
27 public:
28
29 // Constructor
31
32 // Destructor
33 virtual ~KLMTriggerModule() { };
34
35 virtual void initialize() override;
36 virtual void beginRun() override;
37 virtual void event() override;
38 virtual void endRun() override;
39 virtual void terminate() override { };
40
41 private: // Parameters
42
43
44
45
46 int m_event_nr = 0;
47
48 struct geometry_data;
49 std::shared_ptr<geometry_data> m_geometry;
50
51
52 std::shared_ptr<klmtrg_layer_counter_t> m_klmtrg_layer_counter;
53
54
55
56 std::shared_ptr<klm_trig_linear_fit_t> m_klm_trig_linear_fit;
57
58 std::vector<int> m_layerUsed;
59 std::string m_dummy_used_layers;
60 std::string m_geometry_fileName;
61
62 int y_cutoff = 100;
63 int m_intercept_cutoff = 500;
64
66 std::string m_dump_Path;
67
68 };
70} // 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.
std::string m_dump_Path
Name of the file for debugging output.
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.