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 569 of file pydraw.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 580 of file pydraw.py.

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

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 596 of file pydraw.py.

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

◆ dumname()

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

Definition at line 592 of file pydraw.py.

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

◆ get_ids()

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

Definition at line 604 of file pydraw.py.

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

◆ itname()

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

Definition at line 587 of file pydraw.py.

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

Member Data Documentation

◆ explicit

python.pydraw._Loopvar.explicit

Definition at line 584 of file pydraw.py.

◆ ids

python.pydraw._Loopvar.ids

Definition at line 583 of file pydraw.py.

◆ name

python.pydraw._Loopvar.name

Definition at line 582 of file pydraw.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZj_MiNNLO.ZZj_MiNNLO.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZj_MiNNLO.py:18
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