CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/CondFormats/BeamSpotObjects/src/BeamSpotObjects.cc

Go to the documentation of this file.
00001 #include "CondFormats/BeamSpotObjects/interface/BeamSpotObjects.h"
00002 
00003 #include <iostream>
00004 
00005 void BeamSpotObjects::print(std::stringstream& ss) const {
00006           ss << "-----------------------------------------------------\n"
00007              << "              Beam Spot Data\n\n"
00008                  << " Beam type    = " << GetBeamType() << "\n"
00009              << "       X0     = " << GetX() << " +/- " << GetXError() << " [cm]\n"
00010              << "       Y0     = " << GetY() << " +/- " << GetYError() << " [cm]\n"
00011              << "       Z0     = " << GetZ() << " +/- " << GetZError() << " [cm]\n"
00012              << " Sigma Z0     = " << GetSigmaZ() << " +/- " << GetSigmaZError() << " [cm]\n"
00013              << " dxdz         = " << Getdxdz() << " +/- " << GetdxdzError() << " [radians]\n"
00014              << " dydz         = " << Getdydz() << " +/- " << GetdydzError() << " [radians]\n"
00015              << " Beam Width X = " << GetBeamWidthX() << " +/- " << GetBeamWidthXError() << " [cm]\n"
00016                  << " Beam Width Y = " << GetBeamWidthY() << " +/- " << GetBeamWidthYError() << " [cm]\n"
00017                  << " Emittance X  = " << GetEmittanceX() << " [cm]\n"
00018                  << " Emittance Y  = " << GetEmittanceY() << " [cm]\n"
00019                  << " Beta star    = " << GetBetaStar() << " [cm]\n"
00020              << "-----------------------------------------------------\n\n";
00021 }
00022 
00023 std::ostream& operator<< ( std::ostream& os, BeamSpotObjects beam ) {
00024   std::stringstream ss;
00025   beam.print(ss);
00026   os << ss.str();
00027   return os;
00028 }