in PreTrackingAction() added call to AliRun::BeginPrimary()
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Jun 2001 09:18:56 +0000 (09:18 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Jun 2001 09:18:56 +0000 (09:18 +0000)
AliGeant4/AliTrackingAction.cxx

index ac2b16be99da1708841eacc0c803567c854dd6d7..5de4c236f7feda84a4eceac9343792a6142983dd 100644 (file)
 #include <G4TrackingManager.hh>
 #include <G4SteppingManager.hh>
 
-/*
-#include <TTree.h>
-#include <TParticle.h>
-#include <TClonesArray.h>
-*/
-
 // static data members
 AliTrackingAction* AliTrackingAction::fgInstance = 0;
 
@@ -139,6 +133,9 @@ void AliTrackingAction::PreTrackingAction(const G4Track* aTrack)
     // finish previous primary track
     FinishPrimaryTrack();
     fPrimaryTrackID = aTrack->GetTrackID();
+    
+    // begin this primary track
+    gAlice->BeginPrimary();
   }
   else { 
     // save secondary particles info