CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Public Attributes
CTPPSProtonReconstructionSimulationValidator::DoubleArmPlotGroup Struct Reference

Public Member Functions

 DoubleArmPlotGroup ()
 
void fill (double time_45, double time_56, double vtx_z, double vtx_t)
 
void write () const
 

Public Attributes

std::unique_ptr< TH2D > h2_t_dh_vs_vtx_z
 
std::unique_ptr< TH2D > h2_t_sh_vs_vtx_t
 
std::unique_ptr< TH1D > h_t_dh_minus_vtx_z
 
std::unique_ptr< TH1D > h_t_sh_minus_vtx_t
 

Detailed Description

Definition at line 157 of file CTPPSProtonReconstructionSimulationValidator.cc.

Constructor & Destructor Documentation

◆ DoubleArmPlotGroup()

CTPPSProtonReconstructionSimulationValidator::DoubleArmPlotGroup::DoubleArmPlotGroup ( )
inline

Definition at line 161 of file CTPPSProtonReconstructionSimulationValidator.cc.

162  : h2_t_sh_vs_vtx_t(new TH2D("", ";vtx_t (mm);(t_56 + t_45)/2 (mm)", 100, -250., +250., 100, -250., +250.)),
163  h2_t_dh_vs_vtx_z(new TH2D("", ";vtx_z (mm);(t_56 - t_45)/2 (mm)", 100, -250., +250., 100, -250., +250.)),
164  h_t_sh_minus_vtx_t(new TH1D("", ";(t_56 + t_45)/2 - vtx_t (mm)", 100, -100., +100.)),
165  h_t_dh_minus_vtx_z(new TH1D("", ";(t_56 - t_45)/2 - vtx_z (mm)", 100, -100., +100.)) {}

Member Function Documentation

◆ fill()

void CTPPSProtonReconstructionSimulationValidator::DoubleArmPlotGroup::fill ( double  time_45,
double  time_56,
double  vtx_z,
double  vtx_t 
)
inline

Definition at line 167 of file CTPPSProtonReconstructionSimulationValidator.cc.

References h2_t_dh_vs_vtx_z, h2_t_sh_vs_vtx_t, h_t_dh_minus_vtx_z, and h_t_sh_minus_vtx_t.

Referenced by CTPPSProtonReconstructionSimulationValidator::analyze().

167  {
168  const double t_sum_half = (time_56 + time_45) / 2. * CLHEP::c_light;
169  const double t_dif_half = (time_56 - time_45) / 2. * CLHEP::c_light;
170 
171  h2_t_sh_vs_vtx_t->Fill(vtx_t, t_sum_half);
172  h_t_sh_minus_vtx_t->Fill(t_sum_half - vtx_t);
173 
174  h2_t_dh_vs_vtx_z->Fill(vtx_z, t_dif_half);
175  h_t_dh_minus_vtx_z->Fill(t_dif_half - vtx_z);
176  }
ap_int< 5 > vtx_t
Definition: datatypes.h:20

◆ write()

void CTPPSProtonReconstructionSimulationValidator::DoubleArmPlotGroup::write ( ) const
inline

Member Data Documentation

◆ h2_t_dh_vs_vtx_z

std::unique_ptr<TH2D> CTPPSProtonReconstructionSimulationValidator::DoubleArmPlotGroup::h2_t_dh_vs_vtx_z

Definition at line 158 of file CTPPSProtonReconstructionSimulationValidator.cc.

Referenced by fill(), and write().

◆ h2_t_sh_vs_vtx_t

std::unique_ptr<TH2D> CTPPSProtonReconstructionSimulationValidator::DoubleArmPlotGroup::h2_t_sh_vs_vtx_t

Definition at line 158 of file CTPPSProtonReconstructionSimulationValidator.cc.

Referenced by fill(), and write().

◆ h_t_dh_minus_vtx_z

std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::DoubleArmPlotGroup::h_t_dh_minus_vtx_z

Definition at line 159 of file CTPPSProtonReconstructionSimulationValidator.cc.

Referenced by fill(), and write().

◆ h_t_sh_minus_vtx_t

std::unique_ptr<TH1D> CTPPSProtonReconstructionSimulationValidator::DoubleArmPlotGroup::h_t_sh_minus_vtx_t

Definition at line 159 of file CTPPSProtonReconstructionSimulationValidator.cc.

Referenced by fill(), and write().