ATLAS Offline Software
Loading...
Searching...
No Matches
CopyJERHists.py
Go to the documentation of this file.
1from ROOT import *
2from array import array
3import sys
4import os
5import glob
6import re
7import math
8
9from ParseCurrentFile import ReadCurrentHistograms
10
11def 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
ReadJERHistograms(fileToRead)