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

Go to the documentation of this file.
00001 /* @version $Revision: 1742 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2012-05-29 16:34:39 +0200 (Tue, 29 May 2012) $ */
00002 
00003 #ifndef _MICROROC_CHIP_HH
00004 #define _MICROROC_CHIP_HH
00005 
00006 //////////////////////////////////////////////////////////////////////////
00007 // MICROMEGAS
00008 //
00009 //             Microroc chip for Dirac and Microroc boards
00010 //
00011 //////////////////////////////////////////////////////////////////////////
00012 
00013 #include "mTypes.h"
00014 #include "geometry/Chip.hh"
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //      CLASS MicrorocChip                                                  //
00018 //////////////////////////////////////////////////////////////////////////
00019 class MicrorocChip : public Chip {
00020   public :
00021     MicrorocChip(const Board& aBoard, const i32 aCol, const i32 aRow,  const i32 aId,const ui32 aSerialNumber);
00022     virtual ~MicrorocChip() { };
00023 
00024     //------ methods ------------------//
00025   public :
00026     const ui32 getXGap() const { return(0); };// 200 beetwen Pad in micrometer
00027     const ui32 getYGap() const { return(0); };// 200 beetwen Pad in micrometer 
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    ui16 getShaper_lg() const{ return shaper_lg;};
00038    ui16 getShaper_hg() const{ return shaper_hg;};
00039 
00040    void setShaper_lg( ui16 value)  { shaper_lg = value;};
00041    void setShaper_hg( ui16 value)  { shaper_hg = value;};
00042 
00043 
00044 
00045   private :
00046     void init();
00047     int HRmap(int channel);
00048 
00049   private :
00050     //----- data members --------------//
00051 //      ui16 serialNum;
00052 
00053 
00054     ui32 thresholdDac_0;
00055     ui32 thresholdDac_1;
00056     ui32 thresholdDac_2;
00057 
00058     ui16 shaper_lg;
00059     ui16 shaper_hg;
00060 
00061 };
00062 
00063 #endif // _MICROROC_CHIP_HH

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