#include <ChipSoftId.hh>
Inheritance diagram for ChipSoftId:
Public Member Functions | |
ChipSoftId () | |
ChipSoftId (const ChipSoftId &orig) | |
~ChipSoftId () | |
unsigned int | GetChipId () const |
unsigned int | GetBoardId () const |
void | SetValue (unsigned int chamberId, unsigned int difId, unsigned int boardId, unsigned int chipId) |
long | GetValue () const |
std::string | toString () const |
std::string | ToString () const |
Protected Attributes | |
unsigned int | chipId |
unsigned int | boardId |
Definition at line 24 of file ChipSoftId.hh.
ChipSoftId::ChipSoftId | ( | ) |
ChipSoftId::ChipSoftId | ( | const ChipSoftId & | orig | ) |
ChipSoftId::~ChipSoftId | ( | ) |
unsigned int ChipSoftId::GetChipId | ( | ) | const [inline] |
Definition at line 30 of file ChipSoftId.hh.
Referenced by ChannelSoftId::GetValue().
00030 { return chipId; } ;
unsigned int ChipSoftId::GetBoardId | ( | ) | const [inline] |
void ChipSoftId::SetValue | ( | unsigned int | chamberId, | |
unsigned int | difId, | |||
unsigned int | boardId, | |||
unsigned int | chipId | |||
) |
Definition at line 31 of file ChipSoftId.cpp.
Referenced by Chip::Chip(), Chip::operator=(), and ChannelSoftId::SetValue().
00032 { 00033 DifSoftId::SetValue(_chamberId,_difId); 00034 chipId = _chipId; 00035 boardId = _boardId; 00036 }
long ChipSoftId::GetValue | ( | ) | const |
Reimplemented in ChannelSoftId.
Definition at line 54 of file ChipSoftId.cpp.
00055 { 00056 return ( OFFSET_CHAMBER * GetChamberId() 00057 + OFFSET_DIF * GetDifId() 00058 + OFFSET_CHIP * chipId ) ; 00059 00060 }
string ChipSoftId::toString | ( | ) | const |
Reimplemented from DifSoftId.
Reimplemented in ChannelSoftId.
Definition at line 39 of file ChipSoftId.cpp.
Referenced by MicrorocSCReader::parseSC(), MicrorocSCReader::parseSCFromDb(), ChannelSoftId::toString(), and ToString().
00040 { 00041 string result; 00042 stringstream sboardId, schipId; 00043 00044 result = DifSoftId::toString(); 00045 sboardId<<boardId; 00046 result+="asu["+sboardId.str() ; 00047 schipId<<chipId; 00048 result+="]chip["+schipId.str() + "]"; 00049 00050 return result; 00051 00052 }
std::string ChipSoftId::ToString | ( | ) | const [inline] |
Reimplemented from DifSoftId.
Reimplemented in ChannelSoftId.
Definition at line 37 of file ChipSoftId.hh.
00037 { return toString(); };
unsigned int ChipSoftId::chipId [protected] |
Definition at line 37 of file ChipSoftId.hh.
Referenced by ChipSoftId(), GetChipId(), GetValue(), SetValue(), and toString().
unsigned int ChipSoftId::boardId [protected] |
Definition at line 40 of file ChipSoftId.hh.
Referenced by ChipSoftId(), GetBoardId(), SetValue(), and toString().