ChipSoftId Class Reference

#include <ChipSoftId.hh>

Inheritance diagram for ChipSoftId:

Inheritance graph
[legend]
Collaboration diagram for ChipSoftId:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ChipSoftId ()
 ChipSoftId (const ChipSoftId &orig)
 ~ChipSoftId ()
unsigned int GetChipId () const
unsigned int GetBoardId () const
void SetValue (unsigned int chamberId, unsigned int difId, unsigned int boardId, unsigned int chipId)
long GetValue () const
std::string toString () const
std::string ToString () const

Protected Attributes

unsigned int chipId
unsigned int boardId

Detailed Description

Definition at line 24 of file ChipSoftId.hh.


Constructor & Destructor Documentation

ChipSoftId::ChipSoftId (  ) 

Definition at line 14 of file ChipSoftId.cpp.

00014                       :DifSoftId(), chipId (0), boardId(0)
00015 {
00016 }

ChipSoftId::ChipSoftId ( const ChipSoftId orig  ) 

Definition at line 18 of file ChipSoftId.cpp.

00019 {
00020                 chamberId = orig.chamberId;
00021                 difId = orig.difId;
00022                 chipId = orig.chipId;
00023                 boardId= orig.boardId;
00024 }

ChipSoftId::~ChipSoftId (  ) 

Definition at line 26 of file ChipSoftId.cpp.

00027 {
00028 
00029 }


Member Function Documentation

unsigned int ChipSoftId::GetChipId (  )  const [inline]

Definition at line 30 of file ChipSoftId.hh.

Referenced by ChannelSoftId::GetValue().

00030 { return chipId; } ;

unsigned int ChipSoftId::GetBoardId (  )  const [inline]

Definition at line 31 of file ChipSoftId.hh.

00031 { return boardId; } ;

void ChipSoftId::SetValue ( unsigned int  chamberId,
unsigned int  difId,
unsigned int  boardId,
unsigned int  chipId 
)

Definition at line 31 of file ChipSoftId.cpp.

Referenced by Chip::Chip(), Chip::operator=(), and ChannelSoftId::SetValue().

00032 {
00033                 DifSoftId::SetValue(_chamberId,_difId);
00034                 chipId = _chipId;
00035                 boardId = _boardId;
00036 }

long ChipSoftId::GetValue (  )  const

Reimplemented in ChannelSoftId.

Definition at line 54 of file ChipSoftId.cpp.

00055  {
00056                  return  ( OFFSET_CHAMBER * GetChamberId()
00057                + OFFSET_DIF *  GetDifId()
00058                + OFFSET_CHIP *  chipId ) ;
00059 
00060  }

string ChipSoftId::toString (  )  const

Reimplemented from DifSoftId.

Reimplemented in ChannelSoftId.

Definition at line 39 of file ChipSoftId.cpp.

Referenced by MicrorocSCReader::parseSC(), MicrorocSCReader::parseSCFromDb(), ChannelSoftId::toString(), and ToString().

00040 {
00041          string result;
00042    stringstream sboardId, schipId; 
00043 
00044          result =  DifSoftId::toString();
00045          sboardId<<boardId;
00046    result+="asu["+sboardId.str() ;
00047          schipId<<chipId;
00048    result+="]chip["+schipId.str() + "]";
00049 
00050          return result;
00051 
00052 }

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

Reimplemented from DifSoftId.

Reimplemented in ChannelSoftId.

Definition at line 37 of file ChipSoftId.hh.

00037 { return toString(); };


Member Data Documentation

unsigned int ChipSoftId::chipId [protected]

Definition at line 37 of file ChipSoftId.hh.

Referenced by ChipSoftId(), GetChipId(), GetValue(), SetValue(), and toString().

unsigned int ChipSoftId::boardId [protected]

Definition at line 40 of file ChipSoftId.hh.

Referenced by ChipSoftId(), GetBoardId(), SetValue(), and toString().


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