]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpSlatSegmentation.cxx
Coding conventions (Laurent)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpSlatSegmentation.cxx
index 677aea3501d26bda7f74771fc9c098c7efad1576..b8597bafbddb7118283da4f181f273723bb3d662 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.10 2006/03/17 16:42:33 ivana Exp $
 
 // Caution !!
 // Implementation note.
@@ -30,7 +30,6 @@
 #include "AliMpMotif.h"
 #include "AliMpMotifPosition.h"
 #include "AliMpMotifType.h"
-#include "AliMpPCB.h"
 #include "AliMpSlat.h"
 #include "AliMpSlatPadIterator.h"
 
@@ -128,6 +127,8 @@ AliMpSlatSegmentation::GetAllElectronicCardIDs(TArrayI& ecn) const
 const char*
 AliMpSlatSegmentation::GetName() const
 {
+  // The name of this segmentation is "SlatSegmentation"+slatName
+
   TString name("SlatSegmentation");
   if ( fkSlat) 
   {
@@ -151,7 +152,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.
@@ -162,7 +163,7 @@ AliMpSlatSegmentation::MaxPadIndexX()
 
 //_____________________________________________________________________________
 Int_t 
-AliMpSlatSegmentation::MaxPadIndexY()
+AliMpSlatSegmentation::MaxPadIndexY() const
 {
   //
   // Returns the value of the largest pad index in y-direction.
@@ -171,6 +172,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,