Belle II Software release-09-00-00
CsiDigitizer_v2Module.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 CSIDIGITIZER_V2MODULE_H
10#define CSIDIGITIZER_V2MODULE_H
11
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14#include <beast/csi/dataobjects/CsiHit_v2.h>
15
16namespace Belle2 {
21 namespace csi {
32
33 public:
34
39
43 virtual ~CsiDigitizer_v2Module();
44
49 virtual void initialize() override;
50
55 virtual void beginRun() override;
56
60 virtual void event() override;
61
66 virtual void endRun() override;
67
72 virtual void terminate() override;
73
74
75 private:
79 virtual void getXMLData();
80 /*
81 Double_t GetEnergyResolutionGeV(Double_t pEnergy) const
82 {
83 // Returns energy resolution in GeV when supplied Energy in GeV
84 return (m_EnergyResolutionFactor * TMath::Sqrt(pEnergy) + m_EnergyResolutionConst * pEnergy);
85
86 }
87 */
89 Double_t GetEnergyResolutionGeV(Double_t, int);
90
92 int nCSI = 18;
94 double m_Threshold[18];
96 double m_Range[18];
101
102 };
103
104 }
106}
107
108#endif /* CSIDIGITIZER_V2MODULE_H */
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
double m_EnergyResolutionConst[18]
Energy resolution constant.
Double_t GetEnergyResolutionGeV(Double_t, int)
Fold energy resolution.
virtual void endRun() override
End-of-run action.
virtual void getXMLData()
reads data from CSI.xml: threshold in MeV, range in MeV, and resolution in %
virtual void terminate() override
Termination action.
StoreArray< CsiHit_v2 > m_csiHit_v2
array for CsiHit_v2
virtual void beginRun() override
Called when entering a new run.
double m_Threshold[18]
Energy threshold.
double m_EnergyResolutionFactor[18]
Energy resolution factor.
CsiDigitizer_v2Module()
Constructor: Sets the description, the properties and the parameters of the module.
Abstract base class for different kinds of events.