CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
CTPPSProtonReconstructionPlotter::SingleRPPlots Struct Reference

Public Member Functions

void fill (const reco::ForwardProton &p)
 
 SingleRPPlots ()
 
void write () const
 

Public Attributes

std::unique_ptr< TH2D > h2_th_y_vs_xi
 
std::unique_ptr< TH1D > h_xi
 
std::unique_ptr< TProfile > p_th_y_vs_xi
 

Detailed Description

Definition at line 69 of file CTPPSProtonReconstructionPlotter.cc.

Constructor & Destructor Documentation

CTPPSProtonReconstructionPlotter::SingleRPPlots::SingleRPPlots ( )
inline

Definition at line 74 of file CTPPSProtonReconstructionPlotter.cc.

75  : h_xi(new TH1D("", ";#xi", 100, 0., 0.3)),
76  h2_th_y_vs_xi(new TH2D("", ";#xi;#theta_{y} (rad)", 100, 0., 0.3, 100, -500E-6, +500E-6)),
77  p_th_y_vs_xi(new TProfile("", ";#xi;#theta_{y} (rad)", 100, 0., 0.3)) {}

Member Function Documentation

void CTPPSProtonReconstructionPlotter::SingleRPPlots::fill ( const reco::ForwardProton p)
inline

Definition at line 79 of file CTPPSProtonReconstructionPlotter.cc.

References reco::ForwardProton::thetaY(), reco::ForwardProton::validFit(), and reco::ForwardProton::xi().

79  {
80  if (p.validFit()) {
81  h_xi->Fill(p.xi());
82 
83  const double th_y = p.thetaY();
84  h2_th_y_vs_xi->Fill(p.xi(), th_y);
85  p_th_y_vs_xi->Fill(p.xi(), th_y);
86  }
87  }
float xi() const
longitudinal fractional momentum loss
Definition: ForwardProton.h:79
bool validFit() const
flag for the fit validity
float thetaY() const
horizontal scattering angle, in rad
Definition: ForwardProton.h:83
void CTPPSProtonReconstructionPlotter::SingleRPPlots::write ( ) const
inline

Definition at line 89 of file CTPPSProtonReconstructionPlotter.cc.

89  {
90  h_xi->Write("h_xi");
91 
92  h2_th_y_vs_xi->Write("h2_th_y_vs_xi");
93  p_th_y_vs_xi->Write("p_th_y_vs_xi");
94  }

Member Data Documentation

std::unique_ptr<TH2D> CTPPSProtonReconstructionPlotter::SingleRPPlots::h2_th_y_vs_xi

Definition at line 71 of file CTPPSProtonReconstructionPlotter.cc.

std::unique_ptr<TH1D> CTPPSProtonReconstructionPlotter::SingleRPPlots::h_xi

Definition at line 70 of file CTPPSProtonReconstructionPlotter.cc.

std::unique_ptr<TProfile> CTPPSProtonReconstructionPlotter::SingleRPPlots::p_th_y_vs_xi

Definition at line 72 of file CTPPSProtonReconstructionPlotter.cc.