Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
INTTVtxZ.py File Reference

Go to the source code of this file.

Namespaces

namespace  INTTVtxZ
 

Functions

def INTTVtxZ.Draw_1Dhist_fitGaussian
 
def INTTVtxZ.Draw_HistGraph
 
def INTTVtxZ.Draw_1DEff
 
def INTTVtxZ.Draw_1DEffComp
 
def INTTVtxZ.Draw_2Dhist_eff
 

Variables

float INTTVtxZ.TickSize 0.03
 
float INTTVtxZ.AxisTitleSize 0.05
 
float INTTVtxZ.AxisLabelSize 0.04
 
float INTTVtxZ.LeftMargin 0.15
 
float INTTVtxZ.RightMargin 0.08
 
float INTTVtxZ.TopMargin 0.08
 
float INTTVtxZ.BottomMargin 0.13
 
tuple INTTVtxZ.parser OptionParser(usage="usage: %prog ver [options -h]")
 
 INTTVtxZ.infiledir opt.infiledir
 
 INTTVtxZ.outdirprefix opt.outdirprefix
 
tuple INTTVtxZ.dphi float(opt.dphi)
 
tuple INTTVtxZ.dca float(opt.dca)
 
string INTTVtxZ.dphitext '{:.3f}'
 
string INTTVtxZ.dcadtext '{:.3f}'
 
string INTTVtxZ.plotpath './RecoPV_ana/'
 
string INTTVtxZ.fname '{}/dphi{}deg_dca{}cm/INTTVtxZ.root'
 
tuple INTTVtxZ.df ROOT.RDataFrame('minitree', fname)
 
tuple INTTVtxZ.nparr_NClusInner df.AsNumpy(columns=['NClusLayer1'])
 
list INTTVtxZ.NclusInner_percentile []
 
list INTTVtxZ.Binedge_NclusInner_percentile [0]
 
list INTTVtxZ.NclusInner_percentile_cut [0]
 
int INTTVtxZ.NpercentileDiv 20
 
list INTTVtxZ.l_hM_DiffVtxZ []
 
tuple INTTVtxZ.hM_NClusInner_NtruthVtx1 TH1F('hM_NClusInner_NtruthVtx1', 'hM_NClusInner_NtruthVtx1', NpercentileDiv, np.asarray(Binedge_NclusInner_percentile))
 
tuple INTTVtxZ.hM_NClusInner_NtruthVtx1_absdiffle5cm TH1F('hM_NClusInner_NtruthVtx1_absdiffle5cm', 'hM_NClusInner_NtruthVtx1_absdiffle5cm', NpercentileDiv, np.asarray(Binedge_NclusInner_percentile))
 
tuple INTTVtxZ.hM_NClusInner_NtruthVtx1_absdiffle2cm TH1F('hM_NClusInner_NtruthVtx1_absdiffle2cm', 'hM_NClusInner_NtruthVtx1_absdiffle2cm', NpercentileDiv, np.asarray(Binedge_NclusInner_percentile))
 
tuple INTTVtxZ.hM_NClusInner_NtruthVtx1_absdiffle1cm TH1F('hM_NClusInner_NtruthVtx1_absdiffle1cm', 'hM_NClusInner_NtruthVtx1_absdiffle1cm', NpercentileDiv, np.asarray(Binedge_NclusInner_percentile))
 
tuple INTTVtxZ.hM_Centrality_NtruthVtx1 TH1F('hM_Centrality_NtruthVtx1', 'hM_Centrality_NtruthVtx1', 10, 0, 10)
 
tuple INTTVtxZ.hM_Centrality_NtruthVtx1_absdiffle5cm TH1F('hM_Centrality_NtruthVtx1_absdiffle5cm', 'hM_Centrality_NtruthVtx1_absdiffle5cm', 10, 0, 10)
 
tuple INTTVtxZ.hM_Centrality_NtruthVtx1_absdiffle2cm TH1F('hM_Centrality_NtruthVtx1_absdiffle2cm', 'hM_Centrality_NtruthVtx1_absdiffle2cm', 10, 0, 10)
 
tuple INTTVtxZ.hM_Centrality_NtruthVtx1_absdiffle1cm TH1F('hM_Centrality_NtruthVtx1_absdiffle1cm', 'hM_Centrality_NtruthVtx1_absdiffle1cm', 10, 0, 10)
 
tuple INTTVtxZ.hM_NClusInner_TruthPVz_NtruthVtx1 TH2F('hM_NClusInner_TruthPVz_NtruthVtx1', 'hM_NClusInner_TruthPVz_NtruthVtx1', NpercentileDiv, np.asarray(Binedge_NclusInner_percentile), 20, -45, 5)
 
tuple INTTVtxZ.hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle5cm TH2F('hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle5cm', 'hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle5cm', NpercentileDiv, np.asarray(Binedge_NclusInner_percentile), 20, -45, 5)
 
tuple INTTVtxZ.hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle2cm TH2F('hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle2cm', 'hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle2cm', NpercentileDiv, np.asarray(Binedge_NclusInner_percentile), 20, -45, 5)
 
tuple INTTVtxZ.hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle1cm TH2F('hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle1cm', 'hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle1cm', NpercentileDiv, np.asarray(Binedge_NclusInner_percentile), 20, -45, 5)
 
tuple INTTVtxZ.hM_Centrality_TruthPVz_NtruthVtx1 TH2F('hM_Centrality_TruthPVz_NtruthVtx1', 'hM_Centrality_TruthPVz_NtruthVtx1', 10, 0, 10, 20, -45, 5)
 
tuple INTTVtxZ.hM_Centrality_TruthPVz_NtruthVtx1_absdiffle5cm TH2F('hM_Centrality_TruthPVz_NtruthVtx1_absdiffle5cm', 'hM_Centrality_TruthPVz_NtruthVtx1_absdiffle5cm', 10, 0, 10, 20, -45, 5)
 
tuple INTTVtxZ.hM_Centrality_TruthPVz_NtruthVtx1_absdiffle2cm TH2F('hM_Centrality_TruthPVz_NtruthVtx1_absdiffle2cm', 'hM_Centrality_TruthPVz_NtruthVtx1_absdiffle2cm', 10, 0, 10, 20, -45, 5)
 
tuple INTTVtxZ.hM_Centrality_TruthPVz_NtruthVtx1_absdiffle1cm TH2F('hM_Centrality_TruthPVz_NtruthVtx1_absdiffle1cm', 'hM_Centrality_TruthPVz_NtruthVtx1_absdiffle1cm', 10, 0, 10, 20, -45, 5)
 
tuple INTTVtxZ.f TFile(fname, 'r')
 
tuple INTTVtxZ.tree f.Get('minitree')
 
tuple INTTVtxZ.idx int(((tree.Centrality_mbd / 5) - 1) / 2)
 
tuple INTTVtxZ.centbin int(((tree.Centrality_mbd / 5) - 1) / 2)
 
list INTTVtxZ.l_res_vtxZ []
 
list INTTVtxZ.l_reserr_vtxZ []
 
tuple INTTVtxZ.h_resolution_cent TH1F('h_resolution_cent', 'h_resolution_cent', 10, 0, 10)
 
tuple INTTVtxZ.h_bias_cent TH1F('h_bias_cent', 'h_bias_cent', 10, 0, 10)
 
tuple INTTVtxZ.err_RecoPVEff_NClusInner_absdiffle5cm TGraphAsymmErrors()
 
tuple INTTVtxZ.err_RecoPVEff_NClusInner_absdiffle2cm TGraphAsymmErrors()
 
tuple INTTVtxZ.err_RecoPVEff_NClusInner_absdiffle1cm TGraphAsymmErrors()
 
list INTTVtxZ.list_eff_NClusInner [err_RecoPVEff_NClusInner_absdiffle5cm, err_RecoPVEff_NClusInner_absdiffle2cm, err_RecoPVEff_NClusInner_absdiffle1cm]
 
list INTTVtxZ.list_color ['#03001C', '#035397', '#9B0000']
 
list INTTVtxZ.list_leg ['|\Deltaz(PV_{Reco},PV_{Truth})|\leq5cm', '|\Deltaz(PV_{Reco},PV_{Truth})|\leq2cm', '|\Deltaz(PV_{Reco},PV_{Truth})|\leq1cm']
 
tuple INTTVtxZ.err_RecoPVEff_Centrality_absdiffle5cm TGraphAsymmErrors()
 
tuple INTTVtxZ.err_RecoPVEff_Centrality_absdiffle2cm TGraphAsymmErrors()
 
tuple INTTVtxZ.err_RecoPVEff_Centrality_absdiffle1cm TGraphAsymmErrors()
 
list INTTVtxZ.list_eff_Centrality [err_RecoPVEff_Centrality_absdiffle5cm, err_RecoPVEff_Centrality_absdiffle2cm, err_RecoPVEff_Centrality_absdiffle1cm]
 
tuple INTTVtxZ.eff_RecoPVEff_NClusInner_TruthPVz_absdiffle5cm hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle5cm.Clone()
 
tuple INTTVtxZ.eff_RecoPVEff_NClusInner_TruthPVz_absdiffle2cm hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle2cm.Clone()
 
tuple INTTVtxZ.eff_RecoPVEff_NClusInner_TruthPVz_absdiffle1cm hM_NClusInner_TruthPVz_NtruthVtx1_absdiffle1cm.Clone()
 
tuple INTTVtxZ.eff_RecoPVEff_Centrality_TruthPVz_absdiffle5cm hM_Centrality_TruthPVz_NtruthVtx1_absdiffle5cm.Clone()
 
tuple INTTVtxZ.eff_RecoPVEff_Centrality_TruthPVz_absdiffle2cm hM_Centrality_TruthPVz_NtruthVtx1_absdiffle2cm.Clone()
 
tuple INTTVtxZ.eff_RecoPVEff_Centrality_TruthPVz_absdiffle1cm hM_Centrality_TruthPVz_NtruthVtx1_absdiffle1cm.Clone()