![]() |
AliPhysics
6b290e4 (6b290e4)
|
Plot N productions comparison analysis of QA histograms from EMCal PWG-GA wagon. More...
#include <TFile.h>
#include <TDirectoryFile.h>
#include <TList.h>
#include <TString.h>
#include <TROOT.h>
#include <TStyle.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TCanvas.h>
#include <TPad.h>
#include <TLegend.h>
#include <TObject.h>
#include <TAxis.h>
#include <TGaxis.h>
#include <TLine.h>
#include <TF1.h>
#include <TMath.h>
Go to the source code of this file.
Functions | |
void | ProcessTrigger (TString trigName="default", TString fileName="AnalysisResults.root", TString listName="Pi0IM_GammaTrackCorr_EMCAL") |
void | CaloQA (Int_t icalo) |
void | CorrelQA (Int_t icalo) |
void | TrackQA () |
void | VertexQA () |
void | CentralityQA () |
TObject * | GetHisto (TString histoName, Int_t iprod) |
Bool_t | GetFileAndList (TString fileName, TString listName, TString trigName) |
void | DrawProductionComparison (TString listName="Pi0IM_GammaTrackCorr_EMCAL", TString fileName="AnalysisResults.root", TString fileFormat="eps") |
Variables | |
TString | prod [] = {"DCAoffPIDoff","DCAonPIDoff","DCAoffPIDon","DCAonPIDon"} |
productions to be compared, directory name More... | |
TString | prodLeg [] = {"DCA off - PID off","DCA on - PID off","DCA off - PID on","DCA on - PID on"} |
productions name used in legends More... | |
const Int_t | nProd = 4 |
TDirectoryFile * | dir [nProd] |
total number of productions to compare More... | |
TList * | list [nProd] |
TDirectory file where lists per trigger are stored in train ouput. More... | |
TFile * | file [nProd] |
TList with histograms for a given trigger. More... | |
Float_t | nEvents [nProd] |
Input train file. More... | |
TString | histoTag = "" |
number of events container More... | |
TString | format = "eps" |
file names tag, basically the trigger and calorimeter combination More... | |
Int_t | color [] ={kBlack,kRed,kBlue,kOrange+1,kYellow+1,kGreen+2,kCyan+1,kViolet,kMagenta+2,kGray} |
output plots format: eps, pdf, etc. More... | |
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 or cuts on the same data Based on the plots provided by DrawAnaCaloTrackQA.C.
*** To be completed with more cases ***
To execute: root -q -b -l DrawProductionComparison.C'("Pi0IM_GammaTrackCorr_EMCAL","AnalysisResults.root")'
The trigger name might change depending on the wagon / data type In simulations only the "default" case is available On data, there can be different triggers, depending on the period
Definition in file DrawProductionComparison.C.
void CaloQA | ( | Int_t | icalo | ) |
Plot basic calorimeter QA histograms. 2 canvases with 2-4 pads
To be updated
icalo | 0 EMCal, 1 DCal |
Definition at line 201 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
void CentralityQA | ( | ) |
Centrality To be updated
Definition at line 1013 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
void CorrelQA | ( | Int_t | icalo | ) |
cluster-track correlation
To be updated
icalo | 0 EMCal, 1 DCal |
Definition at line 908 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
void DrawProductionComparison | ( | TString | listName = "Pi0IM_GammaTrackCorr_EMCAL" , |
TString | fileName = "AnalysisResults.root" , |
||
TString | fileFormat = "eps" |
||
) |
Main method, produce the plots with the comparisons
listName | Name of list with histograms in file (same for all productions) |
fileName | File name (same for all productions) |
fileFormat | define the type of figures: eps, pdf, etc. |
Definition at line 112 of file DrawProductionComparison.C.
Access the file and list with histograms and number of analyzed events per each production.
fileName | File name (same for all productions) |
listName | Name of list with histograms in file |
trigName | trigger case name |
Definition at line 1199 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
Check if the list is available, if not get the histo directly from file
histoName | histogram name |
iprod | production index |
Definition at line 1259 of file DrawProductionComparison.C.
Referenced by CaloQA(), CentralityQA(), CorrelQA(), TrackQA(), and VertexQA().
void ProcessTrigger | ( | TString | trigName = "default" , |
TString | fileName = "AnalysisResults.root" , |
||
TString | listName = "Pi0IM_GammaTrackCorr_EMCAL" |
||
) |
The input files must be placed in different directories, each one defined in the string array "prod"m for ex.: TString prod[] = {"AOD142","AOD115","ESD"}; and provide a name to be used in the legeds TString prodLeg[] = {"AOD 142","AOD 115","ESD"}; Both have to be modified inside the macro.
The number of productions has to be specified const Int_t nProd = 3;
Produce the plots per trigger, options are:
Input:
trigName | trigger case name |
fileName | File name (same for all productions) |
listName | Name of list with histograms in file |
Definition at line 148 of file DrawProductionComparison.C.
Referenced by DrawProductionComparison().
void TrackQA | ( | ) |
Hybrid Tracks distributions To be updated
Definition at line 722 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
void VertexQA | ( | ) |
x y z vertex distribution and ratios to different productions.
Definition at line 1098 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
Int_t color[] ={kBlack,kRed,kBlue,kOrange+1,kYellow+1,kGreen+2,kCyan+1,kViolet,kMagenta+2,kGray} |
output plots format: eps, pdf, etc.
pre-defined colors list
Definition at line 101 of file DrawProductionComparison.C.
Referenced by CaloQA(), CentralityQA(), CorrelQA(), TrackQA(), and VertexQA().
TDirectoryFile* dir[nProd] |
total number of productions to compare
Definition at line 92 of file DrawProductionComparison.C.
Referenced by GetFileAndList().
TFile* file[nProd] |
TList with histograms for a given trigger.
Definition at line 94 of file DrawProductionComparison.C.
Referenced by GetFileAndList(), and GetHisto().
TString format = "eps" |
file names tag, basically the trigger and calorimeter combination
Definition at line 98 of file DrawProductionComparison.C.
TString histoTag = "" |
number of events container
Definition at line 97 of file DrawProductionComparison.C.
TDirectory file where lists per trigger are stored in train ouput.
Definition at line 93 of file DrawProductionComparison.C.
Input train file.
Definition at line 95 of file DrawProductionComparison.C.
Referenced by CaloQA(), CentralityQA(), AliAnalysisTaskSEOmegac2eleOmegafromAODtracks::DoEventMixingWithPools(), AliAnalysisTaskSELc2pK0sfromAODtracks::DoEventMixingWithPools(), AliAnalysisTaskCombinHF::DoMixingWithCuts(), AliAnalysisTaskCombinHF::DoMixingWithPools(), AliAnalysisTaskJetV2::DoSimpleSimulation(), AliAnalysisTaskJetV3::DoSimpleSimulation(), FastMonitor::DrawObject(), AliAnalysisTaskPSHFE::FillMEDPhiHistos(), AliAnalysisTaskCombinHF::FinishTaskOutput(), GetFileAndList(), MakeEvaluateTriggers(), AliTrackletdNdetaTask::HistoSet::MasterFinalize(), AliTrackletdNdetaTask::CentBin::MasterFinalize(), AliTrackletAODdNdeta::Histos::MasterFinalize(), AliTrackletdNdetaTask::MasterFinalize(), AliTrackletAODdNdeta::CentBin::MasterFinalize(), AliTrackletAODdNdeta::MasterFinalize(), AliAnalysisTaskEmcalEmbeddingHelper::PythiaInfoFromCrossSectionFile(), ReadAODVertexingHF(), ReadAODVertexingHFsa(), AliAnalysisTaskPhiFlow::ReconstructionWithEventMixing(), LocalRailway::Run(), AAFPluginRailway::Run(), LiteRailway::Run(), TrainSetup::Run(), GridRailway::Run(), ProofRailway::Run(), AliForwardFlowTaskQC::Terminate(), TrackQA(), trendingCluster(), and VertexQA().
const Int_t nProd = 4 |
Definition at line 90 of file DrawProductionComparison.C.
Referenced by CaloQA(), CentralityQA(), CorrelQA(), GetFileAndList(), TrackQA(), and VertexQA().
TString prod[] = {"DCAoffPIDoff","DCAonPIDoff","DCAoffPIDon","DCAonPIDon"} |
productions to be compared, directory name
Definition at line 87 of file DrawProductionComparison.C.
Referenced by AliMultiDimVector::GetGlobalAddressFromIndices(), AliMultiDimVector::GetIndicesFromGlobalAddress(), and GetProdErr().
TString prodLeg[] = {"DCA off - PID off","DCA on - PID off","DCA off - PID on","DCA on - PID on"} |
productions name used in legends
Definition at line 89 of file DrawProductionComparison.C.