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 47 of file CTPPSTrackDistributionPlotter.cc.

Constructor & Destructor Documentation

CTPPSTrackDistributionPlotter::RPPlots::RPPlots ( )
inline

Definition at line 53 of file CTPPSTrackDistributionPlotter.cc.

53  :
54  h2_y_vs_x(new TH2D("", "", 300, -10., +70., 300, -30, +30.)),
55  p_y_vs_x(new TProfile("", "", 300, -10., +70.)),
56  h_x(new TH1D("", "", 600, -10., +70.))
57  {}

Member Function Documentation

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

Definition at line 59 of file CTPPSTrackDistributionPlotter.cc.

60  {
61  h2_y_vs_x->Fill(x, y);
62  p_y_vs_x->Fill(x, y);
63  h_x->Fill(x);
64  }
void CTPPSTrackDistributionPlotter::RPPlots::write ( ) const
inline

Definition at line 66 of file CTPPSTrackDistributionPlotter.cc.

67  {
68  h2_y_vs_x->Write("h2_y_vs_x");
69  p_y_vs_x->Write("p_y_vs_x");
70  h_x->Write("h_x");
71  }

Member Data Documentation

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

Definition at line 49 of file CTPPSTrackDistributionPlotter.cc.

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

Definition at line 51 of file CTPPSTrackDistributionPlotter.cc.

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

Definition at line 50 of file CTPPSTrackDistributionPlotter.cc.