Belle II Software release-09-00-00
BeamabortStudyModule.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 BEAMABORTSTUDYMODULE_H
10#define BEAMABORTSTUDYMODULE_H
11
12#include <framework/core/HistoModule.h>
13
14#include <TH1.h>
15#include <TH2.h>
16
17namespace Belle2 {
22 namespace beamabort {
23
33
34 public:
35
40
44 virtual ~BeamabortStudyModule();
45
50 virtual void initialize() override;
51
56 virtual void beginRun() override;
57
61 virtual void event() override;
62
67 virtual void endRun() override;
68
73 virtual void terminate() override;
74
78 virtual void defineHisto() override;
79
80
81 private:
82
84 virtual void getXMLData();
85
87 //int nDIA = 0;
89 //int Event = 0;
94
96 TH1F* h_dia_rate[10];
98 TH2F* h_dia_rs_rate[10];
100 TH1F* h_dia_dose[100];
104 TH1F* h_dia_amp[100];
106 TH1F* h_dia_idose[100];
110 TH2F* h_dia_rs_idose[100];
114 TH1F* h_dia_iamp[100];
116 TH1F* h_dia_itime[100];
118 TH1F* h_dia_ivtime[100];
120 TH1F* h_dia_Amp[100];
122 TH1F* h_dia_edep[100];
124 TH1F* h_dia_time[100];
126 TH1F* h_dia_vtime[100];
127 };
128
129 }
131}
132
133#endif /* BEAMABORTSTUDYMODULE_H */
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
Study module for Beamaborts (BEAST)
TH1F * h_dia_ivtime[100]
histo time weighted by volt
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 BEAMABORT.xml: tube location, drift data filename, sigma of impulse response function
virtual void terminate() override
Termination action.
BeamabortStudyModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void beginRun() override
Called when entering a new run.
TH1F * h_dia_vtime[100]
histo time weighted by volt
virtual void defineHisto() override
Defines the histograms.
Abstract base class for different kinds of events.