CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 153 of file CTPPSProtonReconstructionSimulationValidator.cc.

Constructor & Destructor Documentation

CTPPSProtonReconstructionSimulationValidator::DoubleArmPlotGroup::DoubleArmPlotGroup ( )
inline

Definition at line 157 of file CTPPSProtonReconstructionSimulationValidator.cc.

158  : h2_t_sh_vs_vtx_t(new TH2D("", ";vtx_t (mm);(t_56 + t_45)/2 (mm)", 100, -250., +250., 100, -250., +250.)),
159  h2_t_dh_vs_vtx_z(new TH2D("", ";vtx_z (mm);(t_56 - t_45)/2 (mm)", 100, -250., +250., 100, -250., +250.)),
160  h_t_sh_minus_vtx_t(new TH1D("", ";(t_56 + t_45)/2 - vtx_t (mm)", 100, -100., +100.)),
161  h_t_dh_minus_vtx_z(new TH1D("", ";(t_56 - t_45)/2 - vtx_z (mm)", 100, -100., +100.)) {}

Member Function Documentation

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

Definition at line 163 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().

163  {
164  const double t_sum_half = (time_56 + time_45) / 2. * CLHEP::c_light;
165  const double t_dif_half = (time_56 - time_45) / 2. * CLHEP::c_light;
166 
167  h2_t_sh_vs_vtx_t->Fill(vtx_t, t_sum_half);
168  h_t_sh_minus_vtx_t->Fill(t_sum_half - vtx_t);
169 
170  h2_t_dh_vs_vtx_z->Fill(vtx_z, t_dif_half);
171  h_t_dh_minus_vtx_z->Fill(t_dif_half - vtx_z);
172  }
ap_int< 5 > vtx_t
Definition: data.h:8
void CTPPSProtonReconstructionSimulationValidator::DoubleArmPlotGroup::write ( ) const
inline

Member Data Documentation

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

Definition at line 154 of file CTPPSProtonReconstructionSimulationValidator.cc.

Referenced by fill(), and write().

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

Definition at line 154 of file CTPPSProtonReconstructionSimulationValidator.cc.

Referenced by fill(), and write().

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

Definition at line 155 of file CTPPSProtonReconstructionSimulationValidator.cc.

Referenced by fill(), and write().

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

Definition at line 155 of file CTPPSProtonReconstructionSimulationValidator.cc.

Referenced by fill(), and write().