![]() |
AliPhysics
a8afd6c (a8afd6c)
|
Plot pT hard dependent histograms of analysis EMCal PWG-GA QA wagon. More...
#include "TString.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TFile.h"
#include "TCanvas.h"
#include "TPad.h"
#include "TStyle.h"
#include "TLine.h"
#include "TLegend.h"
#include "TMath.h"
#include "TGaxis.h"
Go to the source code of this file.
Functions | |
void | DrawPtHardBins (Int_t minE=1, Int_t maxE=70, const Int_t nBin=20, Int_t firstBin=1, Bool_t scaleHisto=kFALSE) |
Plot pT hard dependent histograms of analysis EMCal PWG-GA QA wagon.
Macro to plot few selected histograms to QA MC productions done with pT hard bins (pythia jet-jet)./ Do plots with the calculated scaling factor per pT hard bin and without the scaling. The plots are:
To execute:root -q -b -l DrawPtHardBins.C'(1,50,20,1,kFALSE)'
The input files Scaled.root and NotScaled.root are obtained executing the script:
This script: 1 downloads the analysis QA train output files per pT hard bin and run, 1 merges the files per run in each pT hard bin, 1 extracts the histograms of the EMCAL QA wagon in 2 separate files, in one of them it scales the histograms with the proper cross section 1 adds the different pT hard bins
Definition in file DrawPtHardBins.C.
void DrawPtHardBins | ( | Int_t | minE = 1 , |
Int_t | maxE = 70 , |
||
const Int_t | nBin = 20 , |
||
Int_t | firstBin = 1 , |
||
Bool_t | scaleHisto = kFALSE |
||
) |
Main method, produce the plots.
Input:
minE | minimum energy/pT on plots with E/pT spectra |
maxE | maximum energy/pT on plots with E/pT spectra |
nBin | total number of pT hard bins |
firstBin | first pT hard bin (sometimes it is 0) |
scaleHisto | bool, if true the do the scaling of the unscaled plots |
Definition at line 63 of file DrawPtHardBins.C.