ChannelSoftId Class Reference

#include <ChannelSoftId.hh>

Inheritance diagram for ChannelSoftId:

Inheritance graph
[legend]
Collaboration diagram for ChannelSoftId:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 16 of file ChannelSoftId.hh.


Constructor & Destructor Documentation

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  ) 

Definition at line 19 of file ChannelSoftId.cpp.

00020 {
00021                 channelId = orig.channelId;
00022                 row = orig.row;
00023                 col = orig.col;
00024                 std::cout << "CONSTRUCTEUR DE COPI  POUR ChannelSoftId" << std::endl;
00025 }

ChannelSoftId::~ChannelSoftId (  )  [virtual]

Definition at line 27 of file ChannelSoftId.cpp.

00028 {
00029 }


Member Function Documentation

unsigned int ChannelSoftId::GetRow (  )  const [inline]

Definition at line 21 of file ChannelSoftId.hh.

00021 { return row; } ;

unsigned int ChannelSoftId::GetCol (  )  const [inline]

Definition at line 22 of file ChannelSoftId.hh.

00022 { return col; } ;

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

Definition at line 23 of file ChannelSoftId.hh.

00023 { return channelId; } ;

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  }


Member Data Documentation

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().


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