CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
CTPPSProtonReconstructionSimulationValidator::PlotGroup Struct Reference

Public Member Functions

 PlotGroup ()
 
void write () const
 

Static Public Member Functions

static TGraphErrors profileToRMSGraph (TProfile *p, const char *name="")
 

Public Attributes

std::unique_ptr< TH1D > h_de_t
 
std::unique_ptr< TH1D > h_de_th_x
 
std::unique_ptr< TH1D > h_de_th_y
 
std::unique_ptr< TH1D > h_de_vtx_y
 
std::unique_ptr< TH1D > h_de_xi
 
std::unique_ptr< TH2D > h_xi_reco_vs_xi_simu
 
std::unique_ptr< TProfile > p_de_t_vs_t_simu
 
std::unique_ptr< TProfile > p_de_t_vs_xi_simu
 
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< TProfile > p_de_vtx_y_vs_xi_simu
 
std::unique_ptr< TProfile > p_de_xi_vs_xi_simu
 

Detailed Description

Definition at line 63 of file CTPPSProtonReconstructionSimulationValidator.cc.

Constructor & Destructor Documentation

◆ PlotGroup()

CTPPSProtonReconstructionSimulationValidator::PlotGroup::PlotGroup ( )
inline

Definition at line 80 of file CTPPSProtonReconstructionSimulationValidator.cc.

80  : h_de_xi(new TH1D("", ";#xi_{reco} - #xi_{simu}", 100, 0., 0.)),
81  p_de_xi_vs_xi_simu(new TProfile("", ";#xi_{simu};#xi_{reco} - #xi_{simu}", 50, 0., 0.25)),
82  h_xi_reco_vs_xi_simu(new TH2D("", ";#xi_{simu};#xi_{reco}", 100, 0., 0.30, 100, 0., 0.30)),
83 
84  h_de_th_x(new TH1D("", ";#theta_{x,reco} - #theta_{x,simu}", 100, 0., 0.)),
85  p_de_th_x_vs_xi_simu(new TProfile("", ";#xi_{simu};#theta_{x,reco} - #theta_{x,simu}", 50, 0., 0.25)),
86 
87  h_de_th_y(new TH1D("", ";#theta_{y,reco} - #theta_{y,simu}", 100, 0., 0.)),
88  p_de_th_y_vs_xi_simu(new TProfile("", ";#xi_{simu};#theta_{y,reco} - #theta_{y,simu}", 50, 0., 0.25)),
89 
90  h_de_vtx_y(new TH1D("", ";vtx_{y,reco} - vtx_{y,simu} (mm)", 100, 0., 0.)),
91  p_de_vtx_y_vs_xi_simu(new TProfile("", ";#xi_{simu};vtx_{y,reco} - vtx_{y,simu} (mm)", 50, 0., 0.25)),
92 
93  h_de_t(new TH1D("", ";t_{reco} - t_{simu}", 100, -1., +1.)),
94  p_de_t_vs_xi_simu(new TProfile("", ";xi_{simu};t_{reco} - t_{simu}", 50, 0., 0.25)),
95  p_de_t_vs_t_simu(new TProfile("", ";t_{simu};t_{reco} - t_{simu}", 20, 0., 5.)) {}
96 

Member Function Documentation

◆ profileToRMSGraph()

static TGraphErrors CTPPSProtonReconstructionSimulationValidator::PlotGroup::profileToRMSGraph ( TProfile *  p,
const char *  name = "" 
)
inlinestatic

Definition at line 98 of file CTPPSProtonReconstructionSimulationValidator.cc.

101  {
102  double c = p->GetBinCenter(bi);
103  double w = p->GetBinWidth(bi);
104 
105  double N = p->GetBinEntries(bi);
106  double Sy = p->GetBinContent(bi) * N;
107  double Syy = p->GetSumw2()->At(bi);
108 
109  double si_sq = Syy / N - Sy * Sy / N / N;
110  double si = (si_sq >= 0.) ? sqrt(si_sq) : 0.;
111  double si_unc_sq = si_sq / 2. / N; // Gaussian approximation
112  double si_unc = (si_unc_sq >= 0.) ? sqrt(si_unc_sq) : 0.;
113 
114  int idx = gr_err.GetN();
115  gr_err.SetPoint(idx, c, si);
116  gr_err.SetPointError(idx, w / 2., si_unc);
117  }
118 
119  return gr_err;
120  }
121 

References c, heavyIonCSV_trainingSettings::idx, N, AlCaHLTBitMon_ParallelJobs::p, mathSSE::sqrt(), and w.

◆ write()

void CTPPSProtonReconstructionSimulationValidator::PlotGroup::write ( ) const
inline

Member Data Documentation

◆ h_de_t

std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_t

◆ h_de_th_x

std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_th_x

◆ h_de_th_y

std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_th_y

◆ h_de_vtx_y

std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_vtx_y

◆ h_de_xi

std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_xi

◆ h_xi_reco_vs_xi_simu

std::unique_ptr<TH2D> CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_xi_reco_vs_xi_simu

◆ p_de_t_vs_t_simu

std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_t_vs_t_simu

◆ p_de_t_vs_xi_simu

std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_t_vs_xi_simu

◆ p_de_th_x_vs_xi_simu

std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_th_x_vs_xi_simu

◆ p_de_th_y_vs_xi_simu

std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_th_y_vs_xi_simu

◆ p_de_vtx_y_vs_xi_simu

std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_vtx_y_vs_xi_simu

◆ p_de_xi_vs_xi_simu

std::unique_ptr<TProfile> CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_xi_vs_xi_simu
CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_t
std::unique_ptr< TH1D > h_de_t
Definition: CTPPSProtonReconstructionSimulationValidator.cc:77
CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_th_x_vs_xi_simu
std::unique_ptr< TProfile > p_de_th_x_vs_xi_simu
Definition: CTPPSProtonReconstructionSimulationValidator.cc:69
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
w
const double w
Definition: UKUtility.cc:23
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
N
#define N
Definition: blowfish.cc:9
CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_th_y
std::unique_ptr< TH1D > h_de_th_y
Definition: CTPPSProtonReconstructionSimulationValidator.cc:71
CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_th_y_vs_xi_simu
std::unique_ptr< TProfile > p_de_th_y_vs_xi_simu
Definition: CTPPSProtonReconstructionSimulationValidator.cc:72
CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_t_vs_xi_simu
std::unique_ptr< TProfile > p_de_t_vs_xi_simu
Definition: CTPPSProtonReconstructionSimulationValidator.cc:78
CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_xi
std::unique_ptr< TH1D > h_de_xi
Definition: CTPPSProtonReconstructionSimulationValidator.cc:64
CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_th_x
std::unique_ptr< TH1D > h_de_th_x
Definition: CTPPSProtonReconstructionSimulationValidator.cc:68
CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_de_vtx_y
std::unique_ptr< TH1D > h_de_vtx_y
Definition: CTPPSProtonReconstructionSimulationValidator.cc:74
CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_t_vs_t_simu
std::unique_ptr< TProfile > p_de_t_vs_t_simu
Definition: CTPPSProtonReconstructionSimulationValidator.cc:78
CTPPSProtonReconstructionSimulationValidator::PlotGroup::h_xi_reco_vs_xi_simu
std::unique_ptr< TH2D > h_xi_reco_vs_xi_simu
Definition: CTPPSProtonReconstructionSimulationValidator.cc:66
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_vtx_y_vs_xi_simu
std::unique_ptr< TProfile > p_de_vtx_y_vs_xi_simu
Definition: CTPPSProtonReconstructionSimulationValidator.cc:75
CTPPSProtonReconstructionSimulationValidator::PlotGroup::p_de_xi_vs_xi_simu
std::unique_ptr< TProfile > p_de_xi_vs_xi_simu
Definition: CTPPSProtonReconstructionSimulationValidator.cc:65