ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
PlotSFuncertainty.SystDependency Class Reference
Inheritance diagram for PlotSFuncertainty.SystDependency:
Collaboration diagram for PlotSFuncertainty.SystDependency:

Public Member Functions

def __init__ (self, var_name="", axis_title="", bins=-1, bmin=0., bmax=0., bdir=None, calib="", wp="", sys="SYS", test_tree=None, log_binning=False)
 
def fill (self)
 
def finalize (self)
 
def name (self)
 
def get_nom_H1 (self)
 
def get_1up_H1 (self)
 
def get_1dn_H1 (self)
 
def get_wp (self)
 
def get_sys (self)
 
def get_calib (self)
 

Private Attributes

 __muon_var
 Direct access to the branch which are going to be compared. More...
 
 __norm
 
 __var_name
 
 __wp
 
 __sys
 
 __calib
 
 __nom_sf
 
 __1up_sf
 
 __1dn_sf
 
 __nom_histo
 
 __1up_histo
 
 __1dn_histo
 

Detailed Description

Definition at line 12 of file PlotSFuncertainty.py.

Constructor & Destructor Documentation

◆ __init__()

def PlotSFuncertainty.SystDependency.__init__ (   self,
  var_name = "",
  axis_title = "",
  bins = -1,
  bmin = 0.,
  bmax = 0.,
  bdir = None,
  calib = "",
  wp = "",
  sys = "SYS",
  test_tree = None,
  log_binning = False 
)

Definition at line 13 of file PlotSFuncertainty.py.

13  def __init__(self,
14  var_name = "", axis_title ="",
15  bins = -1, bmin = 0., bmax = 0.,
16  bdir = None,
17  calib = "",
18  wp = "",
19  sys = "SYS",
20  test_tree = None,
21  log_binning = False,
22  ):
23 
24  self.__muon_var = test_tree.GetLeaf("Muon_%s"%(var_name))
25  self.__norm = 1. if var_name.find("pt") == -1 else 1./1.e3
26 
27  self.__var_name = "%s%s_%s_%s"%("" if len(calib) == 0 else calib+"_", wp,var_name, sys)
28  self.__wp = wp
29  self.__sys = sys
30  self.__calib = calib
31  self.__nom_sf = test_tree.GetLeaf("%s%s_SF"%("" if len(calib) == 0 else "c%s_"%(calib), wp))
32  self.__1up_sf = test_tree.GetLeaf("%s%s_SF__MUON_EFF_%s_%s__1up"%("" if len(calib) == 0 else "c%s_"%(calib), wp,KnownWPs[wp],sys))
33  self.__1dn_sf = test_tree.GetLeaf("%s%s_SF__MUON_EFF_%s_%s__1down"%("" if len(calib) == 0 else "c%s_"%(calib), wp,KnownWPs[wp],sys))
34  self.__nom_histo = DiagnosticHisto(
35  name = "%s"%(self.__var_name),
36  axis_title = axis_title,
37  bins = bins, bmin = bmin, bmax = bmax,
38  bdir = bdir,
39  log_binning = log_binning)
40  self.__1up_histo = DiagnosticHisto(
41  name = "%s_1UP"%(self.__var_name),
42  axis_title = axis_title,
43  bins = bins, bmin = bmin, bmax = bmax,
44  bdir = bdir,
45  log_binning = log_binning )
46  self.__1dn_histo = DiagnosticHisto(
47  name = "%s_1DOWN"%(self.__var_name),
48  axis_title = axis_title,
49  bins = bins, bmin = bmin, bmax = bmax,
50  bdir = bdir,
51  log_binning = log_binning )
52 

Member Function Documentation

◆ fill()

def PlotSFuncertainty.SystDependency.fill (   self)

Definition at line 53 of file PlotSFuncertainty.py.

53  def fill(self):
54  self.__nom_histo.fill(value = self.__muon_var.GetValue()*self.__norm, weight= self.__nom_sf.GetValue())
55  self.__1up_histo.fill(value = self.__muon_var.GetValue()*self.__norm, weight= self.__1up_sf.GetValue())
56  self.__1dn_histo.fill(value = self.__muon_var.GetValue()*self.__norm, weight= self.__1dn_sf.GetValue())
57 
58 

◆ finalize()

def PlotSFuncertainty.SystDependency.finalize (   self)

Definition at line 59 of file PlotSFuncertainty.py.

59  def finalize(self):
60  self.__nom_histo.write()
61  self.__1dn_histo.write()
62  self.__1up_histo.write()
63 

◆ get_1dn_H1()

def PlotSFuncertainty.SystDependency.get_1dn_H1 (   self)

Definition at line 69 of file PlotSFuncertainty.py.

69  def get_1dn_H1(self): return self.__1dn_histo
70 

◆ get_1up_H1()

def PlotSFuncertainty.SystDependency.get_1up_H1 (   self)

Definition at line 68 of file PlotSFuncertainty.py.

68  def get_1up_H1(self): return self.__1up_histo

◆ get_calib()

def PlotSFuncertainty.SystDependency.get_calib (   self)

Definition at line 73 of file PlotSFuncertainty.py.

73  def get_calib(self): return self.__calib

◆ get_nom_H1()

def PlotSFuncertainty.SystDependency.get_nom_H1 (   self)

Definition at line 67 of file PlotSFuncertainty.py.

67  def get_nom_H1(self): return self.__nom_histo

◆ get_sys()

def PlotSFuncertainty.SystDependency.get_sys (   self)

Definition at line 72 of file PlotSFuncertainty.py.

72  def get_sys(self): return self.__sys

◆ get_wp()

def PlotSFuncertainty.SystDependency.get_wp (   self)

Definition at line 71 of file PlotSFuncertainty.py.

71  def get_wp(self): return self.__wp

◆ name()

def PlotSFuncertainty.SystDependency.name (   self)

Definition at line 64 of file PlotSFuncertainty.py.

64  def name(self):
65  return self.__var_name
66 

Member Data Documentation

◆ __1dn_histo

PlotSFuncertainty.SystDependency.__1dn_histo
private

Definition at line 37 of file PlotSFuncertainty.py.

◆ __1dn_sf

PlotSFuncertainty.SystDependency.__1dn_sf
private

Definition at line 24 of file PlotSFuncertainty.py.

◆ __1up_histo

PlotSFuncertainty.SystDependency.__1up_histo
private

Definition at line 31 of file PlotSFuncertainty.py.

◆ __1up_sf

PlotSFuncertainty.SystDependency.__1up_sf
private

Definition at line 23 of file PlotSFuncertainty.py.

◆ __calib

PlotSFuncertainty.SystDependency.__calib
private

Definition at line 21 of file PlotSFuncertainty.py.

◆ __muon_var

PlotSFuncertainty.SystDependency.__muon_var
private

Direct access to the branch which are going to be compared.

Definition at line 15 of file PlotSFuncertainty.py.

◆ __nom_histo

PlotSFuncertainty.SystDependency.__nom_histo
private

Definition at line 25 of file PlotSFuncertainty.py.

◆ __nom_sf

PlotSFuncertainty.SystDependency.__nom_sf
private

Definition at line 22 of file PlotSFuncertainty.py.

◆ __norm

PlotSFuncertainty.SystDependency.__norm
private

Definition at line 16 of file PlotSFuncertainty.py.

◆ __sys

PlotSFuncertainty.SystDependency.__sys
private

Definition at line 20 of file PlotSFuncertainty.py.

◆ __var_name

PlotSFuncertainty.SystDependency.__var_name
private

Definition at line 18 of file PlotSFuncertainty.py.

◆ __wp

PlotSFuncertainty.SystDependency.__wp
private

Definition at line 19 of file PlotSFuncertainty.py.


The documentation for this class was generated from the following file:
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:50
python.ByteStreamConfig.write
def write
Definition: Event/ByteStreamCnvSvc/python/ByteStreamConfig.py:247
fill
void fill(H5::Group &out_file, size_t iterations)
Definition: test-hdf5-writer.cxx:95
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18