![]() |
AliPhysics
2aaea23 (2aaea23)
|
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 | Cluster (Int_t icalo) |
void | ClusterCells (Int_t icalo) |
void | Cell () |
void | Correl (Int_t icalo) |
void | Isol (Int_t icalo) |
void | ShowerShape (Int_t icalo) |
void | InvMass (Int_t icalo, TString particle, TString fileName) |
void | MCParticle (Int_t icalo, TString particle) |
void | Track () |
void | Vertex () |
void | Centrality () |
void | PtHard () |
Pt Hard distributions. More... | |
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="pdf") |
Variables | |
TString | prod [] = {"LHC17l3b_fast_TM","LHC17l4b_fast_TM"} |
productions to be compared, directory name More... | |
TString | prodLeg [] = {"Geant3, b FAST","Geant4, b FAST"} |
const Int_t | nProd = 2 |
TDirectoryFile * | dir [nProd] |
total number of productions to compare More... | |
TList * | histArr [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... | |
TString | errType = "B" |
output plots format: eps, pdf, etc. More... | |
Bool_t | scaled = kFALSE |
Int_t | color [] ={kBlack,kRed,kBlue,kOrange+1,kYellow+1,kGreen+2,kCyan+1,kViolet,kMagenta+2,kGray} |
In case of pT hard binned productions where the scaling and cross section is already done, do not normalize by N events or get the Sumw2 of histogram. 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 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
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;
It is also possible to run comparisons done for pT hard binned productions. Since the scaling is usually already done, change the bool scaled to "true" to avoir overnormalization.
Definition in file DrawProductionComparison.C.
void Cell | ( | ) |
Plot basic calorimeter Cell QA histograms. 2 canvases with 2-4 pads
Definition at line 793 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
void Centrality | ( | ) |
Centrality To be updated
Definition at line 2299 of file DrawProductionComparison.C.
Referenced by AliAnalysisTaskCRCZDC::GetZDCSpectraCorrList(), ProcessTrigger(), and AliAnalysisTaskZDCEP::UserExec().
void Cluster | ( | 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 238 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
void ClusterCells | ( | Int_t | icalo | ) |
Plot basic shower shape
icalo | 0 EMCal, 1 DCal |
Definition at line 976 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
void Correl | ( | Int_t | icalo | ) |
cluster-track correlation
To be updated
icalo | 0 EMCal, 1 DCal |
Definition at line 1773 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
void DrawProductionComparison | ( | TString | listName = "Pi0IM_GammaTrackCorr_EMCAL" , |
TString | fileName = "AnalysisResults.root" , |
||
TString | fileFormat = "pdf" |
||
) |
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 126 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 2486 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 2548 of file DrawProductionComparison.C.
Referenced by Cell(), Centrality(), Cluster(), ClusterCells(), Correl(), Isol(), MCParticle(), PtHard(), ShowerShape(), Track(), and Vertex().
invariant mass plots. Before InvMassFit must run.
To be updated
icalo | 0 EMCal, 1 DCal |
particle | Pi0 or Eta |
Definition at line 2021 of file DrawProductionComparison.C.
Referenced by AliAODRecoDecayHF4Prong::CutRhoMass(), AliRDHFCutsB0toDStarPi::DeltaInvMassB0Kpipipi(), AliAnalysisTaskSEB0toDStarPi::DeltaInvMassB0Kpipipi(), AliRDHFCutsB0toDStarPi::DeltaInvMassDStarKpipi(), AliAnalysisTaskSEB0toDStarPi::DeltaInvMassDStarKpipi(), AliAnalysisTaskPSHFE::FillDPhiHistos(), AliAnalysisTaskPSHFE::FillPhotoElecHistos(), AliAODRecoDecayHF2Prong::InvMassD0(), AliAODRecoDecayHF4Prong::InvMassD0(), AliAODRecoDecayHF2Prong::InvMassD0bar(), AliAODRecoDecayHF4Prong::InvMassD0bar(), AliAODRecoDecayHF3Prong::InvMassDplus(), AliAODRecoCascadeHF::InvMassDplustoK0spi(), AliAODRecoDecayHF3Prong::InvMassDsKKpi(), AliAODRecoDecayHF3Prong::InvMassDspiKK(), AliAODRecoCascadeHF::InvMassDstoK0sK(), AliAODRecoDecayHF2Prong::InvMassJPSIee(), AliAODRecoDecayHF3Prong::InvMassLcpiKp(), AliAODRecoDecayHF3Prong::InvMassLcpKpi(), AliAODRecoCascadeHF::InvMassLctoK0sP(), AliAODRecoCascadeHF::InvMassLctoLambdaPi(), and AliAODRecoCascadeHF3Prong::InvMassPiXiPi().
void Isol | ( | Int_t | icalo | ) |
isolation cone
To be updated
icalo | 0 EMCal, 1 DCal |
Definition at line 1895 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
Plot basic calorimeter QA histograms depending on MC origin of cluster
icalo | 0 EMCal, 1 DCal |
particle | MC origin of cluster: Photon, PhotonPi0Decay, Pi0 (Merged), Electron, ... |
Definition at line 1174 of file DrawProductionComparison.C.
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 164 of file DrawProductionComparison.C.
Referenced by DrawProductionComparison().
void PtHard | ( | ) |
Pt Hard distributions.
Definition at line 1691 of file DrawProductionComparison.C.
void ShowerShape | ( | Int_t | icalo | ) |
Plot basic shower shape
icalo | 0 EMCal, 1 DCal |
Definition at line 1359 of file DrawProductionComparison.C.
Referenced by ProcessTrigger().
void Track | ( | ) |
Hybrid Tracks distributions To be updated
Definition at line 1494 of file DrawProductionComparison.C.
Referenced by AliAnalysisTaskEmcalQGTagging::Coronna(), AliAnalysisTaskEmcalHfeTagging::Coronna(), AliAnalysisTaskEmcalQGTagging::FillHistograms(), ProcessTrigger(), AliAnalysisTaskEmcalQGTagging::SelectTrigger(), AliAnalysisTaskEmcalHfeTagging::SelectTrigger(), AliAnalysisTaskSubJetFraction::SelectTriggerHadron(), AliAnalysisTaskRecoilJetYield::SelectTriggerHadron(), and Cumulants::SetTracks().
void Vertex | ( | ) |
x y z vertex distribution and ratios to different productions.
Definition at line 2387 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} |
In case of pT hard binned productions where the scaling and cross section is already done, do not normalize by N events or get the Sumw2 of histogram.
pre-defined colors list
Definition at line 115 of file DrawProductionComparison.C.
Referenced by Cell(), Centrality(), Cluster(), ClusterCells(), Correl(), InvMass(), Isol(), MCParticle(), PtHard(), ShowerShape(), Track(), and Vertex().
TDirectoryFile* dir[nProd] |
total number of productions to compare
Definition at line 104 of file DrawProductionComparison.C.
Referenced by GetFileAndList().
TString errType = "B" |
output plots format: eps, pdf, etc.
Definition at line 111 of file DrawProductionComparison.C.
TFile* file[nProd] |
TList with histograms for a given trigger.
Definition at line 106 of file DrawProductionComparison.C.
Referenced by GetFileAndList(), and GetHisto().
TString format = "eps" |
file names tag, basically the trigger and calorimeter combination
Definition at line 110 of file DrawProductionComparison.C.
TDirectory file where lists per trigger are stored in train ouput.
Definition at line 105 of file DrawProductionComparison.C.
TString histoTag = "" |
number of events container
Definition at line 109 of file DrawProductionComparison.C.
Input train file.
Definition at line 107 of file DrawProductionComparison.C.
Referenced by Cell(), Centrality(), Cluster(), ClusterCells(), GetFileAndList(), MCParticle(), ShowerShape(), Track(), and Vertex().
const Int_t nProd = 2 |
Definition at line 102 of file DrawProductionComparison.C.
Referenced by Cell(), Centrality(), Cluster(), ClusterCells(), Correl(), GetFileAndList(), InvMass(), Isol(), MCParticle(), PtHard(), ShowerShape(), Track(), and Vertex().
TString prod[] = {"LHC17l3b_fast_TM","LHC17l4b_fast_TM"} |
productions to be compared, directory name
productions name used in legends
Definition at line 99 of file DrawProductionComparison.C.
Referenced by AliMultiDimVector::GetGlobalAddressFromIndices(), AliMultiDimVector::GetIndicesFromGlobalAddress(), GetProdErr(), and PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::IsSupportedMCSample().
TString prodLeg[] = {"Geant3, b FAST","Geant4, b FAST"} |
Definition at line 100 of file DrawProductionComparison.C.
Bool_t scaled = kFALSE |
Definition at line 112 of file DrawProductionComparison.C.
Referenced by Cell(), Centrality(), Cluster(), ClusterCells(), Correl(), AliTrackletdNdetaPost::DrawDeltas(), AliTrackletdNdeta::DrawDeltas(), AliTrackletdNdeta::FindDelta(), Isol(), MCParticle(), ShowerShape(), Track(), and Vertex().