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 72 of file CTPPSProtonReconstructionPlotter.cc.

Constructor & Destructor Documentation

CTPPSProtonReconstructionPlotter::SingleRPPlots::SingleRPPlots ( )
inline

Definition at line 78 of file CTPPSProtonReconstructionPlotter.cc.

78  :
79  h_xi(new TH1D("", ";#xi", 100, 0., 0.3)),
80  h2_th_y_vs_xi(new TH2D("", ";#xi;#theta_{y} (rad)", 100, 0., 0.3, 100, -500E-6, +500E-6)),
81  p_th_y_vs_xi(new TProfile("", ";#xi;#theta_{y} (rad)", 100, 0., 0.3))
82  {}

Member Function Documentation

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

Definition at line 84 of file CTPPSProtonReconstructionPlotter.cc.

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

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

Definition at line 95 of file CTPPSProtonReconstructionPlotter.cc.

96  {
97  h_xi->Write("h_xi");
98 
99  h2_th_y_vs_xi->Write("h2_th_y_vs_xi");
100  p_th_y_vs_xi->Write("p_th_y_vs_xi");
101  }

Member Data Documentation

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

Definition at line 75 of file CTPPSProtonReconstructionPlotter.cc.

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

Definition at line 74 of file CTPPSProtonReconstructionPlotter.cc.

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

Definition at line 76 of file CTPPSProtonReconstructionPlotter.cc.