CTPPSProtonReconstructionSimulationValidator::PlotGroup::PlotGroup |
( |
| ) |
|
|
inline |
Definition at line 77 of file CTPPSProtonReconstructionSimulationValidator.cc.
78 :
h_de_xi(
new TH1D(
"",
";#xi_{reco} - #xi_{simu}", 100, 0., 0.)),
79 p_de_xi_vs_xi_simu(
new TProfile(
"",
";#xi_{simu};#xi_{reco} - #xi_{simu}", 19, 0.015, 0.205)),
82 h_de_th_x(
new TH1D(
"",
";#theta_{x,reco} - #theta_{x,simu}", 100, 0., 0.)),
83 p_de_th_x_vs_xi_simu(
new TProfile(
"",
";#xi_{simu};#theta_{x,reco} - #theta_{x,simu}", 19, 0.015, 0.205)),
85 h_de_th_y(
new TH1D(
"",
";#theta_{y,reco} - #theta_{y,simu}", 100, 0., 0.)),
86 p_de_th_y_vs_xi_simu(
new TProfile(
"",
";#xi_{simu};#theta_{y,reco} - #theta_{y,simu}", 19, 0.015, 0.205)),
88 h_de_vtx_y(
new TH1D(
"",
";vtx_{y,reco} - vtx_{y,simu} (mm)", 100, 0., 0.)),
89 p_de_vtx_y_vs_xi_simu(
new TProfile(
"",
";#xi_{simu};vtx_{y,reco} - vtx_{y,simu} (mm)", 19, 0.015, 0.205)),
91 h_de_t(
new TH1D(
"",
";t_{reco} - t_{simu}", 100, -1., +1.)),
92 p_de_t_vs_xi_simu(
new TProfile(
"",
";xi_{simu};t_{reco} - t_{simu}", 19, 0.015, 0.205)),
93 p_de_t_vs_t_simu(
new TProfile(
"",
";t_{simu};t_{reco} - t_{simu}", 20, 0., 5.)) {}
std::unique_ptr< TH1D > h_de_t
std::unique_ptr< TProfile > p_de_th_x_vs_xi_simu
std::unique_ptr< TProfile > p_de_th_y_vs_xi_simu
std::unique_ptr< TH1D > h_de_th_y
std::unique_ptr< TProfile > p_de_t_vs_xi_simu
std::unique_ptr< TH1D > h_de_vtx_y
std::unique_ptr< TH1D > h_de_th_x
std::unique_ptr< TProfile > p_de_t_vs_t_simu
std::unique_ptr< TH2D > h_xi_reco_vs_xi_simu
std::unique_ptr< TH1D > h_de_xi
std::unique_ptr< TProfile > p_de_xi_vs_xi_simu
std::unique_ptr< TProfile > p_de_vtx_y_vs_xi_simu
static TGraphErrors CTPPSProtonReconstructionSimulationValidator::PlotGroup::profileToRMSGraph |
( |
TProfile * |
p, |
|
|
const char * |
name = "" |
|
) |
| |
|
inlinestatic |
Definition at line 95 of file CTPPSProtonReconstructionSimulationValidator.cc.
References HltBtagPostValidation_cff::c, N, Skims_PA_cff::name, mathSSE::sqrt(), and w.
Referenced by write().
99 for (
int bi = 1; bi <=
p->GetNbinsX(); ++bi) {
100 double c =
p->GetBinCenter(bi);
101 double w =
p->GetBinWidth(bi);
103 double N =
p->GetBinEntries(bi);
104 double Sy =
p->GetBinContent(bi) *
N;
105 double Syy =
p->GetSumw2()->At(bi);
107 double si_sq = Syy / N - Sy * Sy / N /
N;
108 double si = (si_sq >= 0.) ?
sqrt(si_sq) : 0.;
109 double si_unc_sq = si_sq / 2. /
N;
110 double si_unc = (si_unc_sq >= 0.) ?
sqrt(si_unc_sq) : 0.;
112 int idx = gr_err.GetN();
113 gr_err.SetPoint(idx, c, si);
114 gr_err.SetPointError(idx, w / 2., si_unc);
void CTPPSProtonReconstructionSimulationValidator::PlotGroup::write |
( |
| ) |
const |
|
inline |
Definition at line 120 of file CTPPSProtonReconstructionSimulationValidator.cc.
References profileToRMSGraph().
std::unique_ptr< TH1D > h_de_t
std::unique_ptr< TProfile > p_de_th_x_vs_xi_simu
std::unique_ptr< TProfile > p_de_th_y_vs_xi_simu
std::unique_ptr< TH1D > h_de_th_y
std::unique_ptr< TProfile > p_de_t_vs_xi_simu
std::unique_ptr< TH1D > h_de_vtx_y
std::unique_ptr< TH1D > h_de_th_x
std::unique_ptr< TProfile > p_de_t_vs_t_simu
static TGraphErrors profileToRMSGraph(TProfile *p, const char *name="")
std::unique_ptr< TH2D > h_xi_reco_vs_xi_simu
std::unique_ptr< TH1D > h_de_xi
std::unique_ptr< TProfile > p_de_xi_vs_xi_simu
std::unique_ptr< TProfile > p_de_vtx_y_vs_xi_simu
std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_t |
std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_th_x |
std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_th_y |
std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_vtx_y |
std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_xi |
std::unique_ptr<TH2D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_xi_reco_vs_xi_simu |
std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_t_vs_t_simu |
std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_t_vs_xi_simu |
std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_th_x_vs_xi_simu |
std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_th_y_vs_xi_simu |
std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_vtx_y_vs_xi_simu |
std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_xi_vs_xi_simu |