]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpSlatSegmentation.cxx
Updated comments for Doxygen - corrected warnings
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpSlatSegmentation.cxx
index 59a60a1d10c736cabf70b086d902af0364c9c46f..a0d87a809ad6a0edf21d74a996c8627876f17037 100644 (file)
@@ -14,7 +14,7 @@
 **************************************************************************/
 
 // $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() 
@@ -58,6 +59,15 @@ fkSlat(slat)
   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()
 {
@@ -68,6 +78,20 @@ 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
@@ -105,6 +129,8 @@ AliMpSlatSegmentation::GetAllElectronicCardIDs(TArrayI& ecn) const
 const char*
 AliMpSlatSegmentation::GetName() const
 {
+  // The name of this segmentation is "SlatSegmentation"+slatName
+
   TString name("SlatSegmentation");
   if ( fkSlat) 
   {
@@ -128,7 +154,7 @@ AliMpSlatSegmentation::HasPad(const AliMpIntPair& indices) const
 
 //_____________________________________________________________________________
 Int_t 
-AliMpSlatSegmentation::MaxPadIndexX()
+AliMpSlatSegmentation::MaxPadIndexX() const
 {
   //
   // Returns the value of the largest pad index in x-direction.
@@ -139,7 +165,7 @@ AliMpSlatSegmentation::MaxPadIndexX()
 
 //_____________________________________________________________________________
 Int_t 
-AliMpSlatSegmentation::MaxPadIndexY()
+AliMpSlatSegmentation::MaxPadIndexY() const
 {
   //
   // Returns the value of the largest pad index in y-direction.
@@ -148,6 +174,15 @@ AliMpSlatSegmentation::MaxPadIndexY()
   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,