ATLAS Offline Software
CopyJERHists.py
Go to the documentation of this file.
1 from ROOT import *
2 from array import array
3 import sys
4 import os
5 import glob
6 import re
7 import math
8 
9 from ParseCurrentFile import ReadCurrentHistograms
10 
11 def ReadJERHistograms(fileToRead) :
12 
13  print "Beginning readJERHistograms"
14 
15  # Now read the histograms
16  print "Reading JER hists from input..."
17  # For now, everything except flavour and cross calibration inputs
18  # are read in from the final 2012 calibration files.
19  # Input file and jet types
20  theCurrentHistos = ReadCurrentHistograms(fileToRead)
21 
22  for jettype in theCurrentHistos.keys() :
23  for systname in theCurrentHistos[jettype].keys() :
24  if not systname.startswith("JER_") :
25  del theCurrentHistos[jettype][systname]
26 
27  return theCurrentHistos
ParseCurrentFile.ReadCurrentHistograms
def ReadCurrentHistograms(aSystFile, newjetsdict=[])
Definition: ICHEP2016/ParseCurrentFile.py:15
CopyJERHists.ReadJERHistograms
def ReadJERHistograms(fileToRead)
Definition: CopyJERHists.py:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798