Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:56

0001 #include "CondFormats/BeamSpotObjects/interface/BeamSpotObjects.h"
0002 
0003 #include <iostream>
0004 
0005 void BeamSpotObjects::print(std::stringstream& ss) const {
0006   ss << "-----------------------------------------------------\n"
0007      << "              Beam Spot Data\n\n"
0008      << " Beam type    = " << beamType() << "\n"
0009      << "       X0     = " << x() << " +/- " << xError() << " [cm]\n"
0010      << "       Y0     = " << y() << " +/- " << yError() << " [cm]\n"
0011      << "       Z0     = " << z() << " +/- " << zError() << " [cm]\n"
0012      << " Sigma Z0     = " << sigmaZ() << " +/- " << sigmaZError() << " [cm]\n"
0013      << " dxdz         = " << dxdz() << " +/- " << dxdzError() << " [radians]\n"
0014      << " dydz         = " << dydz() << " +/- " << dydzError() << " [radians]\n"
0015      << " Beam Width X = " << beamWidthX() << " +/- " << beamWidthXError() << " [cm]\n"
0016      << " Beam Width Y = " << beamWidthY() << " +/- " << beamWidthYError() << " [cm]\n"
0017      << " Emittance X  = " << emittanceX() << " [cm]\n"
0018      << " Emittance Y  = " << emittanceY() << " [cm]\n"
0019      << " Beta star    = " << betaStar() << " [cm]\n"
0020      << "-----------------------------------------------------\n\n";
0021 }
0022 
0023 std::ostream& operator<<(std::ostream& os, BeamSpotObjects beam) {
0024   std::stringstream ss;
0025   beam.print(ss);
0026   os << ss.str();
0027   return os;
0028 }