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 }
CTPPSBeamParameters
Definition: CTPPSBeamParameters.h:22
CTPPSBeamParameters::setHalfXangleX56
void setHalfXangleX56(double angle)
Definition: CTPPSBeamParameters.cc:104
CTPPSBeamParameters::beam_divergence_x_45_
double beam_divergence_x_45_
Definition: CTPPSBeamParameters.h:107
CTPPSBeamParameters::getVtxStddevY
double getVtxStddevY() const
Definition: CTPPSBeamParameters.cc:83
CTPPSBeamParameters::setVtxOffsetY56
void setVtxOffsetY56(double offset)
Definition: CTPPSBeamParameters.cc:112
CTPPSBeamParameters.h
CTPPSBeamParameters::half_crossing_angle_y_56_
double half_crossing_angle_y_56_
Definition: CTPPSBeamParameters.h:111
CTPPSBeamParameters::setVtxStddevX
void setVtxStddevX(double stddev)
Definition: CTPPSBeamParameters.cc:116
CTPPSBeamParameters::setBetaStarX45
void setBetaStarX45(double beta)
Definition: CTPPSBeamParameters.cc:92
CTPPSBeamParameters::printInfo
void printInfo(std::stringstream &s)
Definition: CTPPSBeamParameters.cc:121
CTPPSBeamParameters::beam_divergence_y_45_
double beam_divergence_y_45_
Definition: CTPPSBeamParameters.h:108
CTPPSBeamParameters::getHalfXangleY45
double getHalfXangleY45() const
Definition: CTPPSBeamParameters.cc:69
CTPPSBeamParameters::vtx_stddev_z_
double vtx_stddev_z_
Definition: CTPPSBeamParameters.h:123
CTPPSBeamParameters::vtx_stddev_x_
double vtx_stddev_x_
Definition: CTPPSBeamParameters.h:121
zMuMuMuonUserData.beta
beta
Definition: zMuMuMuonUserData.py:10
CTPPSBeamParameters::vtx_stddev_y_
double vtx_stddev_y_
Definition: CTPPSBeamParameters.h:122
CTPPSBeamParameters::setVtxStddevT
void setVtxStddevT(double stddev)
Definition: CTPPSBeamParameters.cc:119
CTPPSBeamParameters::getHalfXangleX56
double getHalfXangleX56() const
Definition: CTPPSBeamParameters.cc:70
CTPPSBeamParameters::setVtxOffsetT56
void setVtxOffsetT56(double offset)
Definition: CTPPSBeamParameters.cc:114
CTPPSBeamParameters::vtx_offset_y_45_
double vtx_offset_y_45_
Definition: CTPPSBeamParameters.h:115
CTPPSBeamParameters::setHalfXangleY56
void setHalfXangleY56(double angle)
Definition: CTPPSBeamParameters.cc:105
CTPPSBeamParameters::beam_momentum_56_
double beam_momentum_56_
Definition: CTPPSBeamParameters.h:102
CTPPSBeamParameters::getBeamMom56
double getBeamMom56() const
Definition: CTPPSBeamParameters.cc:56
CTPPSBeamParameters::beam_divergence_y_56_
double beam_divergence_y_56_
Definition: CTPPSBeamParameters.h:108
CTPPSBeamParameters::getBetaStarX56
double getBetaStarX56() const
Definition: CTPPSBeamParameters.cc:60
CTPPSBeamParameters::setVtxOffsetZ45
void setVtxOffsetZ45(double offset)
Definition: CTPPSBeamParameters.cc:109
CTPPSBeamParameters::getHalfXangleX45
double getHalfXangleX45() const
Definition: CTPPSBeamParameters.cc:68
CTPPSBeamParameters::setVtxOffsetY45
void setVtxOffsetY45(double offset)
Definition: CTPPSBeamParameters.cc:108
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
CTPPSBeamParameters::setVtxStddevY
void setVtxStddevY(double stddev)
Definition: CTPPSBeamParameters.cc:117
CTPPSBeamParameters::~CTPPSBeamParameters
~CTPPSBeamParameters()
Definition: CTPPSBeamParameters.cc:51
CTPPSBeamParameters::getBetaStarY45
double getBetaStarY45() const
Definition: CTPPSBeamParameters.cc:59
CTPPSBeamParameters::getVtxOffsetT56
double getVtxOffsetT56() const
Definition: CTPPSBeamParameters.cc:80
CTPPSBeamParameters::getVtxOffsetX56
double getVtxOffsetX56() const
Definition: CTPPSBeamParameters.cc:77
CTPPSBeamParameters::CTPPSBeamParameters
CTPPSBeamParameters()
Definition: CTPPSBeamParameters.cc:22
CTPPSBeamParameters::getVtxOffsetZ56
double getVtxOffsetZ56() const
Definition: CTPPSBeamParameters.cc:79
CTPPSBeamParameters::setBeamDivergenceY56
void setBeamDivergenceY56(double div)
Definition: CTPPSBeamParameters.cc:100
CTPPSBeamParameters::getBeamDivergenceY45
double getBeamDivergenceY45() const
Definition: CTPPSBeamParameters.cc:64
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
CTPPSBeamParameters::setBeamMom56
void setBeamMom56(double mom)
Definition: CTPPSBeamParameters.cc:90
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CTPPSBeamParameters::getVtxOffsetZ45
double getVtxOffsetZ45() const
Definition: CTPPSBeamParameters.cc:75
CTPPSBeamParameters::getHalfXangleY56
double getHalfXangleY56() const
Definition: CTPPSBeamParameters.cc:71
CTPPSBeamParameters::getBeamDivergenceY56
double getBeamDivergenceY56() const
Definition: CTPPSBeamParameters.cc:66
CTPPSBeamParameters::beta_star_x_45_
double beta_star_x_45_
Definition: CTPPSBeamParameters.h:104
CTPPSBeamParameters::getBeamDivergenceX45
double getBeamDivergenceX45() const
Definition: CTPPSBeamParameters.cc:63
CTPPSBeamParameters::beta_star_y_56_
double beta_star_y_56_
Definition: CTPPSBeamParameters.h:105
CTPPSBeamParameters::setVtxOffsetT45
void setVtxOffsetT45(double offset)
Definition: CTPPSBeamParameters.cc:110
CTPPSBeamParameters::vtx_offset_z_45_
double vtx_offset_z_45_
Definition: CTPPSBeamParameters.h:116
CTPPSBeamParameters::setBetaStarY56
void setBetaStarY56(double beta)
Definition: CTPPSBeamParameters.cc:95
CTPPSBeamParameters::setHalfXangleY45
void setHalfXangleY45(double angle)
Definition: CTPPSBeamParameters.cc:103
CTPPSBeamParameters::getVtxOffsetY56
double getVtxOffsetY56() const
Definition: CTPPSBeamParameters.cc:78
CTPPSBeamParameters::getBeamDivergenceX56
double getBeamDivergenceX56() const
Definition: CTPPSBeamParameters.cc:65
CTPPSBeamParameters::half_crossing_angle_x_45_
double half_crossing_angle_x_45_
Definition: CTPPSBeamParameters.h:110
CTPPSBeamParameters::getVtxOffsetY45
double getVtxOffsetY45() const
Definition: CTPPSBeamParameters.cc:74
CTPPSBeamParameters::vtx_offset_x_45_
double vtx_offset_x_45_
Definition: CTPPSBeamParameters.h:114
CTPPSBeamParameters::vtx_offset_t_45_
double vtx_offset_t_45_
Definition: CTPPSBeamParameters.h:117
CTPPSBeamParameters::half_crossing_angle_y_45_
double half_crossing_angle_y_45_
Definition: CTPPSBeamParameters.h:111
CTPPSBeamParameters::setBeamMom45
void setBeamMom45(double mom)
Definition: CTPPSBeamParameters.cc:89
CTPPSBeamParameters::getBeamMom45
double getBeamMom45() const
Definition: CTPPSBeamParameters.cc:55
CTPPSBeamParameters::setBeamDivergenceX56
void setBeamDivergenceX56(double div)
Definition: CTPPSBeamParameters.cc:99
CTPPSBeamParameters::getVtxOffsetX45
double getVtxOffsetX45() const
Definition: CTPPSBeamParameters.cc:73
CTPPSBeamParameters::vtx_offset_x_56_
double vtx_offset_x_56_
Definition: CTPPSBeamParameters.h:114
CTPPSBeamParameters::setVtxOffsetX56
void setVtxOffsetX56(double offset)
Definition: CTPPSBeamParameters.cc:111
CTPPSBeamParameters::getBetaStarY56
double getBetaStarY56() const
Definition: CTPPSBeamParameters.cc:61
CTPPSBeamParameters::setBeamDivergenceY45
void setBeamDivergenceY45(double div)
Definition: CTPPSBeamParameters.cc:98
CTPPSBeamParameters::half_crossing_angle_x_56_
double half_crossing_angle_x_56_
Definition: CTPPSBeamParameters.h:110
CTPPSBeamParameters::setVtxOffsetZ56
void setVtxOffsetZ56(double offset)
Definition: CTPPSBeamParameters.cc:113
CTPPSBeamParameters::beta_star_x_56_
double beta_star_x_56_
Definition: CTPPSBeamParameters.h:104
CTPPSBeamParameters::getVtxStddevZ
double getVtxStddevZ() const
Definition: CTPPSBeamParameters.cc:84
CTPPSBeamParameters::vtx_stddev_t_
double vtx_stddev_t_
Definition: CTPPSBeamParameters.h:124
CTPPSBeamParameters::setVtxOffsetX45
void setVtxOffsetX45(double offset)
Definition: CTPPSBeamParameters.cc:107
CTPPSBeamParameters::vtx_offset_z_56_
double vtx_offset_z_56_
Definition: CTPPSBeamParameters.h:116
angle
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11
CTPPSBeamParameters::getVtxOffsetT45
double getVtxOffsetT45() const
Definition: CTPPSBeamParameters.cc:76
CTPPSBeamParameters::beta_star_y_45_
double beta_star_y_45_
Definition: CTPPSBeamParameters.h:105
CTPPSBeamParameters::getVtxStddevT
double getVtxStddevT() const
Definition: CTPPSBeamParameters.cc:85
CTPPSBeamParameters::beam_divergence_x_56_
double beam_divergence_x_56_
Definition: CTPPSBeamParameters.h:107
CTPPSBeamParameters::setBetaStarY45
void setBetaStarY45(double beta)
Definition: CTPPSBeamParameters.cc:93
CTPPSBeamParameters::getVtxStddevX
double getVtxStddevX() const
Definition: CTPPSBeamParameters.cc:82
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
CTPPSBeamParameters::beam_momentum_45_
double beam_momentum_45_
Definition: CTPPSBeamParameters.h:101
operator<<
std::ostream & operator<<(std::ostream &os, CTPPSBeamParameters info)
Definition: CTPPSBeamParameters.cc:151
CTPPSBeamParameters::setHalfXangleX45
void setHalfXangleX45(double angle)
Definition: CTPPSBeamParameters.cc:102
CTPPSBeamParameters::vtx_offset_t_56_
double vtx_offset_t_56_
Definition: CTPPSBeamParameters.h:117
CTPPSBeamParameters::setBeamDivergenceX45
void setBeamDivergenceX45(double div)
Definition: CTPPSBeamParameters.cc:97
CTPPSBeamParameters::setBetaStarX56
void setBetaStarX56(double beta)
Definition: CTPPSBeamParameters.cc:94
CTPPSBeamParameters::setVtxStddevZ
void setVtxStddevZ(double stddev)
Definition: CTPPSBeamParameters.cc:118
CTPPSBeamParameters::vtx_offset_y_56_
double vtx_offset_y_56_
Definition: CTPPSBeamParameters.h:115
CTPPSBeamParameters::getBetaStarX45
double getBetaStarX45() const
Definition: CTPPSBeamParameters.cc:58