CMS 3D CMS Logo

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              << "            Calculated Beam Spot\n\n"
00008              << "   X0 = " << GetX() << " +/- " << GetXError() << " [cm]\n"
00009              << "   Y0 = " << GetY() << " +/- " << GetYError() << " [cm]\n"
00010              << "   Z0 = " << GetZ() << " +/- " << GetZError() << " [cm]\n"
00011              << " Sigma Z0 = " << GetSigmaZ() << " +/- " << GetSigmaZError() << " [cm]\n"
00012              << " dxdz = " << Getdxdz() << " +/- " << GetdxdzError() << " [radians]\n"
00013              << " dydz = " << Getdydz() << " +/- " << GetdydzError() << " [radians]\n"
00014              << " Beam Width = " << GetBeamWidth() << " +/- " << GetBeamWidthError() << " [cm]\n"
00015              << "-----------------------------------------------------\n\n";
00016 }
00017 
00018 std::ostream& operator<< ( std::ostream& os, BeamSpotObjects beam ) {
00019   std::stringstream ss;
00020   beam.print(ss);
00021   os << ss.str();
00022   return os;
00023 }

Generated on Tue Jun 9 17:26:17 2009 for CMSSW by  doxygen 1.5.4