CMS 3D CMS Logo

CTPPSBeamParameters.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: PPSObjects
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.),
24  beam_momentum_56_(0.),
25  beta_star_x_45_(0.),
26  beta_star_x_56_(0.),
27  beta_star_y_45_(0.),
28  beta_star_y_56_(0.),
29  beam_divergence_x_45_(0.),
30  beam_divergence_x_56_(0.),
31  beam_divergence_y_45_(0.),
32  beam_divergence_y_56_(0.),
33  half_crossing_angle_x_45_(0.),
34  half_crossing_angle_x_56_(0.),
35  half_crossing_angle_y_45_(0.),
36  half_crossing_angle_y_56_(0.),
37  vtx_offset_x_45_(0.),
38  vtx_offset_x_56_(0.),
39  vtx_offset_y_45_(0.),
40  vtx_offset_y_56_(0.),
41  vtx_offset_z_45_(0.),
42  vtx_offset_z_56_(0.),
43  vtx_offset_t_45_(0.),
44  vtx_offset_t_56_(0.),
45  vtx_stddev_x_(0.),
46  vtx_stddev_y_(0.),
47  vtx_stddev_z_(0.),
48  vtx_stddev_t_(0.) {}
49 
50 // Destructor
52 
53 // Getters
54 
57 
62 
67 
72 
81 
86 
87 // Setters
88 
91 
96 
101 
106 
115 
116 void CTPPSBeamParameters::setVtxStddevX(double stddev) { vtx_stddev_x_ = stddev; }
117 void CTPPSBeamParameters::setVtxStddevY(double stddev) { vtx_stddev_y_ = stddev; }
118 void CTPPSBeamParameters::setVtxStddevZ(double stddev) { vtx_stddev_z_ = stddev; }
119 void CTPPSBeamParameters::setVtxStddevT(double stddev) { vtx_stddev_t_ = stddev; }
120 
121 void CTPPSBeamParameters::printInfo(std::stringstream& s) {
122  s << "\n Beam parameters : \n"
123  << "\n beam_momentum_45 = " << beam_momentum_45_ << " GeV"
124  << "\n beam_momentum_56 = " << beam_momentum_56_ << " GeV"
125  << "\n beta_star_x_45 = " << beta_star_x_45_ << " cm"
126  << "\n beta_star_y_45 = " << beta_star_y_45_ << " cm"
127  << "\n beta_star_x_56 = " << beta_star_x_56_ << " cm"
128  << "\n beta_star_y_56 = " << beta_star_y_56_ << " cm"
129  << "\n beam_divergence_x_45 = " << beam_divergence_x_45_ << " rad"
130  << "\n beam_divergence_y_45 = " << beam_divergence_y_45_ << " rad"
131  << "\n beam_divergence_x_56 = " << beam_divergence_x_56_ << " rad"
132  << "\n beam_divergence_y_56 = " << beam_divergence_y_56_ << " rad"
133  << "\n half_crossing_angle_x_45 = " << half_crossing_angle_x_45_ << " rad"
134  << "\n half_crossing_angle_y_45 = " << half_crossing_angle_y_45_ << " rad"
135  << "\n half_crossing_angle_x_56 = " << half_crossing_angle_x_56_ << " rad"
136  << "\n half_crossing_angle_y_56 = " << half_crossing_angle_y_56_ << " rad"
137  << "\n vtx_offset_x_45 = " << vtx_offset_x_45_ << " cm"
138  << "\n vtx_offset_y_45 = " << vtx_offset_y_45_ << " cm"
139  << "\n vtx_offset_z_45 = " << vtx_offset_z_45_ << " cm"
140  << "\n vtx_offset_t_45 = " << vtx_offset_t_45_ << " cm"
141  << "\n vtx_offset_x_56 = " << vtx_offset_x_56_ << " cm"
142  << "\n vtx_offset_y_56 = " << vtx_offset_y_56_ << " cm"
143  << "\n vtx_offset_z_56 = " << vtx_offset_z_56_ << " cm"
144  << "\n vtx_offset_t_56 = " << vtx_offset_t_56_ << " cm"
145  << "\n vtx_stddev_x = " << vtx_stddev_x_ << " cm"
146  << "\n vtx_stddev_y = " << vtx_stddev_y_ << " cm"
147  << "\n vtx_stddev_z = " << vtx_stddev_z_ << " cm"
148  << "\n vtx_stddev_t = " << vtx_stddev_t_ << " cm" << std::endl;
149 }
150 
151 std::ostream& operator<<(std::ostream& os, CTPPSBeamParameters info) {
152  std::stringstream ss;
153  info.printInfo(ss);
154  os << ss.str();
155  return os;
156 }
void printInfo(std::stringstream &s)
static const TGPicture * info(bool iBackgroundIsBlack)
std::ostream & operator<<(std::ostream &os, CTPPSBeamParameters info)
void setBeamDivergenceY45(double div)
double getVtxStddevX() const
double getVtxStddevZ() const
double getBetaStarY45() const
void setVtxStddevX(double stddev)
void setHalfXangleX45(double angle)
double getHalfXangleX56() const
void setVtxStddevZ(double stddev)
void setHalfXangleY56(double angle)
double getBetaStarX45() const
double getBetaStarX56() const
double getBetaStarY56() const
void setVtxStddevT(double stddev)
void setVtxOffsetY56(double offset)
double getVtxOffsetT56() const
double getVtxOffsetX45() const
void setBetaStarY45(double beta)
double getHalfXangleY56() const
double getVtxOffsetT45() const
void setBeamMom45(double mom)
double getVtxStddevY() const
double getBeamDivergenceX56() const
void setBeamDivergenceX56(double div)
void setBeamDivergenceX45(double div)
double getVtxOffsetZ45() const
double getVtxStddevT() const
void setVtxOffsetZ56(double offset)
double getVtxOffsetY45() const
void setVtxStddevY(double stddev)
void setVtxOffsetX45(double offset)
void setBeamMom56(double mom)
void setBetaStarX56(double beta)
double getBeamMom45() const
void setBeamDivergenceY56(double div)
void setHalfXangleY45(double angle)
double getBeamDivergenceY56() const
void setBetaStarX45(double beta)
double getHalfXangleY45() const
double getVtxOffsetZ56() const
void setVtxOffsetT56(double offset)
void setHalfXangleX56(double angle)
void setVtxOffsetY45(double offset)
double getBeamDivergenceX45() const
double getBeamMom56() const
void setBetaStarY56(double beta)
double getBeamDivergenceY45() const
double getVtxOffsetX56() const
double getHalfXangleX45() const
void setVtxOffsetT45(double offset)
void setVtxOffsetZ45(double offset)
void setVtxOffsetX56(double offset)
double getVtxOffsetY56() const
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11