]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpVSegmentation.cxx
- Adding new methods to AliMpVSegmentation which can speed up things here
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpVSegmentation.cxx
index f064896efe58042b4c4ed195448c39aa0740c77d..24fecd72754cd87bcbf30c287456b41ba50196db 100644 (file)
@@ -253,3 +253,32 @@ AliMpPadPair AliMpVSegmentation::PadsRight(const AliMpPad& pad) const
   return FindPads(position1, position2);
 }
 
+//_____________________________________________________________________________
+Bool_t 
+AliMpVSegmentation::HasPadByIndices(const AliMpIntPair& indices) const
+{
+  /// Default implementation. Must be overwritten if can be made more
+  /// efficient in the child class
+  
+  return (PadByIndices(indices,kFALSE) != AliMpPad::Invalid());
+}
+
+//_____________________________________________________________________________
+Bool_t 
+AliMpVSegmentation::HasPadByLocation(const AliMpIntPair& location) const
+{
+  /// Default implementation. Must be overwritten if can be made more
+  /// efficient in the child class
+  
+  return (PadByLocation(location,kFALSE) != AliMpPad::Invalid());
+}
+
+//_____________________________________________________________________________
+Bool_t 
+AliMpVSegmentation::HasMotifPosition(Int_t manuId) const
+{
+  /// Default implementation to know if we hold a given manu
+  return ( MotifPosition(manuId) != 0x0 );
+}
+
+