00001 /* @version $Revision: 1328 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2011-10-03 17:04:17 +0200 (Mon, 03 Oct 2011) $ */ 00002 00003 #ifndef _HARDROC1_CHIP_HH_ 00004 #define _HARDROC1_CHIP_HH_ 00005 00006 ////////////////////////////////////////////////////////////////////////// 00007 // MICROMEGAS 00008 // 00009 // HardRock chip for Dirac and Hardroc boards 00010 // 00011 ////////////////////////////////////////////////////////////////////////// 00012 00013 #include "mTypes.h" 00014 #include "geometry/Chip.hh" 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // CLASS HardRock // 00018 ////////////////////////////////////////////////////////////////////////// 00019 class Hardroc1Chip : public Chip { 00020 public : 00021 Hardroc1Chip(const Board& aBoard, const i32 aCol, const i32 aRow, const ui32 nbColumns, const ui32 nbRows, const i32 aId,const ui32 aSerialNumber); 00022 virtual ~Hardroc1Chip() { }; 00023 00024 //------ methods ------------------// 00025 public : 00026 const ui32 getXGap() const { return(0); }; // in centimeters 10um 00027 const ui32 getYGap() const { return(0); }; 00028 00029 ui32 getThresholdDac_0() const{ return thresholdDac_0;}; 00030 ui32 getThresholdDac_1() const{ return thresholdDac_1;}; 00031 00032 void setThresholdDac_0( ui32 value) { thresholdDac_0 = value;}; 00033 void setThresholdDac_1(ui32 value) {thresholdDac_1 = value;}; 00034 00035 00036 private : 00037 void init(); 00038 int HRmap(int hr,int channel); 00039 00040 private : 00041 ui32 thresholdDac_0; 00042 ui32 thresholdDac_1; 00043 //----- data members --------------// 00044 00045 }; 00046 00047 #endif // _HARDROCK_CHIP_HH_