From 948f3840746fb3af0fd69b443a75ac27ffaa0bca Mon Sep 17 00:00:00 2001 From: zconesa Date: Thu, 24 Jan 2013 20:31:51 +0000 Subject: [PATCH] New input file defined with three columns (run number, fill number, number of events), plus visual separation of the results per fill (Sandro Bjelogrlic) --- ANALYSIS/macros/PhysSelQA/PSQAV.C | 108 ++++++++++++++++-------------- 1 file changed, 57 insertions(+), 51 deletions(-) diff --git a/ANALYSIS/macros/PhysSelQA/PSQAV.C b/ANALYSIS/macros/PhysSelQA/PSQAV.C index 586dd3edb3d..a1b2bbe2142 100644 --- a/ANALYSIS/macros/PhysSelQA/PSQAV.C +++ b/ANALYSIS/macros/PhysSelQA/PSQAV.C @@ -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" + +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 + Bool_t saveOnSameCanvas= kTRUE; // if true, save v0 bkg on top of accepted histos + // + // configuration -- choose the input directory and file + // + // QAVobject1->ImportRunAndFillInfo("LHC12d_list.list"); + QAVobject1->ImportRunAndFillInfo("RunFillEvent_list.list"); + + QAVobject1->SetROOTInput("~/Analysis/PWGPP_PSQA/QAoutputPerPeriod/pA/13b_ESDs_21Jan/LHC13b_21Jan_PSQA.root"); + //QAVobject1->InitializeSelectedPlots("~/Analysis/PWGPP_PSQA/QAoutputPerPeriod/pA/13b_ESDs_21Jan/selectedPlots.list"); + QAVobject1->InitializeSelectedPlots("selectedPlots.list"); + //QAVobject1->InitializeSelectedPlots("plots.list"); + QAVobject1->SetOutDirectory("~/Analysis/PWGPP_PSQA/QAoutputPerPeriod/pA/13b_ESDs_21Jan/plots"); + QAVobject1->SetOutPDFName("Plots13b_ESDs.pdf"); + QAVobject1->SetOutEPSName("Plots13b_ESDs.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->SetPlotOnSameCanvas(saveOnSameCanvas); + 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; +}; -- 2.43.0