|
| | __init__ (self, l1, l2, pdgid=PDG.Z0) |
| | dr (self) |
| | add (self, *plist) |
| | __len__ (self) |
| | __getitem__ (self, key) |
| | __iter__ (self) |
| | __contains__ (self, item) |
| | append (self, x) |
| | extend (self, x) |
| | count (self, x) |
| | index (self, x, i=0, j=999999999) |
Definition at line 202 of file PyAlgorithmExample.py.
◆ __init__()
| PyAlgorithmExample.Z.__init__ |
( |
| self, |
|
|
| l1, |
|
|
| l2, |
|
|
| pdgid = PDG.Z0 ) |
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
◆ __contains__()
| PyAlgorithmExample.PyCompositeParticle.__contains__ |
( |
| self, |
|
|
| item ) |
|
inherited |
◆ __getitem__()
| PyAlgorithmExample.PyCompositeParticle.__getitem__ |
( |
| self, |
|
|
| key ) |
|
inherited |
◆ __iter__()
| PyAlgorithmExample.PyCompositeParticle.__iter__ |
( |
| self | ) |
|
|
inherited |
◆ __len__()
| PyAlgorithmExample.PyCompositeParticle.__len__ |
( |
| self | ) |
|
|
inherited |
◆ add()
| 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
bool add(const std::string &hname, TKey *tobj)
◆ append()
| PyAlgorithmExample.PyCompositeParticle.append |
( |
| self, |
|
|
| x ) |
|
inherited |
◆ count()
| PyAlgorithmExample.PyCompositeParticle.count |
( |
| self, |
|
|
| x ) |
|
inherited |
Definition at line 193 of file PyAlgorithmExample.py.
194 return self.__l.count (x)
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
◆ dr()
| 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
213
214
215
◆ extend()
| 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()
| 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
201
◆ __l
| PyAlgorithmExample.PyCompositeParticle.__l = [] |
|
privateinherited |
The documentation for this class was generated from the following file: