MTDifSoftId Class Reference

#include <MTDifSoftId.hh>

Inheritance diagram for MTDifSoftId:

Inheritance graph
[legend]
Collaboration diagram for MTDifSoftId:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MTDifSoftId ()
 MTDifSoftId (const MTDifSoftId &orig)
 ~MTDifSoftId ()
unsigned int GetChamberId () const
unsigned int GetDifId () const
std::string toString () const
std::string ToString () const
void SetValue (unsigned int _chamberId, unsigned int _difId)

Protected Attributes

unsigned int chamberId
unsigned int difId

Detailed Description

Definition at line 18 of file MTDifSoftId.hh.


Constructor & Destructor Documentation

MTDifSoftId::MTDifSoftId (  ) 

MTDifSoftId::MTDifSoftId ( const MTDifSoftId orig  ) 

Definition at line 18 of file MTDifSoftId.cpp.

00019 {
00020                 chamberId = orig.chamberId;
00021                 difId = orig.difId;
00022 }

MTDifSoftId::~MTDifSoftId (  ) 

Definition at line 25 of file MTDifSoftId.cpp.

00026 {
00027 
00028 }


Member Function Documentation

unsigned int MTDifSoftId::GetChamberId ( void   )  const [inline]

Definition at line 24 of file MTDifSoftId.hh.

Referenced by MTChannel::GetChamberId(), MTChipSoftId::GetValue(), and MTChannelSoftId::GetValue().

00024 { return chamberId; } ;

unsigned int MTDifSoftId::GetDifId ( void   )  const [inline]

Definition at line 25 of file MTDifSoftId.hh.

Referenced by MTChannel::GetDifId(), MTChipSoftId::GetValue(), MTChannelSoftId::GetValue(), and MTChip::Info().

00025 { return difId; };

string MTDifSoftId::toString (  )  const

Reimplemented in MTChannelSoftId, and MTChipSoftId.

Definition at line 36 of file MTDifSoftId.cpp.

Referenced by MTChipSoftId::toString(), and ToString().

00037 {
00038 
00039          string result;
00040    stringstream schamberId,sdifId, schipId,srow,scol;// (stringstream::in | stringstream::out);
00041 
00042    schamberId<<chamberId;
00043    result="chamber["+schamberId.str();
00044          sdifId<<difId;
00045    result+="]dif["+sdifId.str()+ "]";
00046 
00047          return result;
00048 
00049 }

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

Reimplemented in MTChannelSoftId, and MTChipSoftId.

Definition at line 27 of file MTDifSoftId.hh.

00027 { return toString(); };

void MTDifSoftId::SetValue ( unsigned int  _chamberId,
unsigned int  _difId 
)

Definition at line 30 of file MTDifSoftId.cpp.

Referenced by MTChipSoftId::SetValue().

00031  {
00032                  chamberId = _chamberId;
00033            difId     = _difId;
00034  }


Member Data Documentation

unsigned int MTDifSoftId::chamberId [protected]

Definition at line 34 of file MTDifSoftId.hh.

Referenced by GetChamberId(), MTChipSoftId::MTChipSoftId(), MTDifSoftId(), SetValue(), and toString().

unsigned int MTDifSoftId::difId [protected]

Definition at line 35 of file MTDifSoftId.hh.

Referenced by GetDifId(), MTChipSoftId::MTChipSoftId(), MTDifSoftId(), SetValue(), and toString().


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