/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/src/slowControl/DriftParams_t.cpp

Go to the documentation of this file.
00001 /* @version $Revision: 1624 $ * @modifiedby $Author: lcdet $ * @lastmodified $Date: 2012-03-30 14:49:30 +0200 (Fri, 30 Mar 2012) $ */
00002 #include <iostream>
00003 #include <fstream>
00004 #include <iomanip>
00005 #include "slowControl/DriftParams_t.hh"
00006 
00007 using namespace std;
00008 
00009 //////////////////////////////////////////////////////////////////////////
00010 // parameters for drift chamber
00011 
00012 DriftParams_t::~DriftParams_t()
00013 {
00014   
00015 }
00016 //-------------------------------------------
00017 DriftParams_t& DriftParams_t::operator=(const DriftParams_t& aDrift)
00018 {
00019   voltage = aDrift.voltage;
00020   current = aDrift.current;
00021 }
00022 
00023 //-------------------------------------------
00024 DriftParams_t::DriftParams_t(std::istream& in) {
00025   operator >> (in);
00026 }
00027 
00028 //-------------------------------------------
00029 std::ostream& operator <<(std::ostream& out, const DriftParams_t& x) {
00030   return(out << "v=" << fixed << x.voltage << ", i=" << fixed << x.current);
00031 }
00032 
00033 //-------------------------------------------
00034 std::istream& operator >>(std::istream& in, DriftParams_t& x) {
00035   return(x.operator >> (in));
00036 }
00037 
00038 //-------------------------------------------
00039 std::istream& DriftParams_t::operator >>(std::istream& in) {
00040   in >> voltage; in >> current;
00041   return(in);
00042 }
00043 
00044 

Generated on Mon Jan 7 13:15:22 2013 for MicromegasFramework by  doxygen 1.4.7