00001 #ifndef ROOT_MTHardroc2Chip 00002 #define ROOT_MTHardroc2Chip 00003 00004 #include "TObject.h" 00005 #include "TClonesArray.h" 00006 #include "TRefArray.h" 00007 #include "TRef.h" 00008 #include "TH1.h" 00009 #include "TMath.h" 00010 #include <vector> 00011 #include <map> 00012 00013 #include "root/MTChip.hh" 00014 00015 class Hardroc2Chip; 00016 00017 //////////////////////////////////////////////////////////////////////////////////////// 00018 /// CLASS MTHARDROC2CHIP(containing hardroc2 chip configuration) 00019 /////////////////////////////////////////////////////////////////////////////////////// 00020 class MTHardroc2Chip : public MTChip { 00021 00022 public: 00023 MTHardroc2Chip(UInt_t id = 0); 00024 MTHardroc2Chip(const Hardroc2Chip& aChip); 00025 ~MTHardroc2Chip(); 00026 MTHardroc2Chip& operator=(const Hardroc2Chip& aChip); 00027 00028 private: 00029 00030 // equivalent informations are stored in Chip class 00031 UInt_t thresholdDac_0; 00032 UInt_t thresholdDac_1; 00033 UInt_t thresholdDac_2; 00034 00035 00036 public: 00037 00038 UInt_t GetThresholdDac_0() const { return thresholdDac_0;}; 00039 UInt_t GetThresholdDac_1() const { return thresholdDac_1;}; 00040 UInt_t GetThresholdDac_2() const { return thresholdDac_2;}; 00041 00042 void SetThresholdDac_0(UInt_t value) { thresholdDac_0 = value;}; 00043 void SetThresholdDac_1(UInt_t value) { thresholdDac_1 = value;}; 00044 void SetThresholdDac_2(UInt_t value) { thresholdDac_2 = value;}; 00045 00046 void Info(void) const; 00047 00048 ClassDef(MTHardroc2Chip, 34) //MTChip structure 00049 }; 00050 00051 #endif