Belle II Software  release-06-00-14
IPDQMExpressRecoModule.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 #include <framework/core/HistoModule.h>
10 
11 #include <string>
12 #include "TH1F.h"
13 
14 namespace Belle2 {
27 
28  public:
33 
37  void initialize() override;
38 
43  void beginRun() override;
44 
49  void event() override;
50 
55  void endRun() override;
56 
60  void terminate() override;
61 
66  void defineHisto() override;
67 
68 
69  private:
70 
72  TH1F* m_h_x = nullptr;
74  TH1F* m_h_y = nullptr;
76  TH1F* m_h_z = nullptr;
78  TH1F* m_h_px = nullptr;
80  TH1F* m_h_py = nullptr;
82  TH1F* m_h_pz = nullptr;
84  TH1F* m_h_E = nullptr;
86  TH1F* m_h_pull = nullptr;
88  TH1F* m_h_y_risol = nullptr;
90  TH1F* m_h_temp = nullptr;
92  TH1F* m_h_xx = nullptr;
94  TH1F* m_h_yy = nullptr;
96  TH1F* m_h_zz = nullptr;
98  TH1F* m_h_xz = nullptr;
100  TH1F* m_h_yz = nullptr;
102  TH1F* m_h_xy = nullptr;
103 
105  TH1F* m_h_cov_x_x = nullptr;
107  TH1F* m_h_cov_y_y = nullptr;
109  TH1F* m_h_cov_z_z = nullptr;
111  TH1F* m_h_cov_x_z = nullptr;
113  TH1F* m_h_cov_y_z = nullptr;
115  TH1F* m_h_cov_x_y = nullptr;
117  std::vector<float> m_v_y;
119  std::vector<float> m_err_y;
120 
121  Double_t m_median = 0;
122  Double_t m_quantile = 0.5;
123  Int_t m_r = 0;
124  Int_t m_size = 200;
125  Int_t m_no_units = 5;
128  std::string m_Y4SPListName = "";
129 
130  };
131 
133 } // end namespace Belle2
134 
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
This Module, made for ExpressReco, monitors the position and the dimension of the beamspot using mu+m...
TH1F * m_h_temp
initial histogram for median calculation
TH1F * m_h_px
x coord momentum in LAB frame
void initialize() override
Initialize the module.
Double_t m_median
The median of y coord.
void event() override
Event processor The main analysis happens here.
std::string m_Y4SPListName
Name of the Y4S particle list.
void endRun() override
End-of-run action.
Int_t m_size_per_unit
Size for sampling per each unit.
TH1F * m_h_E
Energy in LAB frame.
TH1F * m_h_py
y coord momentum in LAB frame
void terminate() override
Termination action.
Int_t m_r
Counter for sampling.
void beginRun() override
Called when entering a new run Reset the histograms and counter m_r and clear the vectors.
TH1F * m_h_pz
z coord momentum in LAB frame
std::vector< float > m_v_y
store the y coordinates for the pull
std::vector< float > m_err_y
store the y errors for the pull
Double_t m_quantile
The 0.5 quantile for the median.
void defineHisto() override
Defining the histograms.
Abstract base class for different kinds of events.