CMS 3D CMS Logo

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

Public Member Functions

 ArmCorrelationPlots ()
 
void fill (const reco::ForwardProton &p_s_N, const reco::ForwardProton &p_s_F, const reco::ForwardProton &p_m)
 
void write () const
 

Public Attributes

std::unique_ptr< TH2D > h2_xi_si_diffNF_vs_xi_mu
 
std::unique_ptr< TH1D > h_th_y_si_diffNF
 
std::unique_ptr< TH1D > h_xi_si_diffNF
 
std::unique_ptr< TProfile > p_th_y_si_diffNF_vs_xi_mu
 
std::unique_ptr< TProfile > p_xi_si_diffNF_vs_xi_mu
 

Detailed Description

Definition at line 407 of file CTPPSProtonReconstructionPlotter.cc.

Constructor & Destructor Documentation

CTPPSProtonReconstructionPlotter::ArmCorrelationPlots::ArmCorrelationPlots ( )
inline

Definition at line 415 of file CTPPSProtonReconstructionPlotter.cc.

416  : h_xi_si_diffNF(new TH1D("", ";#xi_{sF} - #xi_{sN}", 100, -0.02, +0.02)),
417  h2_xi_si_diffNF_vs_xi_mu(new TH2D("", ";#xi_{m};#xi_{sF} - #xi_{sN}", 100, 0., 0.3, 100, -0.02, +0.02)),
418  p_xi_si_diffNF_vs_xi_mu(new TProfile("", ";#xi_{m};#xi_{sF} - #xi_{sN}", 100, 0., 0.3)),
419  h_th_y_si_diffNF(new TH1D("", ";#theta_{y,sF} - #theta_{y,sN}", 100, -100E-6, +100E-6)),
420  p_th_y_si_diffNF_vs_xi_mu(new TProfile("", ";#xi_{m};#theta_{y,sF} - #theta_{y,sN}", 100, 0., 0.3)) {}

Member Function Documentation

void CTPPSProtonReconstructionPlotter::ArmCorrelationPlots::fill ( const reco::ForwardProton p_s_N,
const reco::ForwardProton p_s_F,
const reco::ForwardProton p_m 
)
inline

Definition at line 422 of file CTPPSProtonReconstructionPlotter.cc.

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

422  {
423  if (!p_s_N.validFit() || !p_s_F.validFit() || !p_m.validFit())
424  return;
425 
426  const double th_y_s_N = p_s_N.thetaY();
427  const double th_y_s_F = p_s_F.thetaY();
428 
429  h_xi_si_diffNF->Fill(p_s_F.xi() - p_s_N.xi());
430  h2_xi_si_diffNF_vs_xi_mu->Fill(p_m.xi(), p_s_F.xi() - p_s_N.xi());
431  p_xi_si_diffNF_vs_xi_mu->Fill(p_m.xi(), p_s_F.xi() - p_s_N.xi());
432 
433  h_th_y_si_diffNF->Fill(th_y_s_F - th_y_s_N);
434  p_th_y_si_diffNF_vs_xi_mu->Fill(p_m.xi(), th_y_s_F - th_y_s_N);
435  }
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::ArmCorrelationPlots::write ( ) const
inline

Definition at line 437 of file CTPPSProtonReconstructionPlotter.cc.

437  {
438  h_xi_si_diffNF->Write("h_xi_si_diffNF");
439  h2_xi_si_diffNF_vs_xi_mu->Write("h2_xi_si_diffNF_vs_xi_mu");
440  p_xi_si_diffNF_vs_xi_mu->Write("p_xi_si_diffNF_vs_xi_mu");
441 
442  h_th_y_si_diffNF->Write("h_th_y_si_diffNF");
443  p_th_y_si_diffNF_vs_xi_mu->Write("p_th_y_si_diffNF_vs_xi_mu");
444  }

Member Data Documentation

std::unique_ptr<TH2D> CTPPSProtonReconstructionPlotter::ArmCorrelationPlots::h2_xi_si_diffNF_vs_xi_mu

Definition at line 409 of file CTPPSProtonReconstructionPlotter.cc.

std::unique_ptr<TH1D> CTPPSProtonReconstructionPlotter::ArmCorrelationPlots::h_th_y_si_diffNF

Definition at line 412 of file CTPPSProtonReconstructionPlotter.cc.

std::unique_ptr<TH1D> CTPPSProtonReconstructionPlotter::ArmCorrelationPlots::h_xi_si_diffNF

Definition at line 408 of file CTPPSProtonReconstructionPlotter.cc.

std::unique_ptr<TProfile> CTPPSProtonReconstructionPlotter::ArmCorrelationPlots::p_th_y_si_diffNF_vs_xi_mu

Definition at line 413 of file CTPPSProtonReconstructionPlotter.cc.

std::unique_ptr<TProfile> CTPPSProtonReconstructionPlotter::ArmCorrelationPlots::p_xi_si_diffNF_vs_xi_mu

Definition at line 410 of file CTPPSProtonReconstructionPlotter.cc.