Belle II Software  release-08-01-10
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 
18 namespace Belle2 {
23  namespace bgo {
24 
33  class BgoStudyModule : public HistoModule {
34 
35  public:
36 
41 
45  virtual ~BgoStudyModule();
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 
77  virtual void defineHisto() override;
78 
79 
80  private:
81 
83  //virtual void getXMLData();
85  std::vector<Double_t> m_Ethres;
86 
87 
89  TH1F* h_bgo_rate[2];
91  TH2F* h_bgo_rs_rate[2];
93  TH2F* h_bgo_Evtof1[18];
95  TH2F* h_bgo_Evtof2[18];
97  TH2F* h_bgo_Evtof3[18];
99  TH2F* h_bgo_Evtof[18];
101  TH1F* h_bgo_edep[18];
103  TH1F* h_bgo_edep1[18];
105  TH1F* h_bgo_edep2[18];
107  TH1F* h_bgo_edep1Weight[18];
109  TH1F* h_bgo_edep2Weight[18];
111  TH2F* h_bgo_rs_edep1[18];
113  TH2F* h_bgo_rs_edep2[18];
118  };
119 
120  }
122 }
123 
124 #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.