Belle II Software development
QcsmonitorDigitizerModule.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 QCSMONITORDIGITIZERMODULE_H
10#define QCSMONITORDIGITIZERMODULE_H
11
12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14#include <beast/qcsmonitor/dataobjects/QcsmonitorHit.h>
15
17const Int_t MAXSIZE = 10000;
19const Int_t MAXtSIZE = 1000;
20
21namespace Belle2 {
26 namespace qcsmonitor {
34
35 public:
36
41
46
51 virtual void initialize() override;
52
57 virtual void beginRun() override;
58
62 virtual void event() override;
63
68 virtual void endRun() override;
69
74 virtual void terminate() override;
75
76
77 private:
81 virtual void getXMLData();
82
84 double m_TimeStep;
92 double m_MinTime;
94 double m_MaxTime;
96 double m_MIPthres;
98 double hitsarrayinMIP[1000][100];
99
100 };
101
102 }
104}
105
106#endif /* QCSMONITORDIGITIZERMODULE_H */
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
virtual void initialize() override
Initialize the Module.
QcsmonitorDigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void event() override
Event processor.
virtual void endRun() override
End-of-run action.
StoreArray< QcsmonitorHit > m_qcsmonitorHit
Array for QcsmonitorHit.
virtual void getXMLData()
reads data from QCSMONITOR.xml: tube location, drift data filename, sigma of impulse response functio...
virtual void terminate() override
Termination action.
int m_ScintCell
Number of QCSMONITOR scintillator cell.
virtual void beginRun() override
Called when entering a new run.
double m_C_keV_to_MIP
Convertor factor keV to MIP.
Abstract base class for different kinds of events.