AliPhysics  6bc8652 (6bc8652)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DrawProductionComparison.C File Reference

Plot N productions comparison analysis of QA histograms from EMCal PWG-GA wagon. More...

Go to the source code of this file.

Functions

void DrawProductionComparison (TString listName="Pi0IM_GammaTrackCorr_EMCAL_default", TString fileName="AnalysisResults.root")
 
void GetFileAndList (TString fileName, TString listName)
 
TObjectGetHisto (TString histoName, Int_t iprod)
 

Variables

const Int_t nProd = 3
 
TString prod [] = {"AOD142","AOD115","ESD"}
 total number of productions More...
 
TListlist [nProd]
 productions directory name More...
 
TFile * file [nProd]
 
TString histoTag = ""
 
Int_t color [] ={kBlack,kRed,kBlue,kOrange+1,kYellow+1,kGreen+2,kCyan+1,kViolet,kMagenta+2,kGray}
 
Float_t nEvents [nProd] = 0
 

Detailed Description

Plot N productions comparison analysis of QA histograms from EMCal PWG-GA wagon.

Macro to plot comparison of different distributions (spectra, correlations) produced in QA trains but different data Based on the plots provided by DrawAnaCaloTrackQA.C

To execute: root -q -b -l DrawProductionComparison.C'("Pi0IM_GammaTrackCorr_EMCAL_default","AnalysisResults.root")' The input files must be placed in different directoried, each one defined in the string array "prod" TString prod[] = {"AOD142","AOD115","ESD"}; that has to be modified inside the macro. The number of productions has to be specified const Int_t nProd = 3; There is no limitation to the amount of productions

Author
: Gustavo Conesa Balbastre Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, (LPSC-CNRS)

Definition in file DrawProductionComparison.C.

Function Documentation

void DrawProductionComparison ( TString  listName = "Pi0IM_GammaTrackCorr_EMCAL_default",
TString  fileName = "AnalysisResults.root" 
)

Main method, produce the plots with the comparisons

Parameters
listNameName of list with histograms in file (same for all productions)
fileNameFile name (same for all productions)

Definition at line 44 of file DrawProductionComparison.C.

void GetFileAndList ( TString  fileName,
TString  listName 
)

Access the file and list with histograms and number of analyzed events per each production.

Definition at line 746 of file DrawProductionComparison.C.

Referenced by DrawProductionComparison().

TObject* GetHisto ( TString  histoName,
Int_t  iprod 
)

Check if the list is available, if not get the histo directly from file

Definition at line 772 of file DrawProductionComparison.C.

Referenced by DrawProductionComparison().

Variable Documentation

Int_t color[] ={kBlack,kRed,kBlue,kOrange+1,kYellow+1,kGreen+2,kCyan+1,kViolet,kMagenta+2,kGray}

Definition at line 34 of file DrawProductionComparison.C.

Referenced by DrawProductionComparison().

TFile* file[nProd]

Definition at line 30 of file DrawProductionComparison.C.

Referenced by GetFileAndList(), and GetHisto().

TString histoTag = ""

Definition at line 32 of file DrawProductionComparison.C.

TList* list[nProd]

productions directory name

Definition at line 28 of file DrawProductionComparison.C.

const Int_t nProd = 3

Definition at line 24 of file DrawProductionComparison.C.

Referenced by DrawProductionComparison(), and GetFileAndList().

TString prod[] = {"AOD142","AOD115","ESD"}