Belle II Software development
FANGSStudyModule.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 FANGSSTUDYMODULE_H
10#define FANGSSTUDYMODULE_H
11
12#include <framework/core/HistoModule.h>
13
14#include <TF1.h>
15#include <TH1.h>
16#include <TH2.h>
17
19constexpr int maxSIZE = 3000;
20
21namespace Belle2 {
26 namespace fangs {
27
34
35 public:
36
41
45 virtual ~FANGSStudyModule();
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();
99 double m_ChipRowY;
105 double m_TOTA1;
107 double m_TOTB1;
109 double m_TOTC1;
111 double m_TOTQ1;
113 double m_TOTA2;
115 double m_TOTB2;
117 double m_TOTC2;
119 double m_TOTQ2;
120
122 double m_Workfct;
127
129 float x[maxSIZE];
131 float y[maxSIZE];
133 float z[maxSIZE];
135 float e[maxSIZE];
136
138 TH2F* h_cvr[20];
140 TH2F* h_Edep;
142 TH2F* h_pxNb;
144 TH2F* h_time;
152 TH2F* h_edep;
154 TH2F* h_edep1;
156 TH2F* h_edep2;
158 TH2F* h_edep3;
159
168
169
171 TH1F* h_zvedep[3];
173 TH2F* h_yvzvedep[3];
175 TH2F* h_xvzvedep[3];
177 TH2F* h_xvyvedep[3];
178
180 TH1F* h_zvedepW[3];
182 TH2F* h_yvzvedepW[3];
184 TH2F* h_xvzvedepW[3];
186 TH2F* h_xvyvedepW[3];
187
189 TH1F* h_zvedepT[3];
191 TH2F* h_yvzvedepT[3];
193 TH2F* h_xvzvedepT[3];
195 TH2F* h_xvyvedepT[3];
196
198 TH1F* h_zvedepWT[3];
200 TH2F* h_yvzvedepWT[3];
202 TH2F* h_xvzvedepWT[3];
204 TH2F* h_xvyvedepWT[3];
205
207 TH2F* h_rvzvedep[3];
209 TH2F* h_rvzvedepT[3];
210
212 TH2F* h_rvzvedepW[3];
214 TH2F* h_rvzvedepWT[3];
215
216 };
217
218 }
220}
221
222#endif /* FANGSSTUDYMODULE_H */
HistoModule()
Constructor.
Definition HistoModule.h:32
TH2F * h_timeThres
Time distribution with energy threshold applied.
double m_ChipRowY
Chip row y dimension.
TH2F * h_rvzvedepW[3]
Energy vs x vs y.
TH2F * h_yvzvedepWT[3]
Energy vs y vs z.
TH2F * h_edepThres1
Energy deposited above threshold per time bin.
TH2F * h_edep
Energy deposited per time bin.
TH2F * h_edep1
Energy deposited per time bin.
double m_PixelTimeBin
Pixel time bin.
TH2F * h_timeWeighted
Time distribution weighted per the energy deposited.
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
TH2F * h_edep3
Energy deposited per time bin.
TH2F * h_time
Time distribution.
virtual void endRun() override
End-of-run action.
double m_ChipColumnX
Chip column x dimension.
virtual void getXMLData()
reads data from FANGS.xml
virtual void terminate() override
Termination action.
double m_v_sensor
Drift velocity in sensor.
TH2F * h_yvzvedepT[3]
Energy vs y vs z.
TH2F * h_xvzvedepT[3]
Energy vs x vs z.
FANGSStudyModule()
Constructor: Sets the description, the properties and the parameters of the module.
TH2F * h_yvzvedep[3]
Energy vs y vs z.
TH2F * h_edep2
Energy deposited per time bin.
TH1F * h_zvedepW[3]
Energy deposited vs z.
TH2F * h_xvzvedep[3]
Energy vs x vs z.
TH2F * h_rvzvedepT[3]
Energy vs x vs y.
TH2F * h_xvyvedepWT[3]
Energy vs x vs y.
TH2F * h_Edep
Digitized energy deposited per detector.
TH1F * h_zvedepWT[3]
Energy deposited vs z.
float y[maxSIZE]
y point of the track
TH1F * h_zvedep[3]
Energy deposited vs z.
TH1F * h_zvedepT[3]
Energy deposited vs z.
virtual ~FANGSStudyModule()
Destructor.
virtual void beginRun() override
Called when entering a new run.
TH2F * h_rvzvedepWT[3]
Energy vs x vs y.
TH2F * h_timeWeightedThres
Time distribution weighted per the energy deposited with energy threshold applied.
TH2F * h_edepThres2
Energy deposited above threshold per time bin.
TH2F * h_edepThres
Energy deposited above threshold per time bin.
TH2F * h_xvyvedep[3]
Energy vs x vs y.
TH2F * h_rvzvedep[3]
Energy vs x vs y.
TH2F * h_yvzvedepW[3]
Energy vs y vs z.
TF1 * fctQ_Calib2
Define Q calib 2.
TH2F * h_xvzvedepW[3]
Energy vs x vs z.
int m_PixelTimeBinNb
Pixel time number of bin.
int m_ChipColumnNb
Chip column number.
TH2F * h_xvzvedepWT[3]
Energy vs x vs z.
TH2F * h_pxNb
Pixel number per detector.
TF1 * fctQ_Calib1
Define Q calib 1.
TH2F * h_xvyvedepW[3]
Energy vs x vs y.
int m_PixelThresholdRMS
Pixel threshold RMS.
int m_PixelThreshold
Pixel threshold.
float e[maxSIZE]
e point of the track
float x[maxSIZE]
x point of the track
TH2F * h_xvyvedepT[3]
Energy vs x vs y.
float z[maxSIZE]
z point of the track
TH2F * h_edepThres3
Energy deposited above threshold per time bin.
virtual void defineHisto() override
Defines the histograms.
Namespace to encapsulate code needed for the FANGS detector.
Abstract base class for different kinds of events.