|
def | __init__ (self, name="ElectronRingerSelector_TestNoCut", **kwargs) |
|
◆ __init__()
def ElectronRingerSelectorDefs.ElectronRingerSelectorTestNoCut.__init__ |
( |
|
self, |
|
|
|
name = "ElectronRingerSelector_TestNoCut" , |
|
|
** |
kwargs |
|
) |
| |
Reimplemented from ElectronRingerSelectorDefs.BaseElectronSelectorConf.
Definition at line 115 of file ElectronRingerSelectorDefs.py.
115 def __init__(self, name = "ElectronRingerSelector_TestNoCut", **kwargs):
117 BaseElectronSelectorConf.__init__(self,name,**kwargs)
118 self._setDefault(
"DiscriminationFileName",
119 "RingerSelectorTools/TestMenu_20150605_v1/ElectronRingerOfflineDiscrMedium.root",
121 self._setDefault(
"ThresholdFileName",
122 "RingerSelectorTools/TestMenu_20150605_v1/ElectronRingerOfflineThresMedium.root",
124 self._setDefault(
"CutsMask",
126 kwargs.get(
"useCutIDTrack",
False)),
128 self._setCutIDSelector(
"NoCutRingerIsEMSelector", \
129 egammaPID.ElectronIDNoCut, \
130 electronPIDmenu.menuDC14, \
◆ _setCutIDSelector()
def ElectronRingerSelectorDefs.BaseElectronSelectorConf._setCutIDSelector |
( |
|
self, |
|
|
|
defaultName, |
|
|
|
quality, |
|
|
|
menu, |
|
|
** |
kwargs |
|
) |
| |
|
privateinherited |
Set the AsgElectronRingerSelector CutIDSelector to default or to the configuration
available in the kwargs
Definition at line 32 of file ElectronRingerSelectorDefs.py.
32 def _setCutIDSelector(self,defaultName,quality,menu,**kwargs):
34 Set the AsgElectronRingerSelector CutIDSelector to default or to the configuration
35 available in the kwargs
38 if "cutIDConfDict" not in kwargs
and "CutIDSelector" not in kwargs:
40 if "CutIDSelector" not in kwargs:
41 CutIDSelectorTool = ConfiguredAsgElectronIsEMSelector(defaultName,
44 **kwargs.pop(
"cutIDConfDict",{}))
45 from AthenaCommon.AppMgr
import ToolSvc
46 ToolSvc += CutIDSelectorTool
47 self.CutIDSelector = CutIDSelectorTool
49 self.CutIDSelector = kwargs.pop(
"CutIDSelector")
◆ _setDefault()
def ElectronRingerSelectorDefs.BaseElectronSelectorConf._setDefault |
( |
|
self, |
|
|
|
attrName, |
|
|
|
default, |
|
|
** |
kwargs |
|
) |
| |
|
privateinherited |
Definition at line 27 of file ElectronRingerSelectorDefs.py.
27 def _setDefault(self,attrName, default, **kwargs):
28 "Overwrites AsgElectronRingerSelector default to new default value."
29 if attrName
not in kwargs:
30 setattr(self, attrName, default)
◆ CutIDSelector
ElectronRingerSelectorDefs.BaseElectronSelectorConf.CutIDSelector |
|
inherited |
The documentation for this class was generated from the following file: