/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/src/root/MTDifSoftId.cpp

Go to the documentation of this file.
00001 /* @version $Revision: 1566 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2012-03-08 14:00:10 +0100 (Thu, 08 Mar 2012) $ */
00002 
00003 #include "root/MTDifSoftId.hh"
00004 #include "root/MTChannelSoftId.hh"
00005 
00006 
00007 using namespace std;
00008 
00009 
00010 ClassImp(MTDifSoftId)
00011 
00012 MTDifSoftId::MTDifSoftId():chamberId(0),difId(0)
00013 {
00014 
00015 }
00016 
00017 
00018 MTDifSoftId::MTDifSoftId(const MTDifSoftId& orig)
00019 {
00020                 chamberId = orig.chamberId;
00021                 difId = orig.difId;
00022 }
00023 
00024 
00025 MTDifSoftId::~MTDifSoftId()
00026 {
00027 
00028 }
00029 
00030  void MTDifSoftId::SetValue(unsigned int _chamberId,unsigned int _difId)
00031  {
00032                  chamberId = _chamberId;
00033            difId     = _difId;
00034  }
00035 
00036 string MTDifSoftId::toString( ) const
00037 {
00038 
00039          string result;
00040    stringstream schamberId,sdifId, schipId,srow,scol;// (stringstream::in | stringstream::out);
00041 
00042    schamberId<<chamberId;
00043    result="chamber["+schamberId.str();
00044          sdifId<<difId;
00045    result+="]dif["+sdifId.str()+ "]";
00046 
00047          return result;
00048 
00049 }

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