Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
MenuComponents.HypoToolConf Class Reference
Inheritance diagram for MenuComponents.HypoToolConf:
Collaboration diagram for MenuComponents.HypoToolConf:

Public Member Functions

def __init__ (self, hypoToolGen)
 
def setConf (self, chainDict)
 
def create (self, flags)
 
def confAndCreate (self, flags, chainDict)
 

Public Attributes

 hasFlags
 
 hypoToolGen
 
 name
 
 chainDict
 

Detailed Description

Class to group info on hypotools for ChainDict

Definition at line 127 of file MenuComponents.py.

Constructor & Destructor Documentation

◆ __init__()

def MenuComponents.HypoToolConf.__init__ (   self,
  hypoToolGen 
)

Definition at line 129 of file MenuComponents.py.

129  def __init__(self, hypoToolGen):
130  # Check if the generator function takes flags:
131  self.hasFlags = 'flags' in inspect.signature(hypoToolGen).parameters
132  self.hypoToolGen = hypoToolGen
133  self.name=hypoToolGen.__name__
134 

Member Function Documentation

◆ confAndCreate()

def MenuComponents.HypoToolConf.confAndCreate (   self,
  flags,
  chainDict 
)
sets the configuration and creates instance of the hypo tool

Definition at line 147 of file MenuComponents.py.

147  def confAndCreate(self, flags, chainDict):
148  """sets the configuration and creates instance of the hypo tool"""
149  self.setConf(chainDict)
150  return self.create(flags)
151 
152 

◆ create()

def MenuComponents.HypoToolConf.create (   self,
  flags 
)
creates instance of the hypo tool

Definition at line 140 of file MenuComponents.py.

140  def create(self, flags):
141  """creates instance of the hypo tool"""
142  if self.hasFlags:
143  return self.hypoToolGen( flags, self.chainDict )
144  else:
145  return self.hypoToolGen( self.chainDict )
146 

◆ setConf()

def MenuComponents.HypoToolConf.setConf (   self,
  chainDict 
)

Definition at line 135 of file MenuComponents.py.

135  def setConf( self, chainDict):
136  if type(chainDict) is not dict:
137  raise RuntimeError("Configuring hypo with %s, not good anymore, use chainDict" % str(chainDict) )
138  self.chainDict = chainDict
139 

Member Data Documentation

◆ chainDict

MenuComponents.HypoToolConf.chainDict

Definition at line 138 of file MenuComponents.py.

◆ hasFlags

MenuComponents.HypoToolConf.hasFlags

Definition at line 131 of file MenuComponents.py.

◆ hypoToolGen

MenuComponents.HypoToolConf.hypoToolGen

Definition at line 132 of file MenuComponents.py.

◆ name

MenuComponents.HypoToolConf.name

Definition at line 133 of file MenuComponents.py.


The documentation for this class was generated from the following file:
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11