00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _MTCHIPSOFTID_HH
00010 #define _MTCHIPSOFTID_HH
00011
00012
00013 #include "TObject.h"
00014
00015 #define OFFSET_CHAMBER 100000
00016
00017
00018 #define OFFSET_DIF 1000
00019
00020
00021
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)
00068 };
00069
00070
00071 #endif
00072