/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/include/root/MTChipSoftId.hh

Go to the documentation of this file.
00001 /* @version $Revision: 1872 $ * @modifiedby $Author: jacquem $ * @lastmodified $Date: 2012-08-29 10:49:08 +0200 (Wed, 29 Aug 2012) $ */
00002 /* 
00003  * File:   ChipSoftId.hh
00004  * Author: jacquem
00005  *
00006  * Created on May 8, 2010, 7:46 PM
00007  */
00008 
00009 #ifndef _MTCHIPSOFTID_HH
00010 #define _MTCHIPSOFTID_HH
00011 
00012 
00013 #include "TObject.h"
00014 
00015 #define OFFSET_CHAMBER 100000 
00016 //#define NB_CHAMBER     100  // chamber id on 2 digit
00017 
00018 #define OFFSET_DIF     1000 
00019 //#define NB_DIF         100  // diff id on 2 digit
00020 
00021 //#define NB_CHIP        1000  // chip id on 3 digit
00022 #define OFFSET_CHIP    1
00023 
00024 #include "root/MTDifSoftId.hh"
00025 
00026 class MTChipSoftId : public MTDifSoftId{
00027 public:
00028     MTChipSoftId();
00029     MTChipSoftId(const MTChipSoftId& orig);
00030     ~MTChipSoftId();
00031 
00032                 unsigned int GetChipId()const { return chipId; } ;
00033                 unsigned int GetChipSerialNumber()const { return chipSerialNumber; } ;
00034                 unsigned int GetBoardId()const { return boardId; } ;
00035                 void SetValue(unsigned int chamberId,unsigned int difId, unsigned int boardId, unsigned int boardRow,unsigned int  boardCol,unsigned int nbChipByBoardRow,  unsigned int nbChipByBoardCol,   unsigned int chipId, unsigned int chipRow,unsigned int  chipCol,unsigned int nbChannelByChipRow , unsigned int nbChannelByChipCol, unsigned int chipSerialNumber);
00036                 long GetValue() const;
00037 
00038 
00039     unsigned int GetChipRow() const { return chipRow;} ;
00040     unsigned int GetChipCol() const { return chipCol;} ;
00041     unsigned int GetBoardRow() const { return boardRow;} ;
00042     unsigned int GetBoardCol() const { return boardCol;} ;
00043 
00044     unsigned int GetNbChipByBoardCol()   const { return nbChipByBoardCol;} ;
00045     unsigned int GetNbChipByBoardRow()   const { return nbChipByBoardRow;} ;
00046     unsigned int GetNbChannelByChipCol() const { return nbChannelByChipCol;} ;
00047     unsigned int GetNbChannelByChipRow() const { return nbChannelByChipRow;} ;
00048 
00049 
00050                 std::string toString( ) const;
00051                 std::string ToString( ) const { return toString(); };
00052 protected:
00053                 unsigned int chipId;
00054                 unsigned int chipSerialNumber;
00055                 unsigned int boardId;
00056                 unsigned int chipRow;
00057                 unsigned int chipCol;
00058                 unsigned int boardRow;
00059                 unsigned int boardCol;
00060 
00061 
00062                 unsigned int nbChipByBoardCol;
00063                 unsigned int nbChipByBoardRow;
00064                 unsigned int nbChannelByChipCol;
00065                 unsigned int nbChannelByChipRow;
00066 
00067 ClassDef(MTChipSoftId, 34)  //MTChip structure
00068 };
00069 
00070 
00071 #endif  /* _CHIPSOFTID_HH */
00072 

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