Fix for bug#78353. Fill the header tree after the mc header is set.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Feb 2011 18:00:07 +0000 (18:00 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Feb 2011 18:00:07 +0000 (18:00 +0000)
STEER/AliSimulation.cxx

index dbe039b..6306067 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)