]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpPCB.cxx
Adding HasMotifPositionID method (Laurent)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPCB.cxx
index d54f544a5e239d1b2dd738664181f746d50af082..ba4efc739ea2aa7dfa6785c797b304b5f4675c51 100644 (file)
@@ -634,6 +634,25 @@ AliMpPCB::GetSize() const
 #endif  
 }
 
+//_____________________________________________________________________________
+Bool_t 
+AliMpPCB::HasMotifPositionID(Int_t manuId) const
+{
+  /// Returns whether or not we have manuId
+
+#ifdef WITH_ROOT
+  TIter next(&fMotifPositions);
+  AliMpMotifPosition* pos;
+  while ( ( pos = static_cast<AliMpMotifPosition*>(next()) ) )
+  {
+    if ( pos->GetID() == manuId ) return kTRUE;
+  }
+  return kFALSE;
+#else
+  AliFatal("Not implemented");
+#endif
+}
+
 
 //_____________________________________________________________________________
 Int_t