ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
python.trfGraph.graphPath Class Reference

Path object holding a list of nodes and data types which trace a single path through the graph. More...

Inheritance diagram for python.trfGraph.graphPath:
Collaboration diagram for python.trfGraph.graphPath:

Public Member Functions

def __init__ (self, endNodeName, data, cost=0)
 graphPath constructor More...
 
def path (self)
 
def cost (self)
 
def newData (self)
 
def extraData (self)
 
def addToPath (self, newNodeName, newData=set(), extraData=set(), extraCost=0)
 
def addCost (self, cost)
 
def __str__ (self)
 

Private Attributes

 _path
 
 _data
 
 _cost
 
 _newData
 
 _extraData
 

Detailed Description

Path object holding a list of nodes and data types which trace a single path through the graph.

Definition at line 540 of file trfGraph.py.

Constructor & Destructor Documentation

◆ __init__()

def python.trfGraph.graphPath.__init__ (   self,
  endNodeName,
  data,
  cost = 0 
)

graphPath constructor

Parameters
endNodeNameThe node name where this path will end
dataThe data type which this path will make
costThe starting cost of this path (default 0)

Definition at line 546 of file trfGraph.py.

546  def __init__(self, endNodeName, data, cost = 0):
547  self._path = [endNodeName]
548  self._data = data
549  self._cost = cost
550 
551 
555  self._newData = dict()
556  self._extraData = dict()
557 

Member Function Documentation

◆ __str__()

def python.trfGraph.graphPath.__str__ (   self)

Definition at line 583 of file trfGraph.py.

583  def __str__(self):
584  return '{0}: path {1}; cost {2}, newData {3}, extraData {4}'.format(self._data, self._path, self._cost, self._newData, self._extraData)
585 

◆ addCost()

def python.trfGraph.graphPath.addCost (   self,
  cost 
)

Definition at line 580 of file trfGraph.py.

580  def addCost(self, cost):
581  self._cost += cost
582 

◆ addToPath()

def python.trfGraph.graphPath.addToPath (   self,
  newNodeName,
  newData = set(),
  extraData = set(),
  extraCost = 0 
)

Definition at line 574 of file trfGraph.py.

574  def addToPath(self, newNodeName, newData = set(), extraData = set(), extraCost = 0):
575  self._path.insert(0, newNodeName)
576  self._newData[newNodeName] = newData
577  self._cost += extraCost
578  self._extraData[newNodeName] = extraData
579 

◆ cost()

def python.trfGraph.graphPath.cost (   self)

Definition at line 563 of file trfGraph.py.

563  def cost(self):
564  return self._cost
565 

◆ extraData()

def python.trfGraph.graphPath.extraData (   self)

Definition at line 571 of file trfGraph.py.

571  def extraData(self):
572  return self._extraData
573 

◆ newData()

def python.trfGraph.graphPath.newData (   self)

Definition at line 567 of file trfGraph.py.

567  def newData(self):
568  return self._newData
569 

◆ path()

def python.trfGraph.graphPath.path (   self)

Definition at line 559 of file trfGraph.py.

559  def path(self):
560  return self._path
561 

Member Data Documentation

◆ _cost

python.trfGraph.graphPath._cost
private

Definition at line 549 of file trfGraph.py.

◆ _data

python.trfGraph.graphPath._data
private

Definition at line 548 of file trfGraph.py.

◆ _extraData

python.trfGraph.graphPath._extraData
private

Definition at line 556 of file trfGraph.py.

◆ _newData

python.trfGraph.graphPath._newData
private
Note
These are dictionaries, keyed by substep, with the data which needs to be produced in that substep, i.e., it is the output data for that step and the input data for the downstream step. To avoid data duplication the values are sets. extraData gives data which is not made in this path itself, but is needed in order to satisfy multi-data entry criteria. newData is data which is produced along this path.

Definition at line 555 of file trfGraph.py.

◆ _path

python.trfGraph.graphPath._path
private

Definition at line 547 of file trfGraph.py.


The documentation for this class was generated from the following file:
cost
int cost(std::vector< std::string > &files, node &n, const std::string &directory="", bool deleteref=false, bool relocate=false)
Definition: hcg.cxx:921
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:128
vtune_athena.format
format
Definition: vtune_athena.py:14
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18