CMS 3D CMS Logo

CTPPSBeamParameters.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: CTPPSReadoutObjects
4 // Class: CTPPSBeamParameters
5 //
13 // Original Author: Wagner Carvalho
14 // Created: 20 Nov 2018
15 //
16 
18 #include <iostream>
19 
20  // Constructors
21 
23  beam_momentum_45_ (0.) , beam_momentum_56_ (0.) ,
24  beta_star_x_45_ (0.) , beta_star_x_56_ (0.) ,
25  beta_star_y_45_ (0.) , beta_star_y_56_ (0.) ,
26  beam_divergence_x_45_ (0.) , beam_divergence_x_56_ (0.) ,
27  beam_divergence_y_45_ (0.) , beam_divergence_y_56_ (0.) ,
28  half_crossing_angle_x_45_ (0.) , half_crossing_angle_x_56_ (0.) ,
29  half_crossing_angle_y_45_ (0.) , half_crossing_angle_y_56_ (0.) ,
30  vtx_offset_x_45_ (0.) , vtx_offset_x_56_ (0.) ,
31  vtx_offset_y_45_ (0.) , vtx_offset_y_56_ (0.) ,
32  vtx_offset_z_45_ (0.) , vtx_offset_z_56_ (0.) ,
33  vtx_stddev_x_ (0.) , vtx_stddev_y_ (0.) , vtx_stddev_z_ (0.)
34  {}
35 
36  // Destructor
38 
39  // Getters
40 
43 
48 
53 
58 
65 
69 
70  // Setters
71 
74 
79 
84 
89 
96 
97  void CTPPSBeamParameters::setVtxStddevX( double stddev ) {vtx_stddev_x_ = stddev;}
98  void CTPPSBeamParameters::setVtxStddevY( double stddev ) {vtx_stddev_y_ = stddev;}
99  void CTPPSBeamParameters::setVtxStddevZ( double stddev ) {vtx_stddev_z_ = stddev;}
100 
101 
102  void CTPPSBeamParameters::printInfo(std::stringstream & s)
103  {
104  s << "\n Beam parameters : \n"
105  << "\n beam_momentum_45 = " << beam_momentum_45_ << " GeV"
106  << "\n beam_momentum_56 = " << beam_momentum_56_ << " GeV"
107  << "\n beta_star_x_45 = " << beta_star_x_45_ << " cm"
108  << "\n beta_star_y_45 = " << beta_star_y_45_ << " cm"
109  << "\n beta_star_x_56 = " << beta_star_x_56_ << " cm"
110  << "\n beta_star_y_56 = " << beta_star_y_56_ << " cm"
111  << "\n beam_divergence_x_45 = " << beam_divergence_x_45_ << " rad"
112  << "\n beam_divergence_y_45 = " << beam_divergence_y_45_ << " rad"
113  << "\n beam_divergence_x_56 = " << beam_divergence_x_56_ << " rad"
114  << "\n beam_divergence_y_56 = " << beam_divergence_y_56_ << " rad"
115  << "\n half_crossing_angle_x_45 = " << half_crossing_angle_x_45_ << " rad"
116  << "\n half_crossing_angle_y_45 = " << half_crossing_angle_y_45_ << " rad"
117  << "\n half_crossing_angle_x_56 = " << half_crossing_angle_x_56_ << " rad"
118  << "\n half_crossing_angle_y_56 = " << half_crossing_angle_y_56_ << " rad"
119  << "\n vtx_offset_x_45 = " << vtx_offset_x_45_ << " cm"
120  << "\n vtx_offset_y_45 = " << vtx_offset_y_45_ << " cm"
121  << "\n vtx_offset_z_45 = " << vtx_offset_z_45_ << " cm"
122  << "\n vtx_offset_x_56 = " << vtx_offset_x_56_ << " cm"
123  << "\n vtx_offset_y_56 = " << vtx_offset_y_56_ << " cm"
124  << "\n vtx_offset_z_56 = " << vtx_offset_z_56_ << " cm"
125  << "\n vtx_stddev_x = " << vtx_stddev_x_ << " cm"
126  << "\n vtx_stddev_y = " << vtx_stddev_y_ << " cm"
127  << "\n vtx_stddev_z = " << vtx_stddev_z_ << " cm"
128  << std::endl ;
129 
130  }
131 
132 std::ostream & operator<<( std::ostream & os, CTPPSBeamParameters info ) {
133  std::stringstream ss;
134  info.printInfo( ss );
135  os << ss.str();
136  return os;
137 }
double getBetaStarX45() const
void printInfo(std::stringstream &s)
static const TGPicture * info(bool iBackgroundIsBlack)
std::ostream & operator<<(std::ostream &os, CTPPSBeamParameters info)
void setBeamDivergenceY45(double div)
double getBeamDivergenceX56() const
double getVtxStddevZ() const
void setVtxStddevX(double stddev)
void setHalfXangleX45(double angle)
void setVtxStddevZ(double stddev)
void setHalfXangleY56(double angle)
double getVtxOffsetX45() const
void setVtxOffsetY56(double offset)
double getHalfXangleY56() const
void setBetaStarY45(double beta)
double getHalfXangleY45() const
void setBeamMom45(double mom)
double getBeamDivergenceX45() const
double getBeamDivergenceY56() const
void setBeamDivergenceX56(double div)
void setBeamDivergenceX45(double div)
double getVtxOffsetZ56() const
double getBetaStarY45() const
void setVtxOffsetZ56(double offset)
double getBeamMom56() const
double getHalfXangleX56() const
void setVtxStddevY(double stddev)
void setVtxOffsetX45(double offset)
double getVtxOffsetY56() const
void setBeamMom56(double mom)
void setBetaStarX56(double beta)
void setBeamDivergenceY56(double div)
double getVtxStddevX() const
void setHalfXangleY45(double angle)
double getBeamDivergenceY45() const
void setBetaStarX45(double beta)
double getVtxOffsetZ45() const
double getBetaStarX56() const
void setHalfXangleX56(double angle)
void setVtxOffsetY45(double offset)
double getVtxOffsetY45() const
double getBeamMom45() const
double getVtxStddevY() const
void setBetaStarY56(double beta)
double getHalfXangleX45() const
double getVtxOffsetX56() const
void setVtxOffsetZ45(double offset)
void setVtxOffsetX56(double offset)
double getBetaStarY56() const
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11