]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correction needed for multi-event/run.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2005 13:45:32 +0000 (13:45 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2005 13:45:32 +0000 (13:45 +0000)
TFluka/source.cxx

index a9fb962a0e70df03da4b6a5ad3e8cc0b5e67c793..9d39f94af0141c073ae441ad8a0db532b4698335 100644 (file)
@@ -79,6 +79,7 @@ extern "C" {
     static Bool_t lastParticleWasPrimary = true;
 
     nomore = 0;
+
     
 //  Get the stack 
     TVirtualMCStack* cppstack = fluka->GetStack();
@@ -89,7 +90,7 @@ extern "C" {
 //  Get the next particle from the stack
     particle  = cppstack->PopNextTrack(itrack);
     fluka->SetTrackIsNew(kTRUE);
-
+    if (itrack == 0) lfirst = true;
 //  Is this a secondary not handled by Fluka, i.e. a particle added by user action ?
     lastParticleWasPrimary = particleIsPrimary;