Belle II Software development
BgoStudyModule.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 BGOSTUDYMODULE_H
10#define BGOSTUDYMODULE_H
11
12#include <framework/core/HistoModule.h>
13#include <vector>
14
15#include <TH1.h>
16#include <TH2.h>
17
18namespace Belle2 {
23 namespace bgo {
24
30 class BgoStudyModule : public HistoModule {
31
32 public:
33
38
42 virtual ~BgoStudyModule();
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
74 virtual void defineHisto() override;
75
76
77 private:
78
80 //virtual void getXMLData();
82 std::vector<Double_t> m_Ethres;
83
84
86 TH1F* h_bgo_rate[2];
88 TH2F* h_bgo_rs_rate[2];
90 TH2F* h_bgo_Evtof1[18];
92 TH2F* h_bgo_Evtof2[18];
94 TH2F* h_bgo_Evtof3[18];
96 TH2F* h_bgo_Evtof[18];
98 TH1F* h_bgo_edep[18];
100 TH1F* h_bgo_edep1[18];
102 TH1F* h_bgo_edep2[18];
108 TH2F* h_bgo_rs_edep1[18];
110 TH2F* h_bgo_rs_edep2[18];
115 };
116
117 }
119}
120
121#endif /* BGOSTUDYMODULE_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 Bgos (BEAST)
std::vector< Double_t > m_Ethres
reads data from BGO.xml: tube location, drift data filename, sigma of impulse response function
virtual ~BgoStudyModule()
Destructor.
TH1F * h_bgo_edep[18]
Energy deposited.
TH1F * h_bgo_edep1[18]
Energy deposited.
virtual void initialize() override
Initialize the Module.
TH2F * h_bgo_rs_edep2[18]
Energy deposited.
virtual void event() override
Event processor.
TH2F * h_bgo_rs_edep1Weight[18]
Energy deposited.
virtual void endRun() override
End-of-run action.
TH2F * h_bgo_Evtof[18]
Energy deposited vs TOF.
virtual void terminate() override
Termination action.
TH1F * h_bgo_edep2[18]
Energy deposited.
TH2F * h_bgo_rs_edep1[18]
Energy deposited.
virtual void beginRun() override
Called when entering a new run.
BgoStudyModule()
Constructor: Sets the description, the properties and the parameters of the module.
TH1F * h_bgo_edep1Weight[18]
Energy deposited.
TH2F * h_bgo_Evtof1[18]
Energy deposited vs TOF.
TH1F * h_bgo_edep2Weight[18]
Energy deposited.
TH2F * h_bgo_Evtof2[18]
Energy deposited vs TOF.
TH2F * h_bgo_Evtof3[18]
Energy deposited vs TOF.
TH2F * h_bgo_rs_edep2Weight[18]
Energy deposited.
virtual void defineHisto() override
Defines the histograms.
Abstract base class for different kinds of events.