Belle II Software  release-08-01-10
PindiodeStudyModule.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 PINDIODESTUDYMODULE_H
10 #define PINDIODESTUDYMODULE_H
11 
12 #include <framework/core/HistoModule.h>
13 
14 #include <TH1.h>
15 #include <TH2.h>
16 
17 namespace Belle2 {
22  namespace pindiode {
23 
30 
31  public:
32 
37 
41  virtual ~PindiodeStudyModule();
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 
73  virtual void defineHisto() override;
74 
75 
76  private:
77 
79  virtual void getXMLData();
80 
82  //int nPIN = 0;
84  //std::vector<TVector3> PINCenter;
86  double m_CrematGain;
90  double m_FanoFactor;
91 
93  TH1F* h_pin_rate[10];
95  TH2F* h_pin_rs_rate[10];
97  TH1F* h_pin_dose1[100];
99  TH1F* h_pin_dose2[100];
101  TH1F* h_pin_dose1Weight[100];
103  TH1F* h_pin_dose2Weight[100];
105  TH1F* h_pin_volt[100];
107  TH1F* h_pin_time[100];
109  TH1F* h_pin_vtime[100];
111  TH1F* h_pin_idose[100];
113  TH1F* h_pin_idoseWeight[100];
115  TH2F* h_pin_rs_idose[100];
119  TH1F* h_pin_ivolt[100];
121  TH1F* h_pin_itime[100];
123  TH1F* h_pin_ivtime[100];
124  };
125 
126  }
128 }
129 
130 #endif /* PINDIODESTUDYMODULE_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 Pindiodes (BEAST)
virtual void initialize() override
Initialize the Module.
TH1F * h_pin_vtime[100]
histo time weighted by volt
virtual void event() override
Event processor.
virtual void endRun() override
End-of-run action.
virtual void getXMLData()
reads data from PINDIODE.xml: tube location, drift data filename, sigma of impulse response function
virtual void terminate() override
Termination action.
PindiodeStudyModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void beginRun() override
Called when entering a new run.
double m_CrematGain
number of detectors.
TH1F * h_pin_ivtime[100]
histo time weighted by volt
virtual void defineHisto() override
Defines the histograms.
Abstract base class for different kinds of events.