Close stream when writing is over
authordstocco <diego.stocco@cern.ch>
Tue, 4 Nov 2014 19:27:28 +0000 (20:27 +0100)
committerhristov <Peter.Hristov@cern.ch>
Thu, 6 Nov 2014 10:15:31 +0000 (11:15 +0100)
PWG/muondep/AliMuonAccEffSubmitter.cxx

index 16f1569..3e0713f 100644 (file)
@@ -946,7 +946,9 @@ Int_t AliMuonAccEffSubmitter::LocalTest()
   out << "#!/bin/bash" << std::endl;
 //  root.exe -b -q simrun.C  --run <x> --chunk <y> --event <n>
   out << "root.exe -b -q simrun.C --run "<< runs[0] <<" --event " << fFixedNofEvents << std::endl;
+
+  out.close();
+
   gSystem->Exec("chmod +x simrun.sh");
 
   std::cout << "Cleaning up left-over files from previous simulation/reconstructions" << std::endl;