Belle II Software development
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
30
31 public:
32
37
41 virtual ~BeamabortStudyModule();
42
47 virtual void initialize() override;
48
53 virtual void beginRun() override;
54
58 virtual void event() override;
59
64 virtual void endRun() override;
65
70 virtual void terminate() override;
71
75 virtual void defineHisto() override;
76
77
78 private:
79
81 virtual void getXMLData();
82
84 //int nDIA = 0;
86 //int Event = 0;
91
93 TH1F* h_dia_rate[10];
95 TH2F* h_dia_rs_rate[10];
97 TH1F* h_dia_dose[100];
99 TH1F* h_dia_doseWeight[100];
101 TH1F* h_dia_amp[100];
103 TH1F* h_dia_idose[100];
107 TH2F* h_dia_rs_idose[100];
111 TH1F* h_dia_iamp[100];
113 TH1F* h_dia_itime[100];
115 TH1F* h_dia_ivtime[100];
117 TH1F* h_dia_Amp[100];
119 TH1F* h_dia_edep[100];
121 TH1F* h_dia_time[100];
123 TH1F* h_dia_vtime[100];
124 };
125
126 }
128}
129
130#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.