ATLAS Offline Software
Loading...
Searching...
No Matches
CopyJERHists Namespace Reference

Functions

 ReadJERHistograms (fileToRead)

Function Documentation

◆ ReadJERHistograms()

CopyJERHists.ReadJERHistograms ( fileToRead)

Definition at line 11 of file CopyJERHists.py.

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