4 from array 
import array
 
    8 import ProviderHistoHelpers
 
   12   return [key.GetName() 
for key 
in gDirectory.GetListOfKeys()]
 
   13 TFile.GetKeyNames = GetKeyNames
 
   18     useJetCollections = [
"AntiKt4EMTopo",
"AntiKt4LCTopo"]
 
   21     systematicFile = TFile(aSystFile,
"READ")
 
   24       useJetCollections = newjetsdict
 
   27     for key 
in systematicFile.GetKeyNames() : 
 
   31       print "looping through useJetCollections",useJetCollections
 
   32       for type 
in useJetCollections :
 
   33         if key.endswith(type) :
 
   37         print "No jet type matches" 
   39       if jettype 
not in histos :
 
   40         print "Adding extra dict..." 
   44       systname = key.replace(
"_"+jettype,
"")
 
   46       histo = systematicFile.Get(key)
 
   48       histos[jettype][systname] = histo