Belle II Software  release-05-02-19
ClawsDigitizerModule.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 CLAWSDIGITIZERMODULE_H
12 #define CLAWSDIGITIZERMODULE_H
13 
14 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreArray.h>
16 #include <beast/claws/dataobjects/ClawsHit.h>
17 #include <vector>
18 
20 const Int_t MAXSIZE = 10000;
22 const Int_t MAXtSIZE = 1000;
23 
24 namespace Belle2 {
29  namespace claws {
36  class ClawsDigitizerModule : public Module {
37 
38  public:
39 
44 
46  virtual ~ClawsDigitizerModule();
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  StoreArray<ClawsHit> m_clawsHit;
67  virtual void getXMLData();
68 
70  double m_TimeStep;
74  std::vector<Double_t> m_C_MIP_to_PE;
78  double m_MinTime;
80  double m_MaxTime;
82  double m_PEthres;
84  //double hitsarrayinPE[1000][100];
85 
86  };
87 
88  }
90 }
91 
92 #endif /* CLAWSDIGITIZERMODULE_H */
Belle2::claws::ClawsDigitizerModule
Claws tube digitizer.
Definition: ClawsDigitizerModule.h:36
Belle2::claws::ClawsDigitizerModule::beginRun
virtual void beginRun() override
Called when entering a new run.
Definition: ClawsDigitizerModule.cc:67
Belle2::claws::ClawsDigitizerModule::m_MinTime
double m_MinTime
Lower time limit.
Definition: ClawsDigitizerModule.h:78
Belle2::claws::ClawsDigitizerModule::terminate
virtual void terminate() override
This method is called at the end of the event processing.
Definition: ClawsDigitizerModule.cc:151
Belle2::claws::ClawsDigitizerModule::m_C_MIP_to_PE
std::vector< Double_t > m_C_MIP_to_PE
Convertor factor MIP to PE.
Definition: ClawsDigitizerModule.h:74
Belle2::claws::ClawsDigitizerModule::m_C_keV_to_MIP
double m_C_keV_to_MIP
Convertor factor keV to MIP.
Definition: ClawsDigitizerModule.h:72
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::claws::ClawsDigitizerModule::getXMLData
virtual void getXMLData()
Array for ClawsHit.
Definition: ClawsDigitizerModule.cc:132
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::claws::ClawsDigitizerModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: ClawsDigitizerModule.cc:57
Belle2::claws::ClawsDigitizerModule::ClawsDigitizerModule
ClawsDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
Definition: ClawsDigitizerModule.cc:38
Belle2::claws::ClawsDigitizerModule::m_TimeStep
double m_TimeStep
Time step.
Definition: ClawsDigitizerModule.h:70
Belle2::claws::ClawsDigitizerModule::event
virtual void event() override
This method is the core of the module.
Definition: ClawsDigitizerModule.cc:71
Belle2::claws::ClawsDigitizerModule::endRun
virtual void endRun() override
This method is called if the current run ends.
Definition: ClawsDigitizerModule.cc:147
Belle2::claws::ClawsDigitizerModule::m_MaxTime
double m_MaxTime
Upper time limit.
Definition: ClawsDigitizerModule.h:80
Belle2::claws::ClawsDigitizerModule::m_PEthres
double m_PEthres
Energy threshold.
Definition: ClawsDigitizerModule.h:82
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::claws::ClawsDigitizerModule::m_ScintCell
int m_ScintCell
Number of CLAWS scintillator cell.
Definition: ClawsDigitizerModule.h:76