CMS 3D CMS Logo

SimBeamSpotHLLHCObjects.cc
Go to the documentation of this file.
2 
3 #include <iostream>
4 
5 void SimBeamSpotHLLHCObjects::print(std::stringstream& ss) const {
6  ss << "------------------------------------------------------------------------\n"
7  << " Sim Beam Spot HL LHC Data\n\n"
8  << " MeanX = " << meanX() << " [cm]\n"
9  << " MeanY = " << meanY() << " [cm]\n"
10  << " MeanZ = " << meanZ() << " [cm]\n"
11  << " E Proton = " << eProton() << " [GeV]\n"
12  << " Crab Frequency = " << crabFrequency() << " [MHz]\n"
13  << " 800 MHz RF ? " << rf800() << "\n"
14  << " Crossing Angle = " << crossingAngle() << " [urad]\n"
15  << " Crabbing Angle Crossing = " << crabbingAngleCrossing() << " [urad]\n"
16  << " Crabbing Angle Separation = " << crabbingAngleSeparation() << " [urad]\n"
17  << " Beta Crossing Plane = " << betaCrossingPlane() << " [m]\n"
18  << " Beta Separation Plane = " << betaSeparationPlane() << " [m]\n"
19  << " Horizontal Emittance = " << horizontalEmittance() << " [mm]\n"
20  << " Vertical Emittance = " << verticalEmittance() << " [mm]\n"
21  << " Bunch Lenght = " << bunchLenght() << " [m]\n"
22  << " TimeOffset = " << timeOffset() << " [ns]\n"
23  << "------------------------------------------------------------------------\n\n";
24 }
25 
26 std::ostream& operator<<(std::ostream& os, SimBeamSpotHLLHCObjects beam) {
27  std::stringstream ss;
28  beam.print(ss);
29  os << ss.str();
30  return os;
31 }
double eProton() const
get EProton, fCrabFrequency, RF800
double meanX() const
get meanX, meanY, meanZ position
std::ostream & operator<<(std::ostream &os, SimBeamSpotHLLHCObjects beam)
void print(std::stringstream &ss) const
print sim beam spot parameters
double crossingAngle() const
set Crossing and Crabbing angles
double betaCrossingPlane() const
get BetaStar and Emittance
double bunchLenght() const
get BunchLength and TimeOffset