MC-dependent part of AliRun extracted in AliMC (F.Carminati)
[u/mrichter/AliRoot.git] / RICH / AliRICHv0.cxx
index 73004e2..dc8e0b2 100644 (file)
@@ -19,6 +19,7 @@
 #include "AliRICHConst.h" 
 #include <AliRun.h>
 #include <TLorentzVector.h>
+#include "AliMC.h"
 
 ClassImp(AliRICHv0)
 
@@ -45,7 +46,7 @@ void AliRICHv0::StepManager()
   Info("","event=%i hunt=%i tid=%i pid=%i(%s) m=%f q=%3.1f",
                             gMC->CurrentEvent(),
                             fIshunt,
-                            gAlice->GetCurrentTrackNumber(),
+                            gAlice->GetMCApp()->GetCurrentTrackNumber(),
                             gMC->TrackPid(),
                             sParticle,
                             gMC->TrackMass(),