CMS 3D CMS Logo

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

Public Member Functions

void fill (double x, double y)
 
 RPPlots ()
 
void write () const
 

Public Attributes

std::unique_ptr< TH2D > h2_y_vs_x
 
std::unique_ptr< TH1D > h_x
 
std::unique_ptr< TProfile > p_y_vs_x
 

Detailed Description

Definition at line 45 of file CTPPSTrackDistributionPlotter.cc.

Constructor & Destructor Documentation

CTPPSTrackDistributionPlotter::RPPlots::RPPlots ( )
inline

Definition at line 50 of file CTPPSTrackDistributionPlotter.cc.

51  : h2_y_vs_x(new TH2D("", "", 300, -10., +70., 300, -30, +30.)),
52  p_y_vs_x(new TProfile("", "", 300, -10., +70.)),
53  h_x(new TH1D("", "", 600, -10., +70.)) {}

Member Function Documentation

void CTPPSTrackDistributionPlotter::RPPlots::fill ( double  x,
double  y 
)
inline

Definition at line 55 of file CTPPSTrackDistributionPlotter.cc.

55  {
56  h2_y_vs_x->Fill(x, y);
57  p_y_vs_x->Fill(x, y);
58  h_x->Fill(x);
59  }
void CTPPSTrackDistributionPlotter::RPPlots::write ( ) const
inline

Definition at line 61 of file CTPPSTrackDistributionPlotter.cc.

61  {
62  h2_y_vs_x->Write("h2_y_vs_x");
63  p_y_vs_x->Write("p_y_vs_x");
64  h_x->Write("h_x");
65  }

Member Data Documentation

std::unique_ptr<TH2D> CTPPSTrackDistributionPlotter::RPPlots::h2_y_vs_x

Definition at line 46 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TH1D> CTPPSTrackDistributionPlotter::RPPlots::h_x

Definition at line 48 of file CTPPSTrackDistributionPlotter.cc.

std::unique_ptr<TProfile> CTPPSTrackDistributionPlotter::RPPlots::p_y_vs_x

Definition at line 47 of file CTPPSTrackDistributionPlotter.cc.