00001 /* @version $Revision: 1599 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2012-03-26 10:43:48 +0200 (Mon, 26 Mar 2012) $ */ 00002 #include "root/MTMicrorocChip.hh" 00003 00004 #include "geometry/Chip.hh" 00005 #include "geometry/MicrorocChip.hh" 00006 00007 #include "tools/MicroException.hh" 00008 #include "tools/Log.hh" 00009 00010 00011 #include <iostream> 00012 using namespace std; 00013 00014 ClassImp(MTMicrorocChip) 00015 00016 MTMicrorocChip::MTMicrorocChip(UInt_t _id) 00017 { 00018 thresholdDac_0 = thresholdDac_1 = thresholdDac_2 = 0; 00019 shaper_lg = shaper_hg = 0; 00020 } 00021 00022 //______________________________________________________________________________ 00023 MTMicrorocChip::MTMicrorocChip(const MicrorocChip& aChip) 00024 :MTChip(dynamic_cast<const Chip&>(aChip)) 00025 { 00026 (*this) = aChip; // appelle operator 00027 } 00028 00029 00030 //______________________________________________________________________________ 00031 MTMicrorocChip::~MTMicrorocChip() 00032 { 00033 00034 } 00035 00036 //______________________________________________________________________________ 00037 MTMicrorocChip& MTMicrorocChip::operator=(const MicrorocChip& aChip) 00038 { 00039 thresholdDac_0 = aChip.getThresholdDac_0(); 00040 thresholdDac_1 = aChip.getThresholdDac_1(); 00041 thresholdDac_2 = aChip.getThresholdDac_2(); 00042 shaper_lg = aChip.getShaper_lg(); 00043 shaper_hg = aChip.getShaper_hg(); 00044 return *this; 00045 } 00046 00047 //______________________________________________________________________________ 00048 void MTMicrorocChip::Info(void) const 00049 { 00050 00051 00052 cout << "threshold Dac 0:[" << thresholdDac_0 << endl; 00053 cout << "threshold Dac 1:[" << thresholdDac_1 << endl; 00054 cout << "threshold Dac 2:[" << thresholdDac_2 << endl; 00055 00056 cout << "shaper low gain :[" << shaper_lg << endl; 00057 cout << "shaper high gain :[" << shaper_hg << endl; 00058 }