/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/include/geometry/Hardroc2Chip.hh

Go to the documentation of this file.
00001 /* @version $Revision: 1328 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2011-10-03 17:04:17 +0200 (Mon, 03 Oct 2011) $ */
00002 
00003 #ifndef _HARDROC2_CHIP_HH_
00004 #define _HARDROC2_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 Hardroc2Chip : public Chip {
00020   public :
00021     Hardroc2Chip(const Board& aBoard, const i32 aCol, const i32 aRow,  const i32 aId,const ui32 aSerialNumber);
00022     virtual ~Hardroc2Chip() { };
00023 
00024     //------ methods ------------------//
00025   public :
00026     const ui32 getXGap() const { return(0); }; 
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     ui32 getThresholdDac_2() const{ return thresholdDac_2;};
00032 
00033    void setThresholdDac_0( ui32 value)  { thresholdDac_0 = value;};
00034    void setThresholdDac_1(ui32 value) {thresholdDac_1  = value;}
00035    void setThresholdDac_2(ui32 value) {thresholdDac_2  = value;}
00036 
00037 
00038   private :
00039     void init();
00040     int HRmap(int channel);
00041 
00042   private :
00043     //----- data members --------------//
00044     ui32 thresholdDac_0;
00045     ui32 thresholdDac_1;
00046     ui32 thresholdDac_2;
00047 
00048 };
00049 
00050 #endif // _HARDROCK_CHIP_HH_

Generated on Mon Jan 7 13:15:20 2013 for MicromegasFramework by  doxygen 1.4.7