New input file defined with three columns (run number, fill number, number of events...
authorzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Jan 2013 20:31:51 +0000 (20:31 +0000)
committerzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Jan 2013 20:31:51 +0000 (20:31 +0000)
ANALYSIS/macros/PhysSelQA/PSQAV.C

index 586dd3e..a1b2bbe 100644 (file)
@@ -1,51 +1,57 @@
-#include "AliPSQAVisualization.h"
-
-void PSQAV(){
-  //
-  // make nice plots for presentations of the Phys.Sel. QA
-  //
-  AliPSQAVisualization * QAVobject1 = new AliPSQAVisualization;
-  //
-  Bool_t useAutoScale    = kTRUE;
-  Bool_t savePDFs        = kTRUE;
-  Bool_t drawSelected    = kTRUE;  // draw all plots on the screen
-  Bool_t drawOverPlot    = kTRUE;  // if true, draw to canvas to see
-  Bool_t saveOverPlotPdf = kTRUE;  // if true, write to pdf file
-  Bool_t saveOverPlotEps = kTRUE;  // if true, write to eps file
-  //
-  // configuration -- choose the input directory and file
-  //
-  QAVobject1->SetROOTInput("../QAoutputPerPeriod/12d_Pass1/LHC12d_PSQA.root");
-  QAVobject1->InitializeSelectedPlots("../QAoutputPerPeriod/12d_Pass1/selectedPlots.list");
-       //QAVobject1->InitializeSelectedPlots("plots.list");
-  QAVobject1->SetOutDirectory("../QAoutputPerPeriod/12d_Pass1/plots");
-  QAVobject1->SetOutPDFName("PlotsLHC12d_pass.pdf");
-  QAVobject1->SetOutEPSName("PlotsLHC12d_pass.eps");
-  QAVobject1->SetOverPlotTitle("");
-  //
-  // settings
-  //
-  QAVobject1->SetSavePDFs(savePDFs);
-  QAVobject1->SetDrawSelected(drawSelected);
-  QAVobject1->SetDrawOverPlot(drawOverPlot);
-  QAVobject1->SetSaveOverPlotPDF(saveOverPlotPdf);
-  QAVobject1->SetSaveOverPlotEPS(saveOverPlotEps); // if true, write to eps file
-  QAVobject1->SetUseColorArray(kTRUE);
-  //
-  QAVobject1->InitializeColorArray("colorArray.list"); // Set the color enums for the overplot
-    /// Use Auto Scale? See README.
-  QAVobject1->SetScaleAuto(useAutoScale);
-  if (QAVobject1->GetScaleAuto()) { 
-    QAVobject1->SetScaleAutoDivMin(1.1);
-    QAVobject1->SetScaleAutoMultMax(1.1);
-  } else {
-    QAVobject1->SetScaleManMin(0.0);
-    QAVobject1->SetScaleManMax(1.1);
-  }
-  //
-       cout << "Here we are?" << endl;
-       
-  QAVobject1->PostProcessQA();
-
- cout << "Done?" << endl;
-};
+#include "AliPSQAVisualization.h"\r
+\r
+void PSQAV(){\r
+  //\r
+  // make nice plots for presentations of the Phys.Sel. QA\r
+  //\r
+  AliPSQAVisualization * QAVobject1 = new AliPSQAVisualization;\r
+  //\r
+  Bool_t useAutoScale    = kTRUE;\r
+  Bool_t savePDFs        = kTRUE;\r
+  Bool_t drawSelected    = kTRUE;  // draw all plots on the screen\r
+  Bool_t drawOverPlot    = kTRUE;  // if true, draw to canvas to see\r
+  Bool_t saveOverPlotPdf = kTRUE;  // if true, write to pdf file\r
+  Bool_t saveOverPlotEps = kTRUE;  // if true, write to eps file\r
+  Bool_t saveOnSameCanvas= kTRUE;  // if true, save v0 bkg on top of accepted histos\r
+  //\r
+  // configuration -- choose the input directory and file\r
+  //\r
+  // QAVobject1->ImportRunAndFillInfo("LHC12d_list.list");\r
+  QAVobject1->ImportRunAndFillInfo("RunFillEvent_list.list");\r
+    \r
+  QAVobject1->SetROOTInput("~/Analysis/PWGPP_PSQA/QAoutputPerPeriod/pA/13b_ESDs_21Jan/LHC13b_21Jan_PSQA.root");\r
+  //QAVobject1->InitializeSelectedPlots("~/Analysis/PWGPP_PSQA/QAoutputPerPeriod/pA/13b_ESDs_21Jan/selectedPlots.list");\r
+  QAVobject1->InitializeSelectedPlots("selectedPlots.list");\r
+  //QAVobject1->InitializeSelectedPlots("plots.list");\r
+  QAVobject1->SetOutDirectory("~/Analysis/PWGPP_PSQA/QAoutputPerPeriod/pA/13b_ESDs_21Jan/plots");\r
+  QAVobject1->SetOutPDFName("Plots13b_ESDs.pdf");\r
+  QAVobject1->SetOutEPSName("Plots13b_ESDs.eps");\r
+  QAVobject1->SetOverPlotTitle("");\r
+  //\r
+  // settings\r
+  //\r
+  QAVobject1->SetSavePDFs(savePDFs);\r
+  QAVobject1->SetDrawSelected(drawSelected);\r
+  QAVobject1->SetDrawOverPlot(drawOverPlot);\r
+  QAVobject1->SetSaveOverPlotPDF(saveOverPlotPdf);\r
+  QAVobject1->SetSaveOverPlotEPS(saveOverPlotEps); // if true, write to eps file\r
+  QAVobject1->SetPlotOnSameCanvas(saveOnSameCanvas);\r
+  QAVobject1->SetUseColorArray(kTRUE);\r
+  //\r
+  QAVobject1->InitializeColorArray("colorArray.list"); // Set the color enums for the overplot\r
+  /// Use Auto Scale? See README.\r
+  QAVobject1->SetScaleAuto(useAutoScale);\r
+  if (QAVobject1->GetScaleAuto()) { \r
+    QAVobject1->SetScaleAutoDivMin(1.1);\r
+    QAVobject1->SetScaleAutoMultMax(1.1);\r
+  } else {\r
+    QAVobject1->SetScaleManMin(0.0);\r
+    QAVobject1->SetScaleManMax(1.1);\r
+  }\r
+  //\r
+  cout << "Here we are?" << endl;\r
+       \r
+  QAVobject1->PostProcessQA();\r
+  \r
+  cout << "Done?" << endl;\r
+};\r