Belle II Software  release-05-02-19
IPDQMExpressRecoModule.h
1 /***************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Gaetano de Marino *
7  * *
8  * *
9  * This software is provided "as is" without any warranty. *
10  ***************************************************************************/
11 
12 #include <framework/core/HistoModule.h>
13 
14 #include <string>
15 #include "TH1F.h"
16 
17 namespace Belle2 {
29  class IPDQMExpressRecoModule : public HistoModule {
30 
31  public:
36 
40  void initialize() override;
41 
46  void beginRun() override;
47 
52  void event() override;
53 
58  void endRun() override;
59 
63  void terminate() override;
64 
69  void defineHisto() override;
70 
71 
72  private:
73 
75  TH1F* m_h_x = nullptr;
77  TH1F* m_h_y = nullptr;
79  TH1F* m_h_z = nullptr;
81  TH1F* m_h_px = nullptr;
83  TH1F* m_h_py = nullptr;
85  TH1F* m_h_pz = nullptr;
87  TH1F* m_h_E = nullptr;
89  TH1F* m_h_pull = nullptr;
91  TH1F* m_h_y_risol = nullptr;
93  TH1F* m_h_temp = nullptr;
95  TH1F* m_h_xx = nullptr;
97  TH1F* m_h_yy = nullptr;
99  TH1F* m_h_zz = nullptr;
101  TH1F* m_h_xz = nullptr;
103  TH1F* m_h_yz = nullptr;
105  TH1F* m_h_xy = nullptr;
106 
108  TH1F* m_h_cov_x_x = nullptr;
110  TH1F* m_h_cov_y_y = nullptr;
112  TH1F* m_h_cov_z_z = nullptr;
114  TH1F* m_h_cov_x_z = nullptr;
116  TH1F* m_h_cov_y_z = nullptr;
118  TH1F* m_h_cov_x_y = nullptr;
120  std::vector<float> m_v_y;
122  std::vector<float> m_err_y;
123 
124  Double_t m_median = 0;
125  Double_t m_quantile = 0.5;
126  Int_t m_r = 0;
127  Int_t m_size = 200;
128  Int_t m_no_units = 5;
131  std::string m_Y4SPListName = "";
132 
133  };
134 
136 } // end namespace Belle2
137 
Belle2::IPDQMExpressRecoModule::m_h_pz
TH1F * m_h_pz
z coord momentum in LAB frame
Definition: IPDQMExpressRecoModule.h:94
Belle2::IPDQMExpressRecoModule::m_h_cov_y_y
TH1F * m_h_cov_y_y
Var y.
Definition: IPDQMExpressRecoModule.h:119
Belle2::IPDQMExpressRecoModule::m_err_y
std::vector< float > m_err_y
store the y errors for the pull
Definition: IPDQMExpressRecoModule.h:131
Belle2::IPDQMExpressRecoModule::m_Y4SPListName
std::string m_Y4SPListName
Name of the Y4S particle list.
Definition: IPDQMExpressRecoModule.h:140
Belle2::IPDQMExpressRecoModule::m_h_E
TH1F * m_h_E
Energy in LAB frame.
Definition: IPDQMExpressRecoModule.h:96
Belle2::IPDQMExpressRecoModule::m_h_z
TH1F * m_h_z
z coord
Definition: IPDQMExpressRecoModule.h:88
Belle2::IPDQMExpressRecoModule::m_h_yy
TH1F * m_h_yy
yy coord
Definition: IPDQMExpressRecoModule.h:106
Belle2::IPDQMExpressRecoModule::defineHisto
void defineHisto() override
Defining the histograms.
Definition: IPDQMExpressRecoModule.cc:40
Belle2::IPDQMExpressRecoModule::m_no_units
Int_t m_no_units
Number of units.
Definition: IPDQMExpressRecoModule.h:137
Belle2::IPDQMExpressRecoModule::m_h_y
TH1F * m_h_y
y coord
Definition: IPDQMExpressRecoModule.h:86
Belle2::IPDQMExpressRecoModule::m_h_zz
TH1F * m_h_zz
zz coord
Definition: IPDQMExpressRecoModule.h:108
Belle2::IPDQMExpressRecoModule::m_h_cov_x_z
TH1F * m_h_cov_x_z
Cov xz.
Definition: IPDQMExpressRecoModule.h:123
Belle2::IPDQMExpressRecoModule::m_quantile
Double_t m_quantile
The 0.5 quantile for the median.
Definition: IPDQMExpressRecoModule.h:134
Belle2::IPDQMExpressRecoModule::m_h_cov_x_y
TH1F * m_h_cov_x_y
Cov xy.
Definition: IPDQMExpressRecoModule.h:127
Belle2::IPDQMExpressRecoModule::event
void event() override
Event processor The main analysis happens here.
Definition: IPDQMExpressRecoModule.cc:165
Belle2::IPDQMExpressRecoModule::m_h_y_risol
TH1F * m_h_y_risol
y resolution
Definition: IPDQMExpressRecoModule.h:100
Belle2::IPDQMExpressRecoModule::m_h_cov_z_z
TH1F * m_h_cov_z_z
Var z.
Definition: IPDQMExpressRecoModule.h:121
Belle2::IPDQMExpressRecoModule::m_h_px
TH1F * m_h_px
x coord momentum in LAB frame
Definition: IPDQMExpressRecoModule.h:90
Belle2::IPDQMExpressRecoModule::m_h_pull
TH1F * m_h_pull
y pull
Definition: IPDQMExpressRecoModule.h:98
Belle2::IPDQMExpressRecoModule::endRun
void endRun() override
End-of-run action.
Definition: IPDQMExpressRecoModule.cc:133
Belle2::IPDQMExpressRecoModule::m_h_xx
TH1F * m_h_xx
xx coord
Definition: IPDQMExpressRecoModule.h:104
Belle2::IPDQMExpressRecoModule::initialize
void initialize() override
Initialize the module.
Definition: IPDQMExpressRecoModule.cc:97
Belle2::IPDQMExpressRecoModule::m_h_py
TH1F * m_h_py
y coord momentum in LAB frame
Definition: IPDQMExpressRecoModule.h:92
Belle2::IPDQMExpressRecoModule::m_h_cov_x_x
TH1F * m_h_cov_x_x
Var x.
Definition: IPDQMExpressRecoModule.h:117
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::IPDQMExpressRecoModule::m_median
Double_t m_median
The median of y coord.
Definition: IPDQMExpressRecoModule.h:133
Belle2::IPDQMExpressRecoModule::m_h_yz
TH1F * m_h_yz
yz coord
Definition: IPDQMExpressRecoModule.h:112
Belle2::IPDQMExpressRecoModule::m_size
Int_t m_size
Size for sampling.
Definition: IPDQMExpressRecoModule.h:136
Belle2::IPDQMExpressRecoModule::m_v_y
std::vector< float > m_v_y
store the y coordinates for the pull
Definition: IPDQMExpressRecoModule.h:129
Belle2::IPDQMExpressRecoModule::terminate
void terminate() override
Termination action.
Definition: IPDQMExpressRecoModule.cc:161
Belle2::IPDQMExpressRecoModule::m_h_cov_y_z
TH1F * m_h_cov_y_z
Cov yz.
Definition: IPDQMExpressRecoModule.h:125
Belle2::IPDQMExpressRecoModule::m_h_x
TH1F * m_h_x
x coord
Definition: IPDQMExpressRecoModule.h:84
Belle2::IPDQMExpressRecoModule::m_h_xz
TH1F * m_h_xz
xz coord
Definition: IPDQMExpressRecoModule.h:110
Belle2::IPDQMExpressRecoModule::IPDQMExpressRecoModule
IPDQMExpressRecoModule()
Constructor.
Definition: IPDQMExpressRecoModule.cc:30
Belle2::IPDQMExpressRecoModule::m_size_per_unit
Int_t m_size_per_unit
Size for sampling per each unit.
Definition: IPDQMExpressRecoModule.h:138
Belle2::IPDQMExpressRecoModule::beginRun
void beginRun() override
Called when entering a new run Reset the histograms and counter m_r and clear the vectors.
Definition: IPDQMExpressRecoModule.cc:103
Belle2::IPDQMExpressRecoModule::m_h_xy
TH1F * m_h_xy
xy coord
Definition: IPDQMExpressRecoModule.h:114
Belle2::IPDQMExpressRecoModule::m_r
Int_t m_r
Counter for sampling.
Definition: IPDQMExpressRecoModule.h:135
Belle2::IPDQMExpressRecoModule::m_h_temp
TH1F * m_h_temp
initial histogram for median calculation
Definition: IPDQMExpressRecoModule.h:102