Belle II Software  release-05-02-19
BgoDigitizerModule.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 BGODIGITIZERMODULE_H
12 #define BGODIGITIZERMODULE_H
13 
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <beast/bgo/dataobjects/BgoHit.h>
17 
18 namespace Belle2 {
23  namespace bgo {
33  class BgoDigitizerModule : public Module {
34 
35  public:
36 
41 
43  virtual ~BgoDigitizerModule();
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 
62  StoreArray<BgoHit> m_bgoHit;
66  virtual void getXMLData();
67  /*
68  Double_t GetEnergyResolutionGeV(Double_t pEnergy) const
69  {
70  // Returns energy resolution in GeV when supplied Energy in GeV
71  return (m_EnergyResolutionFactor * TMath::Sqrt(pEnergy) + m_EnergyResolutionConst * pEnergy);
72 
73  }
74  */
76  Double_t GetEnergyResolutionGeV(Double_t, Int_t);
77 
79  int nBGO = 8;
81  double m_Threshold[8];
83  double m_Range[8];
85  double m_EnergyResolutionFactor[8];
88 
89  };
90 
91  }
93 }
94 
95 #endif /* BGODIGITIZERMODULE_H */
Belle2::bgo::BgoDigitizerModule::beginRun
virtual void beginRun() override
Called when entering a new run.
Definition: BgoDigitizerModule.cc:63
Belle2::bgo::BgoDigitizerModule::m_EnergyResolutionFactor
double m_EnergyResolutionFactor[8]
Energy resolution factor.
Definition: BgoDigitizerModule.h:93
Belle2::bgo::BgoDigitizerModule::m_EnergyResolutionConst
double m_EnergyResolutionConst[8]
Energy resolution constant.
Definition: BgoDigitizerModule.h:95
Belle2::bgo::BgoDigitizerModule::m_Threshold
double m_Threshold[8]
Energy threshold.
Definition: BgoDigitizerModule.h:89
Belle2::bgo::BgoDigitizerModule::getXMLData
virtual void getXMLData()
Array for Bgo Hits.
Definition: BgoDigitizerModule.cc:91
Belle2::bgo::BgoDigitizerModule::BgoDigitizerModule
BgoDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: BgoDigitizerModule.cc:37
Belle2::bgo::BgoDigitizerModule::event
virtual void event() override
This method is the core of the module.
Definition: BgoDigitizerModule.cc:67
Belle2::bgo::BgoDigitizerModule::m_Range
double m_Range[8]
Energy range.
Definition: BgoDigitizerModule.h:91
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::bgo::BgoDigitizerModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: BgoDigitizerModule.cc:53
Belle2::bgo::BgoDigitizerModule::nBGO
int nBGO
number of detectors.
Definition: BgoDigitizerModule.h:87
Belle2::bgo::BgoDigitizerModule::GetEnergyResolutionGeV
Double_t GetEnergyResolutionGeV(Double_t, Int_t)
Fold energy resolution.
Definition: BgoDigitizerModule.cc:126
Belle2::bgo::BgoDigitizerModule::terminate
virtual void terminate() override
This method is called at the end of the event processing.
Definition: BgoDigitizerModule.cc:138
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::bgo::BgoDigitizerModule
Bgo tube digitizer.
Definition: BgoDigitizerModule.h:41
Belle2::bgo::BgoDigitizerModule::endRun
virtual void endRun() override
This method is called if the current run ends.
Definition: BgoDigitizerModule.cc:134