CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CTPPSDirectProtonSimulationValidator::RPPlots Struct Reference

Public Member Functions

void fill (double simu_x, double simu_y, double reco_x, double reco_y)
 
 RPPlots ()
 
void write () const
 

Public Attributes

std::unique_ptr< TH2D > h2_xr_vs_xs
 
std::unique_ptr< TH2D > h2_yr_vs_ys
 
std::unique_ptr< TH1D > h_de_x
 
std::unique_ptr< TH1D > h_de_y
 

Detailed Description

Definition at line 44 of file CTPPSDirectProtonSimulationValidator.cc.

Constructor & Destructor Documentation

◆ RPPlots()

CTPPSDirectProtonSimulationValidator::RPPlots::RPPlots ( )
inline

Definition at line 48 of file CTPPSDirectProtonSimulationValidator.cc.

49  : h2_xr_vs_xs(new TH2D("", ";x_simu (mm);x_reco (mm)", 100, -10., +10., 100, -10, +10.)),
50  h2_yr_vs_ys(new TH2D("", "y_simu (mm);y_reco (mm)", 100, -10., +10., 100, -10, +10.)),
51  h_de_x(new TH1D("", ";x (mm)", 200, -100E-3, +100E-3)),
52  h_de_y(new TH1D("", ";y (mm)", 200, -100E-3, +100E-3)) {}

Member Function Documentation

◆ fill()

void CTPPSDirectProtonSimulationValidator::RPPlots::fill ( double  simu_x,
double  simu_y,
double  reco_x,
double  reco_y 
)
inline

Definition at line 54 of file CTPPSDirectProtonSimulationValidator.cc.

References h2_xr_vs_xs, h2_yr_vs_ys, h_de_x, and h_de_y.

54  {
55  h2_xr_vs_xs->Fill(simu_x, reco_x);
56  h2_yr_vs_ys->Fill(simu_y, reco_y);
57 
58  h_de_x->Fill(reco_x - simu_x);
59  h_de_y->Fill(reco_y - simu_y);
60  }

◆ write()

void CTPPSDirectProtonSimulationValidator::RPPlots::write ( ) const
inline

Definition at line 62 of file CTPPSDirectProtonSimulationValidator.cc.

References h2_xr_vs_xs, h2_yr_vs_ys, h_de_x, and h_de_y.

62  {
63  h2_xr_vs_xs->Write("h2_xr_vs_xs");
64  h2_yr_vs_ys->Write("h2_yr_vs_ys");
65  h_de_x->Write("h_de_x");
66  h_de_y->Write("h_de_y");
67  }

Member Data Documentation

◆ h2_xr_vs_xs

std::unique_ptr<TH2D> CTPPSDirectProtonSimulationValidator::RPPlots::h2_xr_vs_xs

Definition at line 45 of file CTPPSDirectProtonSimulationValidator.cc.

Referenced by fill(), and write().

◆ h2_yr_vs_ys

std::unique_ptr<TH2D> CTPPSDirectProtonSimulationValidator::RPPlots::h2_yr_vs_ys

Definition at line 45 of file CTPPSDirectProtonSimulationValidator.cc.

Referenced by fill(), and write().

◆ h_de_x

std::unique_ptr<TH1D> CTPPSDirectProtonSimulationValidator::RPPlots::h_de_x

Definition at line 46 of file CTPPSDirectProtonSimulationValidator.cc.

Referenced by fill(), and write().

◆ h_de_y

std::unique_ptr<TH1D> CTPPSDirectProtonSimulationValidator::RPPlots::h_de_y

Definition at line 46 of file CTPPSDirectProtonSimulationValidator.cc.

Referenced by fill(), and write().