Belle II Software development
DosiDigitizerModule.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 DOSIDIGITIZERMODULE_H
10#define DOSIDIGITIZERMODULE_H
11
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14#include <beast/dosi/dataobjects/DosiHit.h>
15
16namespace Belle2 {
21 namespace dosi {
28 class DosiDigitizerModule : public Module {
29
30 public:
31
36
40 virtual ~DosiDigitizerModule();
41
46 virtual void initialize() override;
47
52 virtual void beginRun() override;
53
57 virtual void event() override;
58
63 virtual void endRun() override;
64
69 virtual void terminate() override;
70
71
72 private:
76 virtual void getXMLData();
77 /*
78 Double_t GetEnergyResolutionGeV(Double_t pEnergy) const
79 {
80 // Returns energy resolution in GeV when supplied Energy in GeV
81 return (m_EnergyResolutionFactor * TMath::Sqrt(pEnergy) + m_EnergyResolutionConst * pEnergy);
82
83 }
84 */
86 Double_t GetEnergyResolutionGeV(Double_t, Int_t);
87
89 int nDOSI = 8;
91 //double m_Threshold[8];
93 //double m_Range[8];
98
99 };
100
101 }
103}
104
105#endif /* DOSIDIGITIZERMODULE_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.
double m_EnergyResolutionConst[8]
Energy resolution constant.
virtual void event() override
Event processor.
virtual void endRun() override
End-of-run action.
virtual void getXMLData()
reads data from DOSI.xml: threshold in MeV, range in MeV, and resolution in %
double m_EnergyResolutionFactor[8]
Energy threshold.
virtual void terminate() override
Termination action.
virtual void beginRun() override
Called when entering a new run.
StoreArray< DosiHit > m_dosiHit
array for DosiHit
Double_t GetEnergyResolutionGeV(Double_t, Int_t)
Fold energy resolution.
DosiDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
Abstract base class for different kinds of events.