ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
PyAlgorithmExample.Z Class Reference
Inheritance diagram for PyAlgorithmExample.Z:
Collaboration diagram for PyAlgorithmExample.Z:

Public Member Functions

def __init__ (self, l1, l2, pdgid=PDG.Z0)
 
def dr (self)
 
def add (self, *plist)
 
def __len__ (self)
 
def __getitem__ (self, key)
 
def __iter__ (self)
 
def __contains__ (self, item)
 
def append (self, x)
 
def extend (self, x)
 
def count (self, x)
 
def index (self, x, i=0, j=999999999)
 

Private Attributes

 __l
 

Detailed Description

Definition at line 202 of file PyAlgorithmExample.py.

Constructor & Destructor Documentation

◆ __init__()

def PyAlgorithmExample.Z.__init__ (   self,
  l1,
  l2,
  pdgid = PDG.Z0 
)

Reimplemented from PyAlgorithmExample.PyCompositeParticle.

Definition at line 203 of file PyAlgorithmExample.py.

203  def __init__ (self, l1, l2, pdgid=PDG.Z0):
204  PyCompositeParticle.__init__ (self, pdgid, 0, [l1, l2])
205  return

Member Function Documentation

◆ __contains__()

def PyAlgorithmExample.PyCompositeParticle.__contains__ (   self,
  item 
)
inherited

Definition at line 185 of file PyAlgorithmExample.py.

185  def __contains__ (self, item):
186  return item in self.__l

◆ __getitem__()

def PyAlgorithmExample.PyCompositeParticle.__getitem__ (   self,
  key 
)
inherited

Definition at line 181 of file PyAlgorithmExample.py.

181  def __getitem__ (self, key):
182  return self.__l[key]

◆ __iter__()

def PyAlgorithmExample.PyCompositeParticle.__iter__ (   self)
inherited

Definition at line 183 of file PyAlgorithmExample.py.

183  def __iter__ (self):
184  return xxx # Not done yet.

◆ __len__()

def PyAlgorithmExample.PyCompositeParticle.__len__ (   self)
inherited

Definition at line 179 of file PyAlgorithmExample.py.

179  def __len__ (self):
180  return len (self.__l)

◆ add()

def PyAlgorithmExample.PyCompositeParticle.add (   self,
plist 
)
inherited

Definition at line 174 of file PyAlgorithmExample.py.

174  def add (self, *plist):
175  for p in plist:
176  g.CompositeParticle.add (self, p)
177  self.__l += plist
178  return

◆ append()

def PyAlgorithmExample.PyCompositeParticle.append (   self,
  x 
)
inherited

Definition at line 187 of file PyAlgorithmExample.py.

187  def append (self, x):
188  return self.add (x)

◆ count()

def PyAlgorithmExample.PyCompositeParticle.count (   self,
  x 
)
inherited

Definition at line 193 of file PyAlgorithmExample.py.

193  def count (self, x):
194  return self.__l.count (x)

◆ dr()

def PyAlgorithmExample.Z.dr (   self)

Definition at line 206 of file PyAlgorithmExample.py.

206  def dr (self):
207  return self[0].hlv().deltaR (self[1].hlv())
208 
209 
210 
211 #
212 # Define histograms for electrons.
213 # This is based on the generic Parthists set of histograms,
214 # and adds additional ones specifically for electrons.
215 #

◆ extend()

def PyAlgorithmExample.PyCompositeParticle.extend (   self,
  x 
)
inherited

Definition at line 189 of file PyAlgorithmExample.py.

189  def extend (self, x):
190  for p in x:
191  self.add (p)
192  return

◆ index()

def PyAlgorithmExample.PyCompositeParticle.index (   self,
  x,
  i = 0,
  j = 999999999 
)
inherited

Definition at line 195 of file PyAlgorithmExample.py.

195  def index (self, x, i=0, j=999999999):
196  return self.__l.ndex (i, j)
197 
198 
199 #
200 # A Z-like composite particle.
201 #

Member Data Documentation

◆ __l

PyAlgorithmExample.PyCompositeParticle.__l
privateinherited

Definition at line 169 of file PyAlgorithmExample.py.


The documentation for this class was generated from the following file:
python.Bindings.__iter__
__iter__
Definition: Control/AthenaPython/python/Bindings.py:783
python.TurnDataReader.dr
dr
Definition: TurnDataReader.py:112
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
add
bool add(const std::string &hname, TKey *tobj)
Definition: fastadd.cxx:55
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
DeMoScan.index
string index
Definition: DeMoScan.py:362
python.Bindings.__getitem__
__getitem__
Definition: Control/AthenaPython/python/Bindings.py:771
python.Bindings.__contains__
__contains__
Definition: Control/AthenaPython/python/Bindings.py:757