00001 /* @version $Revision: 1328 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2011-10-03 17:04:17 +0200 (Mon, 03 Oct 2011) $ */ 00002 00003 00004 #include "slowControl/PMParams_t.hh" 00005 #include <iostream> 00006 #include <fstream> 00007 #include <iomanip> 00008 00009 ////////////////////////////////////////////////////////////////////////// 00010 // parameters for photomultipliers 00011 00012 PMParams_t& PMParams_t::operator=(const PMParams_t& aPM) 00013 { 00014 v1 = aPM.v1; 00015 v2 = aPM.v2; 00016 } 00017 //-------------------------------------------------- 00018 00019 PMParams_t::PMParams_t(std::istream& in) { 00020 operator >> (in); 00021 } 00022 00023 std::ostream& operator <<(std::ostream& out, const PMParams_t& x) { 00024 return(out << "v1=" << fixed << x.v1 << ", v2=" << fixed << x.v2); 00025 } 00026 00027 std::istream& operator >>(std::istream& in, PMParams_t& x) { 00028 return(x.operator >> (in)); 00029 } 00030 00031 std::istream& PMParams_t::operator >>(std::istream& in) { 00032 in >> v1; in >> v2; 00033 return(in); 00034 }; 00035