**************************************************************************/
// $Id$
-// $MpId: AliMpSlatSegmentation.cxx,v 1.7 2006/03/02 16:35:20 ivana Exp $
+// $MpId: AliMpSlatSegmentation.cxx,v 1.10 2006/03/17 16:42:33 ivana Exp $
// Caution !!
// Implementation note.
#include "AliMpMotif.h"
#include "AliMpMotifPosition.h"
#include "AliMpMotifType.h"
-#include "AliMpPCB.h"
#include "AliMpSlat.h"
#include "AliMpSlatPadIterator.h"
const char*
AliMpSlatSegmentation::GetName() const
{
+ // The name of this segmentation is "SlatSegmentation"+slatName
+
TString name("SlatSegmentation");
if ( fkSlat)
{
//_____________________________________________________________________________
Int_t
-AliMpSlatSegmentation::MaxPadIndexX()
+AliMpSlatSegmentation::MaxPadIndexX() const
{
//
// Returns the value of the largest pad index in x-direction.
//_____________________________________________________________________________
Int_t
-AliMpSlatSegmentation::MaxPadIndexY()
+AliMpSlatSegmentation::MaxPadIndexY() const
{
//
// Returns the value of the largest pad index in y-direction.
return fkSlat->GetMaxNofPadsY()-1;
}
+//_____________________________________________________________________________
+Int_t
+AliMpSlatSegmentation::NofPads() const
+{
+/// Return number of pads defined in the slat
+
+ return fkSlat->NofPads();
+}
+
//_____________________________________________________________________________
AliMpPad
AliMpSlatSegmentation::PadByLocation(const AliMpIntPair& location,