CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CTPPSTrackDistributionPlotter::ArmPlots Struct Reference

Public Member Functions

 ArmPlots ()
 
void fill (double x_N, double y_N, double x_F, double y_F)
 
void write () const
 

Public Attributes

std::unique_ptr< TH1D > h_de_x
 
std::unique_ptr< TH1D > h_de_y
 
std::unique_ptr< TProfile2D > p2_de_x_vs_x_y
 
std::unique_ptr< TProfile2D > p2_de_y_vs_x_y
 
std::unique_ptr< TProfile > p_de_x_vs_x
 
std::unique_ptr< TProfile > p_de_y_vs_x
 

Detailed Description

Definition at line 90 of file CTPPSTrackDistributionPlotter.cc.

Constructor & Destructor Documentation

CTPPSTrackDistributionPlotter::ArmPlots::ArmPlots ( )
inline

Definition at line 95 of file CTPPSTrackDistributionPlotter.cc.

96  : h_de_x(new TH1D("", ";x^{F} - x^{N}", 100, -1., +1.)),
97  h_de_y(new TH1D("", ";y^{F} - y^{N}", 100, -1., +1.)),
98  p_de_x_vs_x(new TProfile("", ";x^{N};x^{F} - x^{N}", 40, 0., 40.)),
99  p_de_y_vs_x(new TProfile("", ";x^{N};y^{F} - y^{N}", 40, 0., 40.)),
100  p2_de_x_vs_x_y(new TProfile2D("", ";x;y", 40, 0., 40., 40, -20., +20.)),
101  p2_de_y_vs_x_y(new TProfile2D("", ";x;y", 40, 0., 40., 40, -20., +20.)) {}

Member Function Documentation

void CTPPSTrackDistributionPlotter::ArmPlots::fill ( double  x_N,
double  y_N,
double  x_F,
double  y_F 
)
inline

Definition at line 103 of file CTPPSTrackDistributionPlotter.cc.

103  {
104  h_de_x->Fill(x_F - x_N);
105  h_de_y->Fill(y_F - y_N);
106 
107  p_de_x_vs_x->Fill(x_N, x_F - x_N);
108  p_de_y_vs_x->Fill(x_N, y_F - y_N);
109 
110  p2_de_x_vs_x_y->Fill(x_N, y_N, x_F - x_N);
111  p2_de_y_vs_x_y->Fill(x_N, y_N, y_F - y_N);
112  }
void CTPPSTrackDistributionPlotter::ArmPlots::write ( ) const
inline

Definition at line 114 of file CTPPSTrackDistributionPlotter.cc.

114  {
115  h_de_x->Write("h_de_x");
116  h_de_y->Write("h_de_y");
117 
118  p_de_x_vs_x->Write("p_de_x_vs_x");
119  p_de_y_vs_x->Write("p_de_y_vs_x");
120 
121  p2_de_x_vs_x_y->Write("p2_de_x_vs_x_y");
122  p2_de_y_vs_x_y->Write("p2_de_y_vs_x_y");
123  }

Member Data Documentation

std::unique_ptr<TH1D> CTPPSTrackDistributionPlotter::ArmPlots::h_de_x

Definition at line 91 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TH1D> CTPPSTrackDistributionPlotter::ArmPlots::h_de_y

Definition at line 91 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TProfile2D> CTPPSTrackDistributionPlotter::ArmPlots::p2_de_x_vs_x_y

Definition at line 93 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TProfile2D> CTPPSTrackDistributionPlotter::ArmPlots::p2_de_y_vs_x_y

Definition at line 93 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TProfile> CTPPSTrackDistributionPlotter::ArmPlots::p_de_x_vs_x

Definition at line 92 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TProfile> CTPPSTrackDistributionPlotter::ArmPlots::p_de_y_vs_x

Definition at line 92 of file CTPPSTrackDistributionPlotter.cc.