Adding VZERO track references (Brigitte)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Feb 2009 10:14:47 +0000 (10:14 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Feb 2009 10:14:47 +0000 (10:14 +0000)
STEER/AliTrackReference.h
VZERO/AliVZEROv7.cxx

index 4362bba..09da99c 100644 (file)
@@ -26,7 +26,8 @@ public:
                    kMUON  = 5,
                    kHMPID = 6,
                    kT0    = 7,
-                   kFMD   = 12
+                   kFMD   = 12,
+                   kVZERO = 14
     };
   AliTrackReference();
   AliTrackReference(Int_t label, Int_t id = -999);
index b188600..19c95be 100644 (file)
@@ -58,6 +58,7 @@
 #include "AliVZEROhit.h"
 #include "AliVZEROv7.h"
 #include "AliLog.h"
+#include "AliTrackReference.h"
  
 ClassImp(AliVZEROv7)
 
@@ -2008,6 +2009,9 @@ void AliVZEROv7::StepManager()
       nPhotonsInStep  = 0;
       numStep         = 0;  
     }
+    if( gMC->IsTrackEntering() || gMC->IsTrackExiting() ) {
+      AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber(), AliTrackReference::kVZERO);
+    }
   }
 }