MTChannelSoftId Class Reference

#include <MTChannelSoftId.hh>

Inheritance diagram for MTChannelSoftId:

Inheritance graph
[legend]
Collaboration diagram for MTChannelSoftId:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MTChannelSoftId ()
 MTChannelSoftId (const MTChannelSoftId &orig)
virtual ~MTChannelSoftId ()
unsigned int GetRowInChip () const
unsigned int GetColInChip () const
unsigned int GetChannelId () 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 chipSerialNum, 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

Detailed Description

Definition at line 18 of file MTChannelSoftId.hh.


Constructor & Destructor Documentation

MTChannelSoftId::MTChannelSoftId (  ) 

Definition at line 12 of file MTChannelSoftId.cpp.

00012                                  : MTChipSoftId(),channelId(0),  row(0), col (0)
00013 {
00014 }

MTChannelSoftId::MTChannelSoftId ( const MTChannelSoftId orig  ) 

Definition at line 16 of file MTChannelSoftId.cpp.

00017 :MTChipSoftId(orig)
00018 
00019 {
00020                 channelId = orig.channelId;
00021                 row = orig.row;
00022                 col = orig.col;
00023 }

MTChannelSoftId::~MTChannelSoftId (  )  [virtual]

Definition at line 25 of file MTChannelSoftId.cpp.

00026 {
00027 }


Member Function Documentation

unsigned int MTChannelSoftId::GetRowInChip ( void   )  const [inline]

Definition at line 23 of file MTChannelSoftId.hh.

Referenced by MTChannel::GetRowInChip().

00023 { return row; } ;

unsigned int MTChannelSoftId::GetColInChip ( void   )  const [inline]

Definition at line 24 of file MTChannelSoftId.hh.

Referenced by MTChannel::GetColInChip().

00024 { return col; } ;

unsigned int MTChannelSoftId::GetChannelId (  )  const [inline]

Definition at line 25 of file MTChannelSoftId.hh.

00025 { return channelId; } ;

void MTChannelSoftId::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  chipSerialNum,
unsigned int  channelId,
unsigned int  row,
unsigned int  col 
)

Definition at line 30 of file MTChannelSoftId.cpp.

Referenced by MTChannel::MTChannel().

00036 {
00037                 MTChipSoftId::SetValue(_chamberId,_difId,_boardId,_boardRow, _boardCol , _nbChipByBoardRow, _nbChipByBoardCol,  _chipId,_chipRow, _chipCol,_nbChannelByChipRow,  _nbChannelByChipCol, _chipSerialNum);
00038                 channelId = _channelId;
00039                 row = _row;
00040                 col = _col;
00041 
00042 }

string MTChannelSoftId::toString (  )  const

Reimplemented from MTChipSoftId.

Definition at line 46 of file MTChannelSoftId.cpp.

Referenced by BeamProfile::FillDeltaT(), BeamProfile::FillHitPerChannel(), and ToString().

00047 {
00048 
00049    string result;
00050 
00051    stringstream sId,srow,scol;// (stringstream::in | stringstream::out);
00052 
00053          result =  MTChipSoftId::toString();
00054          sId<<channelId;
00055          result+="channel[" + sId.str();
00056    srow<<row;
00057    result+="]row["+srow.str();
00058          scol<<col;
00059    result+="]col["+scol.str()+"]";
00060 
00061          return result;
00062 
00063 }

std::string MTChannelSoftId::ToString (  )  const [inline]

Reimplemented from MTChipSoftId.

Definition at line 33 of file MTChannelSoftId.hh.

Referenced by main().

00033 { return toString(); } ;

long MTChannelSoftId::GetValue (  )  const

Reimplemented from MTChipSoftId.

Definition at line 66 of file MTChannelSoftId.cpp.

Referenced by main().

00067  {
00068                  return  ( OFFSET_CHAMBER *NB_CHANNEL* GetChamberId()
00069                + OFFSET_DIF *NB_CHANNEL*  GetDifId()
00070                + OFFSET_CHIP*NB_CHANNEL * GetChipId ()
00071                +  channelId ) ;
00072 
00073  }


Member Data Documentation

unsigned int MTChannelSoftId::channelId [private]

Definition at line 38 of file MTChannelSoftId.hh.

Referenced by GetChannelId(), GetValue(), MTChannelSoftId(), SetValue(), and toString().

unsigned int MTChannelSoftId::col [private]

Definition at line 39 of file MTChannelSoftId.hh.

Referenced by GetColInChip(), MTChannelSoftId(), SetValue(), and toString().

unsigned int MTChannelSoftId::row [private]

Definition at line 40 of file MTChannelSoftId.hh.

Referenced by GetRowInChip(), MTChannelSoftId(), SetValue(), and toString().


The documentation for this class was generated from the following files:
Generated on Mon Jan 7 13:18:50 2013 for MicromegasFramework by  doxygen 1.4.7