]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding HasMotifPositionID method (Laurent)
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Oct 2007 13:02:05 +0000 (13:02 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Oct 2007 13:02:05 +0000 (13:02 +0000)
MUON/mapping/AliMpPCB.cxx
MUON/mapping/AliMpPCB.h

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
index 06b6b7e763ac748c600b215ee7cccbe97e2e2064..83612747f703de3e88021069fa4c4859c0c6aba0 100644 (file)
 #  include <vector>
 #endif
 
+#ifndef ALI_MP_VPAD_ITERATOR_H
+#  include "AliMpVPadIterator.h"
+#endif
+
 #ifndef ALI_MP_AREA_H
 #  include "AliMpArea.h"
 #endif
@@ -95,6 +99,8 @@ class AliMpPCB : public TObject
   
   void Print(Option_t* option = "") const;
 
+  Bool_t HasMotifPositionID(Int_t manuId) const;
+  
   Double_t ActiveDX() const;
   Double_t ActiveDY() const;