Write header correctly.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Aug 2003 13:10:44 +0000 (13:10 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Aug 2003 13:10:44 +0000 (13:10 +0000)
FASTSIM/fastGen.C

index 9cd9640..417422d 100644 (file)
@@ -58,7 +58,9 @@ void fastGen(Int_t nev = 1, char* filename = "galice.root")
 //     
        stack->FinishEvent();
        header->SetStack(stack);
+       rl->TreeE()->Fill();
        rl->WriteKinematics("OVERWRITE");
+
     } // event loop
 //
 //                         Termination
@@ -67,8 +69,10 @@ void fastGen(Int_t nev = 1, char* filename = "galice.root")
 //  Stack
     stack->FinishRun();
 //  Write file
-    gener->Write();
     rl->WriteHeader("OVERWRITE");
+    gener->Write();
+    rl->Write();
+    
 }