]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONResponseTrigger.cxx
Updated list of MUON libraries
[u/mrichter/AliRoot.git] / MUON / AliMUONResponseTrigger.cxx
index f48217a47530c27a758e665cf22916372b7fdbcc..72af7cb0456314a54eb9aec8d53c4a1e8cfcb2ec 100644 (file)
@@ -32,6 +32,7 @@
 #include "AliMUONConstants.h"
 
 #include "AliMpPad.h"
+#include "AliMpCathodType.h"
 #include "AliMpPlaneType.h"
 #include "AliMpSegmentation.h"
 #include "AliMpVSegmentation.h"
@@ -108,10 +109,11 @@ AliMUONResponseTrigger::DisIntegrate(const AliMUONHit& hit, TList& digits)
     twentyNano=1;
   }
   
-  for ( Int_t cath = 0; cath < 2; ++cath )
+  for ( Int_t cath = AliMp::kCath0; cath <= AliMp::kCath1; ++cath )
   {
     const AliMpVSegmentation* seg 
-      = AliMpSegmentation::Instance()->GetMpSegmentation(detElemId,cath);
+      = AliMpSegmentation::Instance()
+        ->GetMpSegmentation(detElemId,AliMp::GetCathodType(cath));
     
     AliMpPad pad = seg->PadByPosition(TVector2(x,y),kFALSE);
     Int_t ix = pad.GetIndices().GetFirst();