00001 #include "AtlfastEvent/Phi.h" 00002 #include "GaudiKernel/MsgStream.h" 00003 #include <cmath> 00004 const double Phi::s_upperLimit = M_PI; 00005 const double Phi::s_lowerLimit = -M_PI; 00006 const double Phi::s_range = s_upperLimit - s_lowerLimit ; 00007 00008 MsgStream& operator << (MsgStream& s, const Phi& phi){ 00009 s<<setiosflags(std::ios::fixed); 00010 s<<std::setprecision(3); 00011 s 00012 <<std::setw(8)<< phi.lowerLimit()<<" " 00013 <<std::setw(8)<< phi.upperLimit()<<" " 00014 <<std::setw(8)<< phi.range()<<" " 00015 <<std::setw(8)<< phi.val(); 00016 return s; 00017 } 00018 MsgStream& operator << (MsgStream& s, const Phi* phi){ 00019 return s<<*phi; 00020 } 00021 00022 00023 00024