**************************************************************************/
// $Id$
-// $MpId: AliMpSlatSegmentation.cxx,v 1.7 2006/03/02 16:35:20 ivana Exp $
+// $MpId: AliMpSlatSegmentation.cxx,v 1.12 2006/05/24 13:58:50 ivana Exp $
// Caution !!
// Implementation note.
#include "AliMpMotif.h"
#include "AliMpMotifPosition.h"
#include "AliMpMotifType.h"
-#include "AliMpPCB.h"
#include "AliMpSlat.h"
#include "AliMpSlatPadIterator.h"
+/// \cond CLASSIMP
ClassImp(AliMpSlatSegmentation)
+/// \endcond
//_____________________________________________________________________________
AliMpSlatSegmentation::AliMpSlatSegmentation()
AliDebug(1,Form("this=%p Normal ctor slat=%p",this,slat));
}
+//______________________________________________________________________________
+AliMpSlatSegmentation::AliMpSlatSegmentation(const AliMpSlatSegmentation& right)
+ : AliMpVSegmentation(right)
+{
+/// Protected copy constructor (not implemented)
+
+ AliFatal("Copy constructor not provided.");
+}
+
//_____________________________________________________________________________
AliMpSlatSegmentation::~AliMpSlatSegmentation()
{
AliDebug(1,Form("this=%p",this));
}
+//______________________________________________________________________________
+AliMpSlatSegmentation&
+AliMpSlatSegmentation::operator=(const AliMpSlatSegmentation& right)
+{
+/// Protected assignement operator (not implemented)
+
+ // check assignement to self
+ if (this == &right) return *this;
+
+ AliFatal("Assignement operator not provided.");
+
+ return *this;
+}
+
//_____________________________________________________________________________
AliMpVPadIterator*
AliMpSlatSegmentation::CreateIterator(const AliMpArea& area) const
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,