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 46 of file CTPPSDirectProtonSimulationValidator.cc.

Constructor & Destructor Documentation

CTPPSDirectProtonSimulationValidator::RPPlots::RPPlots ( )
inline

Definition at line 51 of file CTPPSDirectProtonSimulationValidator.cc.

51  :
52  h2_xr_vs_xs( new TH2D("", "", 100, -10., +10., 100, -10, +10.) ),
53  h2_yr_vs_ys( new TH2D("", "", 100, -10., +10., 100, -10, +10.) ),
54  h_de_x( new TH1D("", "", 100, -0., +0.) ),
55  h_de_y( new TH1D("", "", 100, -0., +0.) )
56  {}

Member Function Documentation

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

Definition at line 58 of file CTPPSDirectProtonSimulationValidator.cc.

59  {
60  h2_xr_vs_xs->Fill(simu_x, reco_x);
61  h2_yr_vs_ys->Fill(simu_y, reco_y);
62 
63  h_de_x->Fill(reco_x - simu_x);
64  h_de_y->Fill(reco_y - simu_y);
65  }
void CTPPSDirectProtonSimulationValidator::RPPlots::write ( ) const
inline

Definition at line 67 of file CTPPSDirectProtonSimulationValidator.cc.

68  {
69  h2_xr_vs_xs->Write("h2_xr_vs_xs");
70  h2_yr_vs_ys->Write("h2_yr_vs_ys");
71  h_de_x->Write("h_de_x");
72  h_de_y->Write("h_de_y");
73  }

Member Data Documentation

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

Definition at line 48 of file CTPPSDirectProtonSimulationValidator.cc.

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

Definition at line 48 of file CTPPSDirectProtonSimulationValidator.cc.

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

Definition at line 49 of file CTPPSDirectProtonSimulationValidator.cc.

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

Definition at line 49 of file CTPPSDirectProtonSimulationValidator.cc.