This commit is contained in:
cetin 2024-02-16 11:27:02 +01:00
parent 4b7aeb35d2
commit 5597683360
3 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@ from RecoConf.hlt1_tracking import (
get_global_materiallocator, get_global_materiallocator,
) )
decay = "test" decay = "B"
options.evt_max = -1 options.evt_max = -1

View File

@ -306,7 +306,9 @@ def get_ghost(eff, hist, tf, histoName, label):
denominator = findRootObjByName(tf[lab], denominatorName) denominator = findRootObjByName(tf[lab], denominatorName)
except: except:
numerator = findRootObjByName(tf[lab], numeratorName.replace("dP_", "P_")) numerator = findRootObjByName(tf[lab], numeratorName.replace("dP_", "P_"))
denominator = findRootObjByName(tf[lab], denominatorName.replace("dP_", "P_")) denominator = findRootObjByName(
tf[lab], denominatorName.replace("dP_", "P_")
)
print("Numerator = " + numeratorName.replace(unique_name_ext_re(), "")) print("Numerator = " + numeratorName.replace(unique_name_ext_re(), ""))
print("Denominator = " + denominatorName.replace(unique_name_ext_re(), "")) print("Denominator = " + denominatorName.replace(unique_name_ext_re(), ""))
teff = TEfficiency(numerator, denominator) teff = TEfficiency(numerator, denominator)
@ -371,7 +373,6 @@ def PrCheckerEfficiency(
for f in checks_files: for f in checks_files:
os.remove(f) os.remove(f)
for tracker in trackers: for tracker in trackers:
outputfile.cd() outputfile.cd()
trackerDir = outputfile.mkdir(tracker) trackerDir = outputfile.mkdir(tracker)