4 from array
import array
8 import ProviderHistoHelpers
11 SystematicNameDictionary = {
12 'AFIIunc' :
'RelativeNonClosure_AFII'
16 '4EM' :
'AntiKt4Topo_EMJES',
17 '6EM' :
'AntiKt6Topo_EMJES',
18 '4LC' :
'AntiKt4Topo_LCJES',
19 '6LC' :
'AntiKt6Topo_LCJES'
23 if not dirName.endswith(
"/"):
24 dirName = dirName +
"/"
28 files =
sorted(glob.glob(dirName+
"*.root"))
29 for aFileName
in files:
32 for aFileDef,aJetDef
in jetDefDict.iteritems():
33 if aFileDef
in aFileName:
37 print "Failed to determine jet definition for file:",aFileName
42 inFile = TFile(aFileName,
"READ")
43 for aName,aSystName
in SystematicNameDictionary.iteritems():
44 systematicName = aSystName +
"_" + jetDef
45 histo = inFile.Get(aName)
47 print "Failed to get histogram:",systematicName
51 histoSym.SetDirectory(0)
52 histos[jetDef][aSystName] = histoSym
58 histos[jetDef][
"RelativeNonClosure_Pythia8"].
SetDirectory(0)