Belle II Software  release-08-01-10
ClawsDigitizerModule.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 CLAWSDIGITIZERMODULE_H
10 #define CLAWSDIGITIZERMODULE_H
11 
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <beast/claws/dataobjects/ClawsHit.h>
15 #include <vector>
16 
18 const Int_t MAXSIZE = 10000;
20 const Int_t MAXtSIZE = 1000;
21 
22 namespace Belle2 {
27  namespace claws {
37  class ClawsDigitizerModule : public Module {
38 
39  public:
40 
45 
49  virtual ~ClawsDigitizerModule();
50 
55  virtual void initialize() override;
56 
61  virtual void beginRun() override;
62 
66  virtual void event() override;
67 
72  virtual void endRun() override;
73 
78  virtual void terminate() override;
79 
80 
81  private:
85  virtual void getXMLData();
86 
88  double m_TimeStep;
92  std::vector<Double_t> m_C_MIP_to_PE;
96  double m_MinTime;
98  double m_MaxTime;
100  double m_PEthres;
102  //double hitsarrayinPE[1000][100];
103 
104  };
105 
106  }
108 }
109 
110 #endif /* CLAWSDIGITIZERMODULE_H */
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
std::vector< Double_t > m_C_MIP_to_PE
Convertor factor MIP to PE.
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 CLAWS.xml: tube location, drift data filename, sigma of impulse response function
virtual void terminate() override
Termination action.
int m_ScintCell
Number of CLAWS scintillator cell.
virtual void beginRun() override
Called when entering a new run.
ClawsDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
double m_C_keV_to_MIP
Convertor factor keV to MIP.
StoreArray< ClawsHit > m_clawsHit
Array for ClawsHit.
Abstract base class for different kinds of events.