Belle II Software  release-08-01-10
ClawsStudyModule.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 CLAWSSTUDYMODULE_H
10 #define CLAWSSTUDYMODULE_H
11 
12 #include <framework/core/HistoModule.h>
13 
14 #include <TH1.h>
15 #include <TH2.h>
16 
17 namespace Belle2 {
22  namespace claws {
23 
32  class ClawsStudyModule : public HistoModule {
33 
34  public:
35 
40 
44  virtual ~ClawsStudyModule();
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();
86  double m_Ethres;
87 
88  // These histrograms are currently
89  // not used in the code, but just declared.
90  // Commented out by the SW shifter, March 14th 2018
92  //TH2F* h_clawss_Evtof1[16];
94  //TH2F* h_clawss_Evtof2[16];
96  //TH2F* h_clawss_Evtof3[16];
98  //TH2F* h_clawss_Evtof4[16];
100  //TH1F* h_clawss_edep[16];
102  //TH1F* h_Wclawss_edep[16];
103 
105  TH1F* h_clawss_rate1[16];
107  TH1F* h_clawss_rate2[16];
109  TH1F* h_clawss_rate1W[16];
111  TH1F* h_clawss_rate2W[16];
112 
121 
130 
132  TH2F* h_clawss_rs_rate1[16];
134  TH2F* h_clawss_rs_rate2[16];
139 
141  TH2F* h_clawss_pe1[16];
143  TH2F* h_clawss_pe2[16];
145  TH2F* h_clawss_pe1W[16];
147  TH2F* h_clawss_pe2W[16];
148 
149  };
150 
151  }
153 }
154 
155 #endif /* CLAWSSTUDYMODULE_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 Clawss (BEAST)
TH2F * h_clawss_rs_hitrate1
Energy deposited.
TH2F * h_clawss_rs_rate1[16]
Energy deposited.
TH1F * h_clawss_hitrate2W
Energy deposited.
TH2F * h_clawss_pe1[16]
Energy deposited.
TH2F * h_clawss_rs_hitrate2W
Energy deposited.
virtual void initialize() override
Initialize the Module.
TH2F * h_clawss_rs_hitrate2
Energy deposited.
TH1F * h_clawss_hitrate1
Energy deposited.
virtual void event() override
Event processor.
TH1F * h_clawss_rate1[16]
Energy deposited vs TOF.
virtual void endRun() override
End-of-run action.
virtual void getXMLData()
reads data from CLAWS.xml
virtual void terminate() override
Termination action.
TH1F * h_clawss_hitrate1W
Energy deposited.
ClawsStudyModule()
Constructor: Sets the description, the properties and the parameters of the module.
TH2F * h_clawss_pe1W[16]
Energy deposited.
TH2F * h_clawss_pe2[16]
Energy deposited.
TH1F * h_clawss_rate2W[16]
Energy deposited.
virtual void beginRun() override
Called when entering a new run.
TH1F * h_clawss_rate1W[16]
Energy deposited.
virtual ~ClawsStudyModule()
Destructor.
TH1F * h_clawss_hitrate2
Energy deposited.
TH1F * h_clawss_rate2[16]
Energy deposited.
TH2F * h_clawss_rs_rate2[16]
Energy deposited.
double m_Ethres
Energy threshold.
TH2F * h_clawss_rs_rate2W[16]
Energy deposited.
TH2F * h_clawss_rs_hitrate1W
Energy deposited.
TH2F * h_clawss_rs_rate1W[16]
Energy deposited.
virtual void defineHisto() override
Defines the histograms.
TH2F * h_clawss_pe2W[16]
Energy deposited.
Abstract base class for different kinds of events.