Belle II Software development
KLMScintillatorSimulatorModule.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/* KLM headers. */
12#include <klm/dbobjects/KLMScintillatorDigitizationParameters.h>
13
14/* Basf2 headers. */
15#include <framework/core/Module.h>
16#include <framework/database/DBObjPtr.h>
17#include <framework/dbobjects/HardwareClockSettings.h>
18
19/* ROOT headers. */
20#include <TFile.h>
21
22namespace Belle2 {
27
35
36 public:
37
42
47
51 void initialize() override;
52
56 void terminate() override;
57
58 private:
59
67 void generateHistogram(const char* name, double l, double d, int npe);
68
70 std::string m_mode;
71
73 std::string m_out;
74
76 TFile* m_fout;
77
80
83
86
88 float* m_hDir;
89
91 float* m_hRef;
92
93 };
94
96}
Class for accessing objects in the database.
Definition DBObjPtr.h:21
Class to store KLM scintillator simulation parameters in the database.
void generateHistogram(const char *name, double l, double d, int npe)
Generate output histogram.
void terminate() override
This method is called at the end of the event processing.
KLMScintillatorDigitizationParameters * m_SciSimPar
Scintillator simulation parameters.
DBObjPtr< HardwareClockSettings > m_HardwareClockSettings
Hardware clock settings.
DBObjPtr< KLMScintillatorDigitizationParameters > m_SciSimParDatabase
Scintillator simulation parameters.
Module()
Constructor.
Definition Module.cc:30
Abstract base class for different kinds of events.