#include <MTChipSoftId.hh>
Inheritance diagram for MTChipSoftId:
Public Member Functions | |
MTChipSoftId () | |
MTChipSoftId (const MTChipSoftId &orig) | |
~MTChipSoftId () | |
unsigned int | GetChipId () const |
unsigned int | GetChipSerialNumber () const |
unsigned int | GetBoardId () const |
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) |
long | GetValue () const |
unsigned int | GetChipRow () const |
unsigned int | GetChipCol () const |
unsigned int | GetBoardRow () const |
unsigned int | GetBoardCol () const |
unsigned int | GetNbChipByBoardCol () const |
unsigned int | GetNbChipByBoardRow () const |
unsigned int | GetNbChannelByChipCol () const |
unsigned int | GetNbChannelByChipRow () const |
std::string | toString () const |
std::string | ToString () const |
Protected Attributes | |
unsigned int | chipId |
unsigned int | chipSerialNumber |
unsigned int | boardId |
unsigned int | chipRow |
unsigned int | chipCol |
unsigned int | boardRow |
unsigned int | boardCol |
unsigned int | nbChipByBoardCol |
unsigned int | nbChipByBoardRow |
unsigned int | nbChannelByChipCol |
unsigned int | nbChannelByChipRow |
Definition at line 26 of file MTChipSoftId.hh.
MTChipSoftId::MTChipSoftId | ( | ) |
Definition at line 27 of file MTChipSoftId.cpp.
00027 :MTDifSoftId(), chipId (0), boardId(0), chipSerialNumber(0) , chipRow(0) ,chipCol(0), boardCol(0), boardRow(0), nbChipByBoardCol(0), nbChipByBoardRow(0),nbChannelByChipCol(0), nbChannelByChipRow(0) 00028 { 00029 }
MTChipSoftId::MTChipSoftId | ( | const MTChipSoftId & | orig | ) |
Definition at line 32 of file MTChipSoftId.cpp.
00033 { 00034 chamberId = orig.chamberId; 00035 difId = orig.difId; 00036 chipId = orig.chipId; 00037 boardId= orig.boardId; 00038 chipSerialNumber = orig.chipSerialNumber; 00039 chipRow = orig.chipRow; 00040 chipCol = orig.chipCol; 00041 boardCol = orig.boardCol; 00042 boardRow = orig.boardRow; 00043 nbChipByBoardCol = orig.nbChipByBoardCol; 00044 nbChipByBoardRow = orig.nbChipByBoardRow; 00045 nbChannelByChipCol = orig.nbChannelByChipCol; 00046 nbChannelByChipRow = orig.nbChannelByChipRow; 00047 00048 }
MTChipSoftId::~MTChipSoftId | ( | ) |
unsigned int MTChipSoftId::GetChipId | ( | void | ) | const [inline] |
Definition at line 32 of file MTChipSoftId.hh.
Referenced by MTChannel::GetChipId(), and MTChannelSoftId::GetValue().
00032 { return chipId; } ;
unsigned int MTChipSoftId::GetChipSerialNumber | ( | ) | const [inline] |
unsigned int MTChipSoftId::GetBoardId | ( | void | ) | const [inline] |
Definition at line 34 of file MTChipSoftId.hh.
Referenced by MTEvent::AddChannel(), MTChannel::GetBoardId(), and main().
00034 { return boardId; } ;
void MTChipSoftId::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 | |||
) |
Definition at line 55 of file MTChipSoftId.cpp.
Referenced by MTChip::operator=(), and MTChannelSoftId::SetValue().
00056 { 00057 MTDifSoftId::SetValue(_chamberId,_difId); 00058 chipId = _chipId; 00059 boardId = _boardId; 00060 chipSerialNumber = _chipSerialNumber; 00061 chipRow = _chipRow; 00062 chipCol = _chipCol; 00063 boardRow = _boardRow; 00064 boardCol = _boardCol; 00065 nbChipByBoardCol = _nbChipByBoardCol; 00066 nbChipByBoardRow =_nbChipByBoardRow; 00067 nbChannelByChipCol = _nbChannelByChipCol; 00068 nbChannelByChipRow = _nbChannelByChipRow; 00069 00070 00071 }
long MTChipSoftId::GetValue | ( | ) | const |
Reimplemented in MTChannelSoftId.
Definition at line 106 of file MTChipSoftId.cpp.
00107 { 00108 return ( OFFSET_CHAMBER * GetChamberId() 00109 + OFFSET_DIF * GetDifId() 00110 + OFFSET_CHIP * chipId ) ; 00111 }
unsigned int MTChipSoftId::GetChipRow | ( | ) | const [inline] |
unsigned int MTChipSoftId::GetChipCol | ( | ) | const [inline] |
unsigned int MTChipSoftId::GetBoardRow | ( | ) | const [inline] |
unsigned int MTChipSoftId::GetBoardCol | ( | ) | const [inline] |
unsigned int MTChipSoftId::GetNbChipByBoardCol | ( | ) | const [inline] |
unsigned int MTChipSoftId::GetNbChipByBoardRow | ( | ) | const [inline] |
unsigned int MTChipSoftId::GetNbChannelByChipCol | ( | ) | const [inline] |
unsigned int MTChipSoftId::GetNbChannelByChipRow | ( | ) | const [inline] |
string MTChipSoftId::toString | ( | ) | const |
Reimplemented from MTDifSoftId.
Reimplemented in MTChannelSoftId.
Definition at line 74 of file MTChipSoftId.cpp.
Referenced by BeamProfile::FillDeltaT(), BeamProfile::FillHitPerChannel(), BeamProfile::FillHotChip(), MTChannelSoftId::toString(), and ToString().
00075 { 00076 string result; 00077 stringstream sboardId, schipId, sSerialNum, sChipRow, sChipCol, sBoardRow,sBoardCol; 00078 00079 result = MTDifSoftId::toString(); 00080 00081 sboardId<<boardId; 00082 result+="asu["+sboardId.str() ; 00083 00084 sBoardRow <<boardRow; 00085 result+="]board row ["+sBoardRow.str() + "]"; 00086 00087 sBoardCol <<boardCol; 00088 result+="]board Col ["+sBoardCol.str() + "]"; 00089 00090 schipId<<chipId; 00091 result+="]chip["+schipId.str() + "]"; 00092 00093 sSerialNum<<chipSerialNumber; 00094 result+="]serial Num["+sSerialNum.str() + "]"; 00095 00096 sChipRow <<chipRow; 00097 result+="]chip row ["+sChipRow.str() + "]"; 00098 00099 sChipCol <<chipCol; 00100 result+="]chip Col ["+sChipCol.str() + "]"; 00101 00102 return result; 00103 00104 }
std::string MTChipSoftId::ToString | ( | ) | const [inline] |
Reimplemented from MTDifSoftId.
Reimplemented in MTChannelSoftId.
Definition at line 51 of file MTChipSoftId.hh.
00051 { return toString(); };
unsigned int MTChipSoftId::chipId [protected] |
Definition at line 51 of file MTChipSoftId.hh.
Referenced by GetChipId(), GetValue(), MTChipSoftId(), SetValue(), and toString().
unsigned int MTChipSoftId::chipSerialNumber [protected] |
Definition at line 54 of file MTChipSoftId.hh.
Referenced by GetChipSerialNumber(), MTChipSoftId(), SetValue(), and toString().
unsigned int MTChipSoftId::boardId [protected] |
Definition at line 55 of file MTChipSoftId.hh.
Referenced by GetBoardId(), MTChipSoftId(), SetValue(), and toString().
unsigned int MTChipSoftId::chipRow [protected] |
Definition at line 56 of file MTChipSoftId.hh.
Referenced by GetChipRow(), MTChipSoftId(), SetValue(), and toString().
unsigned int MTChipSoftId::chipCol [protected] |
Definition at line 57 of file MTChipSoftId.hh.
Referenced by GetChipCol(), MTChipSoftId(), SetValue(), and toString().
unsigned int MTChipSoftId::boardRow [protected] |
Definition at line 58 of file MTChipSoftId.hh.
Referenced by GetBoardRow(), MTChipSoftId(), SetValue(), and toString().
unsigned int MTChipSoftId::boardCol [protected] |
Definition at line 59 of file MTChipSoftId.hh.
Referenced by GetBoardCol(), MTChipSoftId(), SetValue(), and toString().
unsigned int MTChipSoftId::nbChipByBoardCol [protected] |
Definition at line 62 of file MTChipSoftId.hh.
Referenced by GetNbChipByBoardCol(), MTChipSoftId(), and SetValue().
unsigned int MTChipSoftId::nbChipByBoardRow [protected] |
Definition at line 63 of file MTChipSoftId.hh.
Referenced by GetNbChipByBoardRow(), MTChipSoftId(), and SetValue().
unsigned int MTChipSoftId::nbChannelByChipCol [protected] |
Definition at line 64 of file MTChipSoftId.hh.
Referenced by GetNbChannelByChipCol(), MTChipSoftId(), and SetValue().
unsigned int MTChipSoftId::nbChannelByChipRow [protected] |
Definition at line 65 of file MTChipSoftId.hh.
Referenced by GetNbChannelByChipRow(), MTChipSoftId(), and SetValue().