]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixed writing macro in MC generator case
authorAndrei Gheata <Andrei.Gheata@cern.ch>
Thu, 5 Dec 2013 08:45:49 +0000 (09:45 +0100)
committerAndrei Gheata <Andrei.Gheata@cern.ch>
Thu, 5 Dec 2013 09:22:22 +0000 (10:22 +0100)
ANALYSIS/AliAnalysisAlien.cxx

index 682b5eb8596bd4fc9f20e73a5c227e4e04b0ea7d..226b6fdcf2f6104ae73b7854bf479e96c5f3d168 100644 (file)
@@ -4263,8 +4263,9 @@ void AliAnalysisAlien::WriteAnalysisMacro()
          if (fMCLoop) {
             out << "   mgr->SetCacheSize(0);" << endl;
             out << "   mgr->EventLoop(" << fNMCevents << ");" << endl;         
-         }
-         out << "   mgr->StartAnalysis(\"localfile\");" << endl;
+         } else {
+            out << "   mgr->StartAnalysis(\"localfile\");" << endl;
+         }   
       }   
       out << "   timer.Stop();" << endl;
       out << "   timer.Print();" << endl;