AliPhysics  abafffd (abafffd)
EstimateSingleTrackPIDsyst.C File Reference
#include <Riostream.h>
#include <TFile.h>
#include <TDirectoryFile.h>
#include <TCanvas.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TF1.h>
#include <TStyle.h>
#include <TString.h>
#include <TList.h>
#include <TTree.h>
#include <TMath.h>
#include <TFractionFitter.h>
#include <TObjArray.h>
#include <TDatabasePDG.h>
#include <TGaxis.h>
#include <TLegend.h>
#include <TLatex.h>
#include <vector>
#include <string>
#include <sstream>
#include <fstream>
#include "AliAnalysisTaskSEHFSystPID.h"
Include dependency graph for EstimateSingleTrackPIDsyst.C:

Go to the source code of this file.

Enumerations

enum  partPID {
  kElectron, kMuon, kPion, kKaon,
  kProton, kAll
}
 

Functions

int EstimateSingleTrackPIDsyst (int maxEntries=1.e8)
 
int GetHistoParticleIndex (short pdgcode)
 
int FindPtbin (float pt, const double ptlims[], int nPtbins)
 
void ComputeEfficiency (double num, double den, double &eff, double &effunc)
 
void GetTOFFractionsFromData (int whichpart, int iPt, TH1F *hFractionMC[nPDGcodes-1], TH1F *hFractionData[nPDGcodes-1], TH1F *hNsigmaMC[nPDGcodes], TH1F *hNsigmaData, TFractionFitter *&fNsigmaFitter, vector< int > &templUsed)
 
double PDFnsigmaTPCtot (double *nsigma, double *pars)
 
void PlotQAhistos (TList *listMC, TList *listData)
 
void DivideCanvas (TCanvas *c, int nPtbins)
 
void SetStyle ()
 
void SetTH1Style (TH1F *histo, int markerstyle, int markercolor, float markersize, int linewidth, int linecolor, int fillcolor, float labelsize=-1, float titlesize=-1)
 

Variables

const int nPDGcodes = 6
 
const int pdgcodes [nPDGcodes] ={11,13,211,321,2212,-100}
 
const int pdgcolors [nPDGcodes] ={kOrange+7,kGray,kRed,kBlue,kGreen+2,kBlack}
 
const int pdgfillcolors [nPDGcodes] ={kOrange+7,kGray,kRed,kBlue,kGreen+2,kWhite}
 
const TString pdgnames [nPDGcodes] ={"Electron","Muon","Pion","Kaon","Proton","All"}
 
const double ptlims [] = {0.3,0.5,0.75,1.,1.5,2.,3.,5.,10.}
 
const TString infileNameData = "LHC17pq.root"
 
const TString indirNameData = "PWGHF_D2H_SystNsigmaPID"
 
const TString inlistNameData = "coutputPIDhistos_ppMB_kINT7"
 
const TString infileNameMC = "LHC17l3b.root"
 
const TString indirNameMC = "PWGHF_D2H_SystNsigmaPID"
 
const TString inlistNameMC = "coutputPIDhistos_ppMB_kINT7"
 

Enumeration Type Documentation

enum partPID
Enumerator
kElectron 
kMuon 
kPion 
kKaon 
kProton 
kAll 

Definition at line 41 of file EstimateSingleTrackPIDsyst.C.

Function Documentation

void ComputeEfficiency ( double  num,
double  den,
double &  eff,
double &  effunc 
)

Definition at line 1399 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst().

void DivideCanvas ( TCanvas *  c,
int  nPtbins 
)

Definition at line 1593 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst().

int EstimateSingleTrackPIDsyst ( int  maxEntries = 1.e8)

Definition at line 71 of file EstimateSingleTrackPIDsyst.C.

int FindPtbin ( float  pt,
const double  ptlims[],
int  nPtbins 
)

Definition at line 1385 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst().

int GetHistoParticleIndex ( short  pdgcode)

Definition at line 1363 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst().

void GetTOFFractionsFromData ( int  whichpart,
int  iPt,
TH1F *  hFractionMC[nPDGcodes-1],
TH1F *  hFractionData[nPDGcodes-1],
TH1F *  hNsigmaMC[nPDGcodes],
TH1F *  hNsigmaData,
TFractionFitter *&  fNsigmaFitter,
vector< int > &  templUsed 
)

Definition at line 1415 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst().

double PDFnsigmaTPCtot ( double *  nsigma,
double *  pars 
)

Definition at line 1480 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst().

void PlotQAhistos ( TList listMC,
TList listData 
)

Definition at line 1493 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst().

void SetStyle ( )

Definition at line 1623 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst().

void SetTH1Style ( TH1F *  histo,
int  markerstyle,
int  markercolor,
float  markersize,
int  linewidth,
int  linecolor,
int  fillcolor,
float  labelsize = -1,
float  titlesize = -1 
)

Definition at line 1642 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst().

Variable Documentation

const TString indirNameData = "PWGHF_D2H_SystNsigmaPID"

Definition at line 50 of file EstimateSingleTrackPIDsyst.C.

const TString indirNameMC = "PWGHF_D2H_SystNsigmaPID"

Definition at line 53 of file EstimateSingleTrackPIDsyst.C.

const TString infileNameData = "LHC17pq.root"

Definition at line 49 of file EstimateSingleTrackPIDsyst.C.

const TString infileNameMC = "LHC17l3b.root"

Definition at line 52 of file EstimateSingleTrackPIDsyst.C.

const TString inlistNameData = "coutputPIDhistos_ppMB_kINT7"

Definition at line 51 of file EstimateSingleTrackPIDsyst.C.

const TString inlistNameMC = "coutputPIDhistos_ppMB_kINT7"

Definition at line 54 of file EstimateSingleTrackPIDsyst.C.

const int nPDGcodes = 6

Definition at line 42 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst(), and PDFnsigmaTPCtot().

const int pdgcodes[nPDGcodes] ={11,13,211,321,2212,-100}

Definition at line 43 of file EstimateSingleTrackPIDsyst.C.

const int pdgcolors[nPDGcodes] ={kOrange+7,kGray,kRed,kBlue,kGreen+2,kBlack}

Definition at line 44 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst().

const int pdgfillcolors[nPDGcodes] ={kOrange+7,kGray,kRed,kBlue,kGreen+2,kWhite}

Definition at line 45 of file EstimateSingleTrackPIDsyst.C.

Referenced by EstimateSingleTrackPIDsyst().

const TString pdgnames[nPDGcodes] ={"Electron","Muon","Pion","Kaon","Proton","All"}

Definition at line 46 of file EstimateSingleTrackPIDsyst.C.