ATLAS Offline Software
Loading...
Searching...
No Matches
PlotSFuncertainty.SystDependency Class Reference
Inheritance diagram for PlotSFuncertainty.SystDependency:
Collaboration diagram for PlotSFuncertainty.SystDependency:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

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

Private Attributes

 __muon_var = test_tree.GetLeaf("Muon_%s"%(var_name))
 Direct access to the branch which are going to be compared.
int __norm = -1 else 1./1.e3
str __var_name = "%s%s_%s_%s"%("" if len(calib) == 0 else calib+"_", wp,var_name, sys)
 __wp = wp
 __sys = sys
 __calib = calib
 __nom_sf = test_tree.GetLeaf("%s%s_SF"%("" if len(calib) == 0 else "c%s_"%(calib), wp))
 __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))
 __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))
 __nom_histo
 __1up_histo
 __1dn_histo

Detailed Description

Definition at line 12 of file PlotSFuncertainty.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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.

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()

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
void fill(H5::Group &out_file, size_t iterations)

◆ finalize()

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()

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()

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()

PlotSFuncertainty.SystDependency.get_calib ( self)

Definition at line 73 of file PlotSFuncertainty.py.

73 def get_calib(self): return self.__calib

◆ get_nom_H1()

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()

PlotSFuncertainty.SystDependency.get_sys ( self)

Definition at line 72 of file PlotSFuncertainty.py.

72 def get_sys(self): return self.__sys

◆ get_wp()

PlotSFuncertainty.SystDependency.get_wp ( self)

Definition at line 71 of file PlotSFuncertainty.py.

71 def get_wp(self): return self.__wp

◆ name()

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
Initial value:
= DiagnosticHisto(
name = "%s_1DOWN"%(self.__var_name),
axis_title = axis_title,
bins = bins, bmin = bmin, bmax = bmax,
bdir = bdir,
log_binning = log_binning )

Definition at line 46 of file PlotSFuncertainty.py.

◆ __1dn_sf

PlotSFuncertainty.SystDependency.__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))
private

Definition at line 33 of file PlotSFuncertainty.py.

◆ __1up_histo

PlotSFuncertainty.SystDependency.__1up_histo
private
Initial value:
= DiagnosticHisto(
name = "%s_1UP"%(self.__var_name),
axis_title = axis_title,
bins = bins, bmin = bmin, bmax = bmax,
bdir = bdir,
log_binning = log_binning )

Definition at line 40 of file PlotSFuncertainty.py.

◆ __1up_sf

PlotSFuncertainty.SystDependency.__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))
private

Definition at line 32 of file PlotSFuncertainty.py.

◆ __calib

PlotSFuncertainty.SystDependency.__calib = calib
private

Definition at line 30 of file PlotSFuncertainty.py.

◆ __muon_var

PlotSFuncertainty.SystDependency.__muon_var = test_tree.GetLeaf("Muon_%s"%(var_name))
private

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

Definition at line 24 of file PlotSFuncertainty.py.

◆ __nom_histo

PlotSFuncertainty.SystDependency.__nom_histo
private
Initial value:
= DiagnosticHisto(
name = "%s"%(self.__var_name),
axis_title = axis_title,
bins = bins, bmin = bmin, bmax = bmax,
bdir = bdir,
log_binning = log_binning)

Definition at line 34 of file PlotSFuncertainty.py.

◆ __nom_sf

PlotSFuncertainty.SystDependency.__nom_sf = test_tree.GetLeaf("%s%s_SF"%("" if len(calib) == 0 else "c%s_"%(calib), wp))
private

Definition at line 31 of file PlotSFuncertainty.py.

◆ __norm

int PlotSFuncertainty.SystDependency.__norm = -1 else 1./1.e3
private

Definition at line 25 of file PlotSFuncertainty.py.

◆ __sys

PlotSFuncertainty.SystDependency.__sys = sys
private

Definition at line 29 of file PlotSFuncertainty.py.

◆ __var_name

str PlotSFuncertainty.SystDependency.__var_name = "%s%s_%s_%s"%("" if len(calib) == 0 else calib+"_", wp,var_name, sys)
private

Definition at line 27 of file PlotSFuncertainty.py.

◆ __wp

PlotSFuncertainty.SystDependency.__wp = wp
private

Definition at line 28 of file PlotSFuncertainty.py.


The documentation for this class was generated from the following file: