00001 /* @version $Revision: 1566 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2012-03-08 14:00:10 +0100 (Thu, 08 Mar 2012) $ */ 00002 #include "root/MTDiracChip.hh" 00003 #include "root/MTChip.hh" 00004 00005 #include "geometry/Chip.hh" 00006 #include "geometry/DiracChip.hh" 00007 00008 #include "tools/MicroException.hh" 00009 #include "tools/Log.hh" 00010 00011 #include <iostream> 00012 using namespace std; 00013 00014 ClassImp(MTDiracChip) 00015 00016 //______________________________________________________________________________ 00017 MTDiracChip::MTDiracChip(UInt_t _id) 00018 { 00019 ////FILE_LOG(logDEBUG) << "MTHDiracChip::MTDiracChip((UInt_t _id)" << endl; 00020 bLoThreshold = bMidThreshold = bHiThreshold = 0; 00021 aLoThreshold = aMidThreshold = aHiThreshold = 0; 00022 } 00023 00024 //______________________________________________________________________________ 00025 MTDiracChip::MTDiracChip(const DiracChip& aChip) 00026 :MTChip(dynamic_cast<const Chip&>(aChip)) 00027 { 00028 00029 //FILE_LOG(logDEBUG) << "MTHDiracChip::MTDiracChip(const DiracChip& aChip" << endl; 00030 (*this) = aChip; // appelle operator= 00031 } 00032 00033 //______________________________________________________________________________ 00034 MTDiracChip::~MTDiracChip() 00035 { 00036 00037 } 00038 //______________________________________________________________________________ 00039 MTDiracChip& MTDiracChip::operator=(const DiracChip& aChip) 00040 { 00041 FILE_LOG(logDEBUG) << "MTDiracChip& MTDiracChip::operator=(const DiracChip& aChip)" << endl; 00042 FILE_LOG(logDEBUG) << "aChip.getBLoThreshold()[" << aChip.getBLoThreshold() << "]" << endl; 00043 bLoThreshold = aChip.getBLoThreshold(); 00044 bMidThreshold = aChip.getBMidThreshold(); 00045 bHiThreshold = aChip.getBHiThreshold(); 00046 00047 aLoThreshold = aChip.getALoThreshold(); 00048 aMidThreshold = aChip.getAMidThreshold(); 00049 aHiThreshold = aChip.getAHiThreshold(); 00050 } 00051 00052 //______________________________________________________________________________ 00053 void MTDiracChip::Info(void) const 00054 { 00055 00056 cout << "threshold B High:[" << bHiThreshold << endl; 00057 cout << "threshold B Mid :[" << bMidThreshold << endl; 00058 cout << "threshold B Low :[" << bLoThreshold << endl; 00059 00060 cout << "threshold A High :[" << aHiThreshold << endl; 00061 cout << "threshold A Mid :[" << aMidThreshold << endl; 00062 cout << "threshold A Low :[" << aLoThreshold << endl; 00063 }