Small printf correction in the analysis macro generated by the alien plugin
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Mar 2009 09:46:03 +0000 (09:46 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Mar 2009 09:46:03 +0000 (09:46 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index dc802cf..3080069 100644 (file)
@@ -1194,9 +1194,9 @@ void AliAnalysisAlien::WriteAnalysisMacro()
          out << "   TString treename = type;" << endl;
          out << "   treename.ToLower();" << endl;
          out << "   treename += \"Tree\";" << endl;
-         out << "   printf(\"***************************************\");" << endl;
-         out << "   printf(\"    Getting chain of trees %s\\n\", treename);" << endl;
-         out << "   printf(\"***************************************\");" << endl;
+         out << "   printf(\"***************************************\\n\");" << endl;
+         out << "   printf(\"    Getting chain of trees %s\\n\", treename.Data());" << endl;
+         out << "   printf(\"***************************************\\n\");" << endl;
          out << "   TAlienCollection *coll = TAlienCollection::Open(xmlfile);" << endl;
          out << "   if (!coll) {" << endl;
          out << "      ::Error(\"CreateChain\", \"Cannot create an AliEn collection from %s\", xmlfile);" << endl;