]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONGeometrySegmentation.cxx
- New virtual function in AliMUONVGeometryDESegmentation and in the daughters GetDire...
[u/mrichter/AliRoot.git] / MUON / AliMUONGeometrySegmentation.cxx
index a3210879a2b71fd8c53b77abfe3d82c179fd8411..e728618e878974d0c05c277cb798bcf6ab19ae60 100644 (file)
@@ -149,6 +149,17 @@ void AliMUONGeometrySegmentation::Add(Int_t detElemId,
   fDESegmentations->Add(detElemId, segmentation); 
 }  
 
+//______________________________________________________________________________
+AliMUONGeometryDirection 
+AliMUONGeometrySegmentation::GetDirection(Int_t detElemId) const
+{
+// Return direction with a constant pad size (Direction or coordinate where the resolution is the best)
+
+  if (!Notify(detElemId)) return kDirUndefined;
+
+  return fCurrentSegmentation->GetDirection();
+}
+
 //______________________________________________________________________________
 void AliMUONGeometrySegmentation::SetPadSize(Float_t p1, Float_t p2)
 {