DifSoftId Class Reference

#include <DifSoftId.hh>

Inheritance diagram for DifSoftId:

Inheritance graph
[legend]
Collaboration diagram for DifSoftId:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DifSoftId ()
 DifSoftId (const DifSoftId &orig)
 ~DifSoftId ()
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 16 of file DifSoftId.hh.


Constructor & Destructor Documentation

DifSoftId::DifSoftId (  ) 

Definition at line 8 of file DifSoftId.cpp.

00008                     :chamberId(0),difId(0)
00009 {
00010 
00011 }

DifSoftId::DifSoftId ( const DifSoftId orig  ) 

Definition at line 14 of file DifSoftId.cpp.

00015 {
00016                 chamberId = orig.chamberId;
00017                 difId = orig.difId;
00018 }

DifSoftId::~DifSoftId (  ) 

Definition at line 21 of file DifSoftId.cpp.

00022 {
00023 
00024 }


Member Function Documentation

unsigned int DifSoftId::GetChamberId (  )  const [inline]

Definition at line 22 of file DifSoftId.hh.

Referenced by ChipSoftId::GetValue(), and ChannelSoftId::GetValue().

00022 { return chamberId; } ;

unsigned int DifSoftId::GetDifId (  )  const [inline]

Definition at line 23 of file DifSoftId.hh.

Referenced by ChipSoftId::GetValue(), and ChannelSoftId::GetValue().

00023 { return difId; };

string DifSoftId::toString (  )  const

Reimplemented in ChannelSoftId, and ChipSoftId.

Definition at line 32 of file DifSoftId.cpp.

Referenced by BeamProfile::FillHitPerChipDist(), ChipSoftId::toString(), and ToString().

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

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

Reimplemented in ChannelSoftId, and ChipSoftId.

Definition at line 25 of file DifSoftId.hh.

00025 { return toString(); };

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

Definition at line 26 of file DifSoftId.cpp.

Referenced by ChipSoftId::SetValue().

00027  {
00028                  chamberId = _chamberId;
00029            difId     = _difId;
00030  }


Member Data Documentation

unsigned int DifSoftId::chamberId [protected]

Definition at line 32 of file DifSoftId.hh.

Referenced by ChipSoftId::ChipSoftId(), DifSoftId(), GetChamberId(), SetValue(), and toString().

unsigned int DifSoftId::difId [protected]

Definition at line 33 of file DifSoftId.hh.

Referenced by ChipSoftId::ChipSoftId(), DifSoftId(), GetDifId(), SetValue(), and toString().


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