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

Public Member Functions

def __init__ (self, name="ElectronRingerSelector_TestLoose", **kwargs)
 

Public Attributes

 CutIDSelector
 

Private Member Functions

def _setDefault (self, attrName, default, **kwargs)
 
def _setCutIDSelector (self, defaultName, quality, menu, **kwargs)
 

Detailed Description

Definition at line 62 of file ElectronRingerSelectorDefs.py.

Constructor & Destructor Documentation

◆ __init__()

def ElectronRingerSelectorDefs.ElectronRingerSelectorTestLoose.__init__ (   self,
  name = "ElectronRingerSelector_TestLoose",
**  kwargs 
)

Reimplemented from ElectronRingerSelectorDefs.BaseElectronSelectorConf.

Definition at line 63 of file ElectronRingerSelectorDefs.py.

63  def __init__(self, name = "ElectronRingerSelector_TestLoose", **kwargs):
64  BaseElectronSelectorConf.__init__(self,name,**kwargs)
65  self._setDefault("DiscriminationFileName",
66  "RingerSelectorTools/TestMenu_20150605_v1/ElectronRingerOfflineDiscrLoose.root",
67  **kwargs)
68  self._setDefault("ThresholdFileName",
69  "RingerSelectorTools/TestMenu_20150605_v1/ElectronRingerOfflineThresLoose.root",
70  **kwargs)
71  self._setDefault("CutsMask",
73  kwargs.get("useCutIDTrack",False)),
74  **kwargs)
75  self._setCutIDSelector("LooseRingerIsEMSelector",\
76  egammaPID.ElectronIDLoosePP, \
77  electronPIDmenu.menuDC14, **kwargs)
78 

Member Function Documentation

◆ _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):
33  """
34  Set the AsgElectronRingerSelector CutIDSelector to default or to the configuration
35  available in the kwargs
36  """
37  removeMask = False
38  if "cutIDConfDict" not in kwargs and "CutIDSelector" not in kwargs:
39  removeMask = True
40  if "CutIDSelector" not in kwargs:
41  CutIDSelectorTool = ConfiguredAsgElectronIsEMSelector(defaultName,
42  quality,
43  menu,
44  **kwargs.pop("cutIDConfDict",{}))
45  from AthenaCommon.AppMgr import ToolSvc
46  ToolSvc += CutIDSelectorTool
47  self.CutIDSelector = CutIDSelectorTool
48  else:
49  self.CutIDSelector = kwargs.pop("CutIDSelector")
50  if removeMask:
51  removeClusterCutsFromIsEMMask(self.CutIDSelector.isEMMask)
52 

◆ _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)
31 

Member Data Documentation

◆ CutIDSelector

ElectronRingerSelectorDefs.BaseElectronSelectorConf.CutIDSelector
inherited

Definition at line 47 of file ElectronRingerSelectorDefs.py.


The documentation for this class was generated from the following file:
Ringer::ElectronTAccept_v1::getAppliedCutMsk
static unsigned int getAppliedCutMsk(const Requirement cut, bool withCutIDTrack=false)
Main methods.
ElectronRingerSelectorDefs.removeClusterCutsFromIsEMMask
def removeClusterCutsFromIsEMMask(CutIDIsEMMask)
Definition: ElectronRingerSelectorDefs.py:22
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18