ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.pydraw._Loopvar Class Reference
Inheritance diagram for python.pydraw._Loopvar:
Collaboration diagram for python.pydraw._Loopvar:

Public Member Functions

def __init__ (self, name)
 
def itname (self, id)
 
def dumname (self)
 
def add_id (self, id)
 
def get_ids (self)
 

Public Attributes

 name
 
 ids
 
 explicit
 

Detailed Description

Holds information about a dummy loop variable.

Attributes:
  name - The name of the dummy variable.
  ids  - Set of loop identifiers (`foo' in `foo$i') with which
         this dummy has been used.
  explicit - Set to true if this variable is ever used on its own
         (just $i)

Definition at line 570 of file pydraw.py.

Constructor & Destructor Documentation

◆ __init__()

def python.pydraw._Loopvar.__init__ (   self,
  name 
)
Initialize given the name.

Definition at line 581 of file pydraw.py.

581  def __init__ (self, name):
582  """Initialize given the name."""
583  self.name = name
584  self.ids = set()
585  self.explicit = 0
586  return
587 

Member Function Documentation

◆ add_id()

def python.pydraw._Loopvar.add_id (   self,
  id 
)
Notice this this dummy is used with loop identifier ID.

Return the iterator variable.

Definition at line 597 of file pydraw.py.

597  def add_id (self, id):
598  """Notice this this dummy is used with loop identifier ID.
599 
600  Return the iterator variable.
601  """
602  self.ids.add (id)
603  return self.itname (id)
604 

◆ dumname()

def python.pydraw._Loopvar.dumname (   self)
Return the dummy variable name for this dummy.

Definition at line 593 of file pydraw.py.

593  def dumname (self):
594  """Return the dummy variable name for this dummy."""
595  return "_dum_" + self.name
596 

◆ get_ids()

def python.pydraw._Loopvar.get_ids (   self)
Return the list of loop identifiers with which we've been used.

Definition at line 605 of file pydraw.py.

605  def get_ids (self):
606  """Return the list of loop identifiers with which we've been used."""
607  return list (self.ids)
608 
609 

◆ itname()

def python.pydraw._Loopvar.itname (   self,
  id 
)
Return the iterator variable for this dummy and loop identifier ID.

Definition at line 588 of file pydraw.py.

588  def itname (self, id):
589  """Return the iterator variable for this dummy and loop identifier ID.
590  """
591  return "_it_%s_%s" % (self.name, id)
592 

Member Data Documentation

◆ explicit

python.pydraw._Loopvar.explicit

Definition at line 585 of file pydraw.py.

◆ ids

python.pydraw._Loopvar.ids

Definition at line 584 of file pydraw.py.

◆ name

python.pydraw._Loopvar.name

Definition at line 583 of file pydraw.py.


The documentation for this class was generated from the following file:
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