CMS 3D CMS Logo

BeamSpotObjects.cc
Go to the documentation of this file.
2 
3 #include <iostream>
4 
5 void BeamSpotObjects::print(std::stringstream& ss) const {
6  ss << "-----------------------------------------------------\n"
7  << " Beam Spot Data\n\n"
8  << " Beam type = " << beamType() << "\n"
9  << " X0 = " << x() << " +/- " << xError() << " [cm]\n"
10  << " Y0 = " << y() << " +/- " << yError() << " [cm]\n"
11  << " Z0 = " << z() << " +/- " << zError() << " [cm]\n"
12  << " Sigma Z0 = " << sigmaZ() << " +/- " << sigmaZError() << " [cm]\n"
13  << " dxdz = " << dxdz() << " +/- " << dxdzError() << " [radians]\n"
14  << " dydz = " << dydz() << " +/- " << dydzError() << " [radians]\n"
15  << " Beam Width X = " << beamWidthX() << " +/- " << beamWidthXError() << " [cm]\n"
16  << " Beam Width Y = " << beamWidthY() << " +/- " << beamWidthYError() << " [cm]\n"
17  << " Emittance X = " << emittanceX() << " [cm]\n"
18  << " Emittance Y = " << emittanceY() << " [cm]\n"
19  << " Beta star = " << betaStar() << " [cm]\n"
20  << "-----------------------------------------------------\n\n";
21 }
22 
23 std::ostream& operator<<(std::ostream& os, BeamSpotObjects beam) {
24  std::stringstream ss;
25  beam.print(ss);
26  os << ss.str();
27  return os;
28 }
double emittanceX() const
get emittance
double dxdzError() const
get dxdz slope, crossing angle in XZ Error
double z() const
get Z beam position
std::ostream & operator<<(std::ostream &os, BeamSpotObjects beam)
double dydz() const
get dydz slope, crossing angle in YZ
double beamWidthX() const
get average transverse beam width
int beamType() const
get beam type
double beamWidthYError() const
get average transverse beam width error X = Y
double zError() const
get Z beam position Error
double x() const
get X beam position
double beamWidthY() const
get average transverse beam width
double y() const
get Y beam position
double xError() const
get X beam position Error
double sigmaZ() const
get sigma Z, RMS bunch length
double emittanceY() const
get emittance
void print(std::stringstream &ss) const
print beam spot parameters
double betaStar() const
get beta star
double dydzError() const
get dydz slope, crossing angle in YZ Error
double beamWidthXError() const
get average transverse beam width error ASSUME the same for X and Y
double sigmaZError() const
get sigma Z, RMS bunch length Error
double yError() const
get Y beam position Error
double dxdz() const
get dxdz slope, crossing angle in XZ