ATLAS Offline Software
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 125 of file MenuComponents.py.

Constructor & Destructor Documentation

◆ __init__()

def MenuComponents.HypoToolConf.__init__ (   self,
  hypoToolGen 
)

Definition at line 127 of file MenuComponents.py.

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

Member Function Documentation

◆ confAndCreate()

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

Definition at line 145 of file MenuComponents.py.

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

◆ create()

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

Definition at line 138 of file MenuComponents.py.

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

◆ setConf()

def MenuComponents.HypoToolConf.setConf (   self,
  chainDict 
)

Definition at line 133 of file MenuComponents.py.

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

Member Data Documentation

◆ chainDict

MenuComponents.HypoToolConf.chainDict

Definition at line 136 of file MenuComponents.py.

◆ hasFlags

MenuComponents.HypoToolConf.hasFlags

Definition at line 129 of file MenuComponents.py.

◆ hypoToolGen

MenuComponents.HypoToolConf.hypoToolGen

Definition at line 130 of file MenuComponents.py.

◆ name

MenuComponents.HypoToolConf.name

Definition at line 131 of file MenuComponents.py.


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