MTChipSoftId Class Reference

#include <MTChipSoftId.hh>

Inheritance diagram for MTChipSoftId:

Inheritance graph
[legend]
Collaboration diagram for MTChipSoftId:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MTChipSoftId ()
 MTChipSoftId (const MTChipSoftId &orig)
 ~MTChipSoftId ()
unsigned int GetChipId () const
unsigned int GetChipSerialNumber () const
unsigned int GetBoardId () 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 chipSerialNumber)
long GetValue () const
unsigned int GetChipRow () const
unsigned int GetChipCol () const
unsigned int GetBoardRow () const
unsigned int GetBoardCol () const
unsigned int GetNbChipByBoardCol () const
unsigned int GetNbChipByBoardRow () const
unsigned int GetNbChannelByChipCol () const
unsigned int GetNbChannelByChipRow () const
std::string toString () const
std::string ToString () const

Protected Attributes

unsigned int chipId
unsigned int chipSerialNumber
unsigned int boardId
unsigned int chipRow
unsigned int chipCol
unsigned int boardRow
unsigned int boardCol
unsigned int nbChipByBoardCol
unsigned int nbChipByBoardRow
unsigned int nbChannelByChipCol
unsigned int nbChannelByChipRow

Detailed Description

Definition at line 26 of file MTChipSoftId.hh.


Constructor & Destructor Documentation

MTChipSoftId::MTChipSoftId (  ) 

Definition at line 27 of file MTChipSoftId.cpp.

MTChipSoftId::MTChipSoftId ( const MTChipSoftId orig  ) 

Definition at line 32 of file MTChipSoftId.cpp.

00033 {
00034                 chamberId = orig.chamberId;
00035                 difId = orig.difId;
00036                 chipId = orig.chipId;
00037                 boardId= orig.boardId;
00038     chipSerialNumber = orig.chipSerialNumber;
00039     chipRow = orig.chipRow;
00040     chipCol = orig.chipCol;
00041     boardCol = orig.boardCol;
00042     boardRow = orig.boardRow;
00043     nbChipByBoardCol = orig.nbChipByBoardCol;
00044     nbChipByBoardRow = orig.nbChipByBoardRow;
00045     nbChannelByChipCol = orig.nbChannelByChipCol;
00046     nbChannelByChipRow = orig.nbChannelByChipRow;
00047 
00048 }

MTChipSoftId::~MTChipSoftId (  ) 

Definition at line 50 of file MTChipSoftId.cpp.

00051 {
00052 
00053 }


Member Function Documentation

unsigned int MTChipSoftId::GetChipId ( void   )  const [inline]

Definition at line 32 of file MTChipSoftId.hh.

Referenced by MTChannel::GetChipId(), and MTChannelSoftId::GetValue().

00032 { return chipId; } ;

unsigned int MTChipSoftId::GetChipSerialNumber (  )  const [inline]

Definition at line 33 of file MTChipSoftId.hh.

00033 { return chipSerialNumber; } ;

unsigned int MTChipSoftId::GetBoardId ( void   )  const [inline]

Definition at line 34 of file MTChipSoftId.hh.

Referenced by MTEvent::AddChannel(), MTChannel::GetBoardId(), and main().

00034 { return boardId; } ;

void MTChipSoftId::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  chipSerialNumber 
)

Definition at line 55 of file MTChipSoftId.cpp.

Referenced by MTChip::operator=(), and MTChannelSoftId::SetValue().

00056 {
00057                 MTDifSoftId::SetValue(_chamberId,_difId);
00058                 chipId = _chipId;
00059                 boardId = _boardId;
00060     chipSerialNumber = _chipSerialNumber;
00061     chipRow = _chipRow;
00062     chipCol = _chipCol;
00063     boardRow = _boardRow;
00064     boardCol = _boardCol;
00065     nbChipByBoardCol = _nbChipByBoardCol;
00066     nbChipByBoardRow =_nbChipByBoardRow;
00067     nbChannelByChipCol = _nbChannelByChipCol;
00068     nbChannelByChipRow = _nbChannelByChipRow;
00069 
00070     
00071 }

long MTChipSoftId::GetValue (  )  const

Reimplemented in MTChannelSoftId.

Definition at line 106 of file MTChipSoftId.cpp.

00107  {
00108                  return  ( OFFSET_CHAMBER * GetChamberId()
00109                + OFFSET_DIF *  GetDifId()
00110                + OFFSET_CHIP *  chipId ) ;
00111 }

unsigned int MTChipSoftId::GetChipRow (  )  const [inline]

Definition at line 39 of file MTChipSoftId.hh.

00039 { return chipRow;} ;

unsigned int MTChipSoftId::GetChipCol (  )  const [inline]

Definition at line 40 of file MTChipSoftId.hh.

00040 { return chipCol;} ;

unsigned int MTChipSoftId::GetBoardRow (  )  const [inline]

Definition at line 41 of file MTChipSoftId.hh.

00041 { return boardRow;} ;

unsigned int MTChipSoftId::GetBoardCol (  )  const [inline]

Definition at line 42 of file MTChipSoftId.hh.

00042 { return boardCol;} ;

unsigned int MTChipSoftId::GetNbChipByBoardCol (  )  const [inline]

Definition at line 44 of file MTChipSoftId.hh.

00044 { return nbChipByBoardCol;} ;

unsigned int MTChipSoftId::GetNbChipByBoardRow (  )  const [inline]

Definition at line 45 of file MTChipSoftId.hh.

00045 { return nbChipByBoardRow;} ;

unsigned int MTChipSoftId::GetNbChannelByChipCol (  )  const [inline]

Definition at line 46 of file MTChipSoftId.hh.

00046 { return nbChannelByChipCol;} ;

unsigned int MTChipSoftId::GetNbChannelByChipRow (  )  const [inline]

Definition at line 47 of file MTChipSoftId.hh.

00047 { return nbChannelByChipRow;} ;

string MTChipSoftId::toString (  )  const

Reimplemented from MTDifSoftId.

Reimplemented in MTChannelSoftId.

Definition at line 74 of file MTChipSoftId.cpp.

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

00075 {
00076          string result;
00077    stringstream sboardId, schipId, sSerialNum, sChipRow, sChipCol, sBoardRow,sBoardCol; 
00078 
00079          result =  MTDifSoftId::toString();
00080 
00081          sboardId<<boardId;
00082    result+="asu["+sboardId.str() ;
00083 
00084          sBoardRow <<boardRow;
00085    result+="]board row ["+sBoardRow.str() + "]";
00086 
00087          sBoardCol <<boardCol;
00088    result+="]board Col ["+sBoardCol.str() + "]";
00089 
00090          schipId<<chipId;
00091    result+="]chip["+schipId.str() + "]";
00092 
00093          sSerialNum<<chipSerialNumber;
00094    result+="]serial Num["+sSerialNum.str() + "]";
00095 
00096          sChipRow <<chipRow;
00097    result+="]chip row ["+sChipRow.str() + "]";
00098 
00099          sChipCol <<chipCol;
00100    result+="]chip Col ["+sChipCol.str() + "]";
00101 
00102          return result;
00103 
00104 }

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

Reimplemented from MTDifSoftId.

Reimplemented in MTChannelSoftId.

Definition at line 51 of file MTChipSoftId.hh.

00051 { return toString(); };


Member Data Documentation

unsigned int MTChipSoftId::chipId [protected]

Definition at line 51 of file MTChipSoftId.hh.

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

unsigned int MTChipSoftId::chipSerialNumber [protected]

Definition at line 54 of file MTChipSoftId.hh.

Referenced by GetChipSerialNumber(), MTChipSoftId(), SetValue(), and toString().

unsigned int MTChipSoftId::boardId [protected]

Definition at line 55 of file MTChipSoftId.hh.

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

unsigned int MTChipSoftId::chipRow [protected]

Definition at line 56 of file MTChipSoftId.hh.

Referenced by GetChipRow(), MTChipSoftId(), SetValue(), and toString().

unsigned int MTChipSoftId::chipCol [protected]

Definition at line 57 of file MTChipSoftId.hh.

Referenced by GetChipCol(), MTChipSoftId(), SetValue(), and toString().

unsigned int MTChipSoftId::boardRow [protected]

Definition at line 58 of file MTChipSoftId.hh.

Referenced by GetBoardRow(), MTChipSoftId(), SetValue(), and toString().

unsigned int MTChipSoftId::boardCol [protected]

Definition at line 59 of file MTChipSoftId.hh.

Referenced by GetBoardCol(), MTChipSoftId(), SetValue(), and toString().

unsigned int MTChipSoftId::nbChipByBoardCol [protected]

Definition at line 62 of file MTChipSoftId.hh.

Referenced by GetNbChipByBoardCol(), MTChipSoftId(), and SetValue().

unsigned int MTChipSoftId::nbChipByBoardRow [protected]

Definition at line 63 of file MTChipSoftId.hh.

Referenced by GetNbChipByBoardRow(), MTChipSoftId(), and SetValue().

unsigned int MTChipSoftId::nbChannelByChipCol [protected]

Definition at line 64 of file MTChipSoftId.hh.

Referenced by GetNbChannelByChipCol(), MTChipSoftId(), and SetValue().

unsigned int MTChipSoftId::nbChannelByChipRow [protected]

Definition at line 65 of file MTChipSoftId.hh.

Referenced by GetNbChannelByChipRow(), MTChipSoftId(), and SetValue().


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