2 from array
import array
6 import ProviderHistoHelpers
10 return [key.GetName()
for key
in gDirectory.GetListOfKeys()]
11 TFile.GetKeyNames = GetKeyNames
15 useJetCollections = {
"AntiKt4EMTopo" :
"AntiKt4Topo_EMJES",
16 "AntiKt4EMPFlow":
"AntiKt4PFlow_EMJES"}
19 systematicFile = TFile(aSystFile,
"READ")
22 useJetCollections = newjetsdict
25 for key
in systematicFile.GetKeyNames() :
29 for type
in useJetCollections :
30 if key.endswith(type) :
34 print "No jet type matches"
36 jetkey = useJetCollections[jettype]
37 if jetkey
not in histos :
38 print "Adding extra dict..."
41 systname = key.replace(
"_"+jettype,
"")
43 histo = systematicFile.Get(key)
45 histos[jetkey][systname] = histo