Belle II Software  release-05-02-19
ClawDigitizerModule.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 CLAWDIGITIZERMODULE_H
12 #define CLAWDIGITIZERMODULE_H
13 
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <beast/claw/dataobjects/ClawHit.h>
17 #include <vector>
18 
20 const Int_t MAXSIZE = 10000;
22 const Int_t MAXtSIZE = 1000;
23 
24 namespace Belle2 {
29  namespace claw {
36  class ClawDigitizerModule : public Module {
37 
38  public:
39 
44 
46  virtual ~ClawDigitizerModule();
47 
49  virtual void initialize() override;
50 
52  virtual void beginRun() override;
53 
55  virtual void event() override;
56 
58  virtual void endRun() override;
60  virtual void terminate() override;
61 
62 
63  private:
64 
65  StoreArray<ClawHit> m_clawHit;
68  virtual void getXMLData();
69 
71  double m_TimeStep;
75  std::vector<Double_t> m_C_MIP_to_PE;
79  double m_MinTime;
81  double m_MaxTime;
83  double m_PEthres;
85  //double hitsarrayinPE[1000][100];
86 
87  };
88 
89  }
91 }
92 
93 #endif /* CLAWDIGITIZERMODULE_H */
Belle2::claw::ClawDigitizerModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: ClawDigitizerModule.cc:56
Belle2::claw::ClawDigitizerModule::m_C_keV_to_MIP
double m_C_keV_to_MIP
Convertor factor keV to MIP.
Definition: ClawDigitizerModule.h:73
Belle2::claw::ClawDigitizerModule::getXMLData
virtual void getXMLData()
array for ClawHit
Definition: ClawDigitizerModule.cc:128
Belle2::claw::ClawDigitizerModule::ClawDigitizerModule
ClawDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: ClawDigitizerModule.cc:37
Belle2::claw::ClawDigitizerModule::m_C_MIP_to_PE
std::vector< Double_t > m_C_MIP_to_PE
Convertor factor MIP to PE.
Definition: ClawDigitizerModule.h:75
Belle2::claw::ClawDigitizerModule::m_PEthres
double m_PEthres
Energy threshold.
Definition: ClawDigitizerModule.h:83
Belle2::claw::ClawDigitizerModule::m_MinTime
double m_MinTime
Lower time limit.
Definition: ClawDigitizerModule.h:79
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::claw::ClawDigitizerModule::m_TimeStep
double m_TimeStep
Time step.
Definition: ClawDigitizerModule.h:71
Belle2::claw::ClawDigitizerModule::beginRun
virtual void beginRun() override
Called when entering a new run.
Definition: ClawDigitizerModule.cc:66
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::claw::ClawDigitizerModule::endRun
virtual void endRun() override
This method is called if the current run ends.
Definition: ClawDigitizerModule.cc:144
Belle2::claw::ClawDigitizerModule::event
virtual void event() override
This method is the core of the module.
Definition: ClawDigitizerModule.cc:70
Belle2::claw::ClawDigitizerModule
Claw tube digitizer.
Definition: ClawDigitizerModule.h:36
Belle2::claw::ClawDigitizerModule::m_MaxTime
double m_MaxTime
Upper time limit.
Definition: ClawDigitizerModule.h:81
Belle2::claw::ClawDigitizerModule::m_ScintCell
int m_ScintCell
Number of CLAW scintillator cell.
Definition: ClawDigitizerModule.h:77
Belle2::claw::ClawDigitizerModule::terminate
virtual void terminate() override
This method is called at the end of the event processing.
Definition: ClawDigitizerModule.cc:148