CMS 3D CMS Logo

SimBeamSpotObjects.cc
Go to the documentation of this file.
2 
3 #include <iostream>
4 
5 void SimBeamSpotObjects::print(std::stringstream& ss) const {
6  ss << "-----------------------------------------------------\n"
7  << " Sim Beam Spot Data\n\n"
8  << " X0 = " << x() << " [cm]\n"
9  << " Y0 = " << y() << " [cm]\n"
10  << " Z0 = " << z() << " [cm]\n"
11  << " Sigma Z0 = " << sigmaZ() << " [cm]\n"
12  << " Beta star = " << betaStar() << " [cm]\n"
13  << " Emittance X = " << emittance() << " [cm]\n"
14  << " Phi = " << phi() << " [radians]\n"
15  << " Alpha = " << alpha() << " [radians]\n"
16  << " TimeOffset = " << timeOffset() << " [ns]\n"
17  << "-----------------------------------------------------\n\n";
18 }
19 
20 std::ostream& operator<<(std::ostream& os, SimBeamSpotObjects beam) {
21  std::stringstream ss;
22  beam.print(ss);
23  os << ss.str();
24  return os;
25 }
double sigmaZ() const
get sigmaZ
void print(std::stringstream &ss) const
print sim beam spot parameters
double alpha() const
get Alpha
double timeOffset() const
get TimeOffset
std::ostream & operator<<(std::ostream &os, SimBeamSpotObjects beam)
double z() const
get Z position
double emittance() const
get Emittance
double phi() const
get Phi
double betaStar() const
get BetaStar
double x() const
get X position
double y() const
get Y position