]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliSimulation.cxx
Coverity fix
[u/mrichter/AliRoot.git] / STEER / AliSimulation.cxx
index dbe039b82975b02039b76bdb02b5355f223b7bab..6306067d5c144133595faa9377af8e5f6c46d2f3 100644 (file)
@@ -1896,7 +1896,6 @@ Bool_t AliSimulation::ConvertRaw2SDigits(const char* rawDirectory, const char* e
        runLoader->SetEventNumber(nev);
         runLoader->GetHeader()->Reset(rawReader->GetRunNumber(), 
                                       nev, nev);
-       runLoader->TreeE()->Fill();
         runLoader->GetEvent(nev);
         AliInfo(Form("We are at event %d",nev));
        //
@@ -1931,6 +1930,7 @@ Bool_t AliSimulation::ConvertRaw2SDigits(const char* rawDirectory, const char* e
        }
 //
 //      Finish the event
+       runLoader->TreeE()->Fill();
         AliInfo(Form("Finished event %d",nev));
        nev++;
         if (N>0&&nev>=N)