Correctly the the doneBit.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Sep 2008 07:42:17 +0000 (07:42 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Sep 2008 07:42:17 +0000 (07:42 +0000)
EVGEN/AliGenExtFile.cxx

index 8256f65..ca73b72 100644 (file)
@@ -34,6 +34,7 @@
 #include "AliGenExtFile.h"
 #include "AliRunLoader.h"
 #include "AliHeader.h"
+#include "AliStack.h"
 #include "AliGenEventHeader.h"
 
 #include <TParticle.h>
@@ -157,7 +158,7 @@ void AliGenExtFile::Generate()
        }
        
        Int_t decayed    = jparticle->GetFirstDaughter();
-       Int_t doTracking = fTrackIt && (decayed < 0) && (TMath::Abs(idpart) > 10) && selected;
+       Int_t doTracking = fTrackIt && selected && !(jparticle->TestBit(kDoneBit));
        Int_t parent     = jparticle->GetFirstMother();
        
        PushTrack(doTracking, parent, idpart, p, origin, polar, 0, kPPrimary, nt);