Belle II Software  release-08-01-10
He3DigitizerModule.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 HE3DIGITIZERMODULE_H
10 #define HE3DIGITIZERMODULE_H
11 
12 #include <beast/he3tube/dataobjects/He3tubeSimHit.h>
13 
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <beast/he3tube/dataobjects/He3tubeHit.h>
17 
18 namespace Belle2 {
23  namespace he3tube {
33  class He3DigitizerModule : public Module {
34 
35  public:
36 
41 
45  virtual ~He3DigitizerModule();
46 
51  virtual void initialize() override;
52 
57  virtual void beginRun() override;
58 
62  virtual void event() override;
63 
68  virtual void endRun() override;
69 
74  virtual void terminate() override;
75 
76  private:
80  virtual void getXMLData();
82  int numOfTubes = 0;
84  bool m_mcpExist = false;
86  int Event = 0;
90  //double m_Workfct = 35.075;
91  double m_Workfct = 24.6;
93  double m_Fanofac = 220;
95  void ProcessHit(He3tubeSimHit* aHit, double* lowTime, double* edepDet, double* NbEle_tot);
96 
97 
98 
99  };
100 
101  }
103 }
104 
105 #endif /* HE3DIGITIZERMODULE_H */
ClassHe3tubeSimHit - Geant4 simulated hit for the He3tube detector.
Definition: He3tubeSimHit.h:30
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
StoreArray< He3tubeHit > m_he3tubeHit
Array for He3tubeHit.
void ProcessHit(He3tubeSimHit *aHit, double *lowTime, double *edepDet, double *NbEle_tot)
Process the he3tube simhits.
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
virtual void endRun() override
End-of-run action.
virtual void getXMLData()
reads data from HE3TUBE.xml: tube location, drift data filename, sigma of impulse response function
bool m_mcpExist
Whether or not mcparticle array exists.
virtual void terminate() override
Termination action.
double m_ConversionFactor
Conversion to ADC counts, set in steering file.
virtual void beginRun() override
Called when entering a new run.
double m_Workfct
ionization energy of He3
He3DigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
Abstract base class for different kinds of events.