Belle II Software development
He3DigitizerModule.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 HE3DIGITIZERMODULE_H
10#define HE3DIGITIZERMODULE_H
11
12#include <beast/he3tube/dataobjects/He3tubeSimHit.h>
13
14#include <framework/core/Module.h>
15#include <framework/datastore/StoreArray.h>
16#include <beast/he3tube/dataobjects/He3tubeHit.h>
17
18namespace Belle2 {
23 namespace he3tube {
30 class He3DigitizerModule : public Module {
31
32 public:
33
38
42 virtual ~He3DigitizerModule();
43
48 virtual void initialize() override;
49
54 virtual void beginRun() override;
55
59 virtual void event() override;
60
65 virtual void endRun() override;
66
71 virtual void terminate() override;
72
73 private:
77 virtual void getXMLData();
79 int numOfTubes = 0;
81 bool m_mcpExist = false;
83 int Event = 0;
87 //double m_Workfct = 35.075;
88 double m_Workfct = 24.6;
90 double m_Fanofac = 220;
92 void ProcessHit(He3tubeSimHit* aHit, double* lowTime, double* edepDet, double* NbEle_tot);
93
94
95
96 };
97
98 }
100}
101
102#endif /* HE3DIGITIZERMODULE_H */
ClassHe3tubeSimHit - Geant4 simulated hit for the He3tube detector.
Definition: He3tubeSimHit.h:30
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
StoreArray< He3tubeHit > m_he3tubeHit
Array for He3tubeHit.
void ProcessHit(He3tubeSimHit *aHit, double *lowTime, double *edepDet, double *NbEle_tot)
Process the he3tube simhits.
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 HE3TUBE.xml: tube location, drift data filename, sigma of impulse response function
bool m_mcpExist
Whether or not mcparticle array exists.
virtual void terminate() override
Termination action.
double m_ConversionFactor
Conversion to ADC counts, set in steering file.
virtual void beginRun() override
Called when entering a new run.
double m_Workfct
ionization energy of He3
He3DigitizerModule()
Constructor: Sets the description, the properties and the parameters of the module.
Abstract base class for different kinds of events.