Belle II Software development
ClawDigitizerModule.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 CLAWDIGITIZERMODULE_H
10#define CLAWDIGITIZERMODULE_H
11
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14#include <beast/claw/dataobjects/ClawHit.h>
15#include <vector>
16
18const Int_t MAXSIZE = 10000;
20const Int_t MAXtSIZE = 1000;
21
22namespace Belle2 {
27 namespace claw {
34 class ClawDigitizerModule : public Module {
35
36 public:
37
42
46 virtual ~ClawDigitizerModule();
47
52 virtual void initialize() override;
53
58 virtual void beginRun() override;
59
63 virtual void event() override;
64
69 virtual void endRun() override;
70
75 virtual void terminate() override;
76
77
78 private:
79
83 virtual void getXMLData();
84
86 double m_TimeStep;
90 std::vector<Double_t> m_C_MIP_to_PE;
94 double m_MinTime;
96 double m_MaxTime;
98 double m_PEthres;
100 //double hitsarrayinPE[1000][100];
101
102 };
103
104 }
106}
107
108#endif /* CLAWDIGITIZERMODULE_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.
ClawDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void endRun() override
End-of-run action.
virtual void getXMLData()
reads data from CLAW.xml: tube location, drift data filename, sigma of impulse response function
virtual void terminate() override
Termination action.
int m_ScintCell
Number of CLAW scintillator cell.
virtual void beginRun() override
Called when entering a new run.
double m_C_keV_to_MIP
Convertor factor keV to MIP.
StoreArray< ClawHit > m_clawHit
array for ClawHit
Abstract base class for different kinds of events.