#include <ChannelSoftId.hh>
Inheritance diagram for ChannelSoftId:
Public Member Functions | |
ChannelSoftId () | |
ChannelSoftId (const ChannelSoftId &orig) | |
virtual | ~ChannelSoftId () |
unsigned int | GetRow () const |
unsigned int | GetCol () const |
unsigned int | GetChannelId () const |
void | SetValue (unsigned int chamberId, unsigned int difId, unsigned int boradId, unsigned int chipId, unsigned int channelId, unsigned int row, unsigned int col) |
std::string | toString () const |
std::string | ToString () const |
long | GetValue () const |
Private Attributes | |
unsigned int | channelId |
unsigned int | col |
unsigned int | row |
Definition at line 16 of file ChannelSoftId.hh.
ChannelSoftId::ChannelSoftId | ( | ) |
Definition at line 15 of file ChannelSoftId.cpp.
00015 : ChipSoftId(),channelId(0), row(0), col (0) 00016 { 00017 }
ChannelSoftId::ChannelSoftId | ( | const ChannelSoftId & | orig | ) |
ChannelSoftId::~ChannelSoftId | ( | ) | [virtual] |
unsigned int ChannelSoftId::GetRow | ( | ) | const [inline] |
unsigned int ChannelSoftId::GetCol | ( | ) | const [inline] |
unsigned int ChannelSoftId::GetChannelId | ( | ) | const [inline] |
void ChannelSoftId::SetValue | ( | unsigned int | chamberId, | |
unsigned int | difId, | |||
unsigned int | boradId, | |||
unsigned int | chipId, | |||
unsigned int | channelId, | |||
unsigned int | row, | |||
unsigned int | col | |||
) |
Definition at line 32 of file ChannelSoftId.cpp.
Referenced by Channel::Channel().
00033 { 00034 ChipSoftId::SetValue(_chamberId,_difId,_boardId,_chipId); 00035 channelId = _channelId; 00036 row = _row; 00037 col = _col; 00038 00039 }
string ChannelSoftId::toString | ( | ) | const |
Reimplemented from ChipSoftId.
Definition at line 43 of file ChannelSoftId.cpp.
Referenced by ToString().
00044 { 00045 00046 string result; 00047 stringstream sId,srow,scol;// (stringstream::in | stringstream::out); 00048 00049 result = ChipSoftId::toString(); 00050 sId<<channelId; 00051 result+="channel[" + sId.str(); 00052 srow<<row; 00053 result+="]row["+srow.str(); 00054 scol<<col; 00055 result+="]col["+scol.str()+"]"; 00056 00057 return result; 00058 00059 }
std::string ChannelSoftId::ToString | ( | ) | const [inline] |
Reimplemented from ChipSoftId.
Definition at line 26 of file ChannelSoftId.hh.
00026 { return toString(); } ;
long ChannelSoftId::GetValue | ( | ) | const |
Reimplemented from ChipSoftId.
Definition at line 62 of file ChannelSoftId.cpp.
00063 { 00064 return ( OFFSET_CHAMBER *NB_CHANNEL* GetChamberId() 00065 + OFFSET_DIF *NB_CHANNEL* GetDifId() 00066 + OFFSET_CHIP*NB_CHANNEL * GetChipId () 00067 + channelId ) ; 00068 00069 }
unsigned int ChannelSoftId::channelId [private] |
Definition at line 30 of file ChannelSoftId.hh.
Referenced by ChannelSoftId(), GetChannelId(), GetValue(), SetValue(), and toString().
unsigned int ChannelSoftId::col [private] |
Definition at line 31 of file ChannelSoftId.hh.
Referenced by ChannelSoftId(), GetCol(), SetValue(), and toString().
unsigned int ChannelSoftId::row [private] |
Definition at line 32 of file ChannelSoftId.hh.
Referenced by ChannelSoftId(), GetRow(), SetValue(), and toString().