Fix the pdf output (the first and last plots were missing) (Diego)
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Oct 2012 05:57:11 +0000 (05:57 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Oct 2012 05:57:11 +0000 (05:57 +0000)
PWGPP/MUON/lite/trigEffQA.C

index c1adf2f..6afc41e 100644 (file)
@@ -575,8 +575,8 @@ void trigEffQA(TString fileListName, TString outFilename = "", TString defaultSt
   outCanName.ReplaceAll(".root",".pdf");
   for ( Int_t ican=0; ican<outCanList.GetEntries(); ican++ ) {
     TString canName = outCanName;
-    if ( ican == 0 ) canName.Append("["); // open pdf file
-    else if ( ican == outCanList.GetEntries()-1 ) canName.Append("]"); // close pdf file
+    if ( ican == 0 ) canName.Append("("); // open pdf file
+    else if ( ican == outCanList.GetEntries()-1 ) canName.Append(")"); // close pdf file
     static_cast<TCanvas*>(outCanList.At(ican))->Print(canName.Data());
   }
   // There is a bug when creating a pdf