00001 /* @version $Revision: 1566 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2012-03-08 14:00:10 +0100 (Thu, 08 Mar 2012) $ */ 00002 #include "root/MTHardroc2Chip.hh" 00003 00004 #include "geometry/Chip.hh" 00005 #include "geometry/Hardroc2Chip.hh" 00006 00007 #include "tools/MicroException.hh" 00008 #include "tools/Log.hh" 00009 00010 00011 #include <iostream> 00012 using namespace std; 00013 00014 ClassImp(MTHardroc2Chip) 00015 00016 MTHardroc2Chip::MTHardroc2Chip(UInt_t _id) 00017 { 00018 thresholdDac_0 = thresholdDac_1 = thresholdDac_2 = 0; 00019 } 00020 00021 //______________________________________________________________________________ 00022 MTHardroc2Chip::MTHardroc2Chip(const Hardroc2Chip& aChip) 00023 :MTChip(dynamic_cast<const Chip&>(aChip)) 00024 { 00025 (*this) = aChip; // appelle operator 00026 } 00027 00028 00029 //______________________________________________________________________________ 00030 MTHardroc2Chip::~MTHardroc2Chip() 00031 { 00032 00033 } 00034 00035 //______________________________________________________________________________ 00036 MTHardroc2Chip& MTHardroc2Chip::operator=(const Hardroc2Chip& aChip) 00037 { 00038 // FILE_LOG(logINFO) << "MTHardroc2Chip& MTHardroc2Chip::operator=(const Hardroc2Chip& aChip)" << endl; 00039 thresholdDac_0 = aChip.getThresholdDac_0(); 00040 thresholdDac_1 = aChip.getThresholdDac_1(); 00041 thresholdDac_2 = aChip.getThresholdDac_2(); 00042 } 00043 00044 //______________________________________________________________________________ 00045 void MTHardroc2Chip::Info(void) const 00046 { 00047 00048 cout << "threshold Dac 0:[" << thresholdDac_0 << endl; 00049 cout << "threshold Dac 1:[" << thresholdDac_1 << endl; 00050 cout << "threshold Dac 2:[" << thresholdDac_2 << endl; 00051 }