Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions FirstAnalysis/contamination.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from ROOT import TCanvas, TFile, gROOT, gStyle

path_file = "../codeHF/AnalysisResults_O2.root"

gStyle.SetOptStat(0)
gStyle.SetErrorX(0)
gStyle.SetFrameLineWidth(1)
Expand All @@ -25,7 +27,7 @@ def saveCanvas(canvas, title):


def kinematic_plots(var, particle, detector, hp):
fileo2 = TFile("../codeHF/AnalysisResults_O2.root")
fileo2 = TFile(path_file)
cres = TCanvas("cres", "resolution distribution")
cres.SetCanvasSize(1600, 1000)
cres.cd()
Expand Down Expand Up @@ -53,11 +55,11 @@ def ratioparticle(
selden="RICHSelHpElLoose",
label="e/#pi",
):
fileo2 = TFile("../codeHF/AnalysisResults_O2.root")
fileo2 = TFile(path_file)
cres = TCanvas("cres", "resolution distribution")
cres.SetCanvasSize(1600, 1000)
cres.cd()
# cres.SetLogy()
cres.SetLogy()

num2d = fileo2.Get("qa-rejection-general/h%s%s/%seta" % (numname, selnum, var))
den2d = fileo2.Get("qa-rejection-general/h%s%s/%seta" % (denname, selden, var))
Expand All @@ -78,7 +80,7 @@ def ratioparticle(


def is_e_not_pi_plots(particle):
fileo2 = TFile("../codeHF/AnalysisResults_O2.root")
fileo2 = TFile(path_file)
task = "qa-rejection-general"
folder_gm = "h%sRICHSelHpElTight" % particle
folder_alt = "h%sRICHSelHpElTightAlt" % particle
Expand Down