Belle II Software development
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
18const Int_t MAXSIZE = 10000;
20const Int_t MAXtSIZE = 1000;
21
22namespace Belle2 {
27 namespace claws {
35
36 public:
37
42
46 virtual ~ClawsDigitizerModule();
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:
82 virtual void getXMLData();
83
85 double m_TimeStep;
89 std::vector<Double_t> m_C_MIP_to_PE;
93 double m_MinTime;
95 double m_MaxTime;
97 double m_PEthres;
99 //double hitsarrayinPE[1000][100];
100
101 };
102
103 }
105}
106
107#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.