Belle II Software  release-05-02-19
DosiDigitizerModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2014 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Igal Jaegle *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #ifndef DOSIDIGITIZERMODULE_H
12 #define DOSIDIGITIZERMODULE_H
13 
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <beast/dosi/dataobjects/DosiHit.h>
17 
18 namespace Belle2 {
23  namespace dosi {
33  class DosiDigitizerModule : public Module {
34 
35  public:
36 
41 
43  virtual ~DosiDigitizerModule();
44 
46  virtual void initialize() override;
47 
49  virtual void beginRun() override;
50 
52  virtual void event() override;
53 
55  virtual void endRun() override;
57  virtual void terminate() override;
58 
59 
60  private:
61  StoreArray<DosiHit> m_dosiHit;
64  virtual void getXMLData();
65  /*
66  Double_t GetEnergyResolutionGeV(Double_t pEnergy) const
67  {
68  // Returns energy resolution in GeV when supplied Energy in GeV
69  return (m_EnergyResolutionFactor * TMath::Sqrt(pEnergy) + m_EnergyResolutionConst * pEnergy);
70 
71  }
72  */
74  Double_t GetEnergyResolutionGeV(Double_t, Int_t);
75 
77  int nDOSI = 8;
79  //double m_Threshold[8];
81  //double m_Range[8];
83  double m_EnergyResolutionFactor[8];
86 
87  };
88 
89  }
91 }
92 
93 #endif /* DOSIDIGITIZERMODULE_H */
Belle2::dosi::DosiDigitizerModule::endRun
virtual void endRun() override
This method is called if the current run ends.
Definition: DosiDigitizerModule.cc:102
Belle2::dosi::DosiDigitizerModule::event
virtual void event() override
This method is the core of the module.
Definition: DosiDigitizerModule.cc:62
Belle2::dosi::DosiDigitizerModule::nDOSI
int nDOSI
number of detectors.
Definition: DosiDigitizerModule.h:85
Belle2::dosi::DosiDigitizerModule::DosiDigitizerModule
DosiDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: DosiDigitizerModule.cc:37
Belle2::dosi::DosiDigitizerModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: DosiDigitizerModule.cc:48
Belle2::dosi::DosiDigitizerModule::m_EnergyResolutionFactor
double m_EnergyResolutionFactor[8]
Energy threshold.
Definition: DosiDigitizerModule.h:91
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::dosi::DosiDigitizerModule::m_EnergyResolutionConst
double m_EnergyResolutionConst[8]
Energy resolution constant.
Definition: DosiDigitizerModule.h:93
Belle2::dosi::DosiDigitizerModule::getXMLData
virtual void getXMLData()
array for DosiHit
Definition: DosiDigitizerModule.cc:84
Belle2::dosi::DosiDigitizerModule::GetEnergyResolutionGeV
Double_t GetEnergyResolutionGeV(Double_t, Int_t)
Fold energy resolution.
Definition: DosiDigitizerModule.cc:94
Belle2::dosi::DosiDigitizerModule::terminate
virtual void terminate() override
This method is called at the end of the event processing.
Definition: DosiDigitizerModule.cc:106
Belle2::dosi::DosiDigitizerModule::beginRun
virtual void beginRun() override
Called when entering a new run.
Definition: DosiDigitizerModule.cc:58
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::dosi::DosiDigitizerModule
Dosi tube digitizer.
Definition: DosiDigitizerModule.h:41