Loading [MathJax]/extensions/tex2jax.js
◆ __mapbase_contains__()
def GaudiPython.Pythonizations.__mapbase_contains__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
Check if the certainkey is in the map
>>> m = ... ## the map
>>> if 'a' in m : ... ## chekc the presence of the key in the map
Definition at line 381 of file Pythonizations.py.
383 Check if the certainkey is in the map
385 >>> m = ... ## the map
386 >>> if 'a' in m : ... ## chekc the presence of the key in the map
389 _num = self.count(key)
390 return False if 0 == _num
else True
◆ __mapbase_delitem__()
def GaudiPython.Pythonizations.__mapbase_delitem__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
'Del-item' for MapBase-based maps:
>>> m = ... ## the map
>>> del m[key]
Definition at line 518 of file Pythonizations.py.
520 'Del-item' for MapBase-based maps:
522 >>> m = ... ## the map
526 _erased =
True if key
in self
else False
531 gbl.Gaudi.Utils.MapBase.__len__ =
lambda s: s.size()
532 gbl.Gaudi.Utils.MapBase.__iter__ = __mapbase_iter__
533 gbl.Gaudi.Utils.MapBase.keys = __mapbase_keys__
534 gbl.Gaudi.Utils.MapBase.__iteritems__ = __mapbase_iteritems__
535 gbl.Gaudi.Utils.MapBase.values = __mapbase_values__
536 gbl.Gaudi.Utils.MapBase.__contains__ = __mapbase_contains__
537 gbl.Gaudi.Utils.MapBase.get = __mapbase_get__
538 gbl.Gaudi.Utils.MapBase.__str__ = __mapbase_str__
539 gbl.Gaudi.Utils.MapBase.__repr__ = __mapbase_str__
540 gbl.Gaudi.Utils.MapBase.__setitem__ = __mapbase_setitem__
541 gbl.Gaudi.Utils.MapBase.__delitem__ = __mapbase_delitem__
542 gbl.Gaudi.Utils.MapBase.__getitem__ =
lambda s, key: s.at(key)
◆ __mapbase_get__()
def GaudiPython.Pythonizations.__mapbase_get__ |
( |
|
self, |
|
|
|
key, |
|
|
|
value = None |
|
) |
| |
Get the value for the certain key, or 'value' otherwise
>>> m = ... ## the map
>>> v = m.get ( key , 15 )
Definition at line 414 of file Pythonizations.py.
416 Get the value for the certain key, or 'value' otherwise
418 >>> m = ... ## the map
419 >>> v = m.get ( key , 15 )
◆ __mapbase_items__()
def GaudiPython.Pythonizations.__mapbase_items__ |
( |
|
self | ) |
|
Get the list of items
>>> m = ... ## the map
>>> items = m.keys() ## get the list of items
Definition at line 308 of file Pythonizations.py.
310 Get the list of items
312 >>> m = ... ## the map
313 >>> items = m.keys() ## get the list of items
318 for i
in range(0, _size):
319 _key = self.key_at(i)
320 _value = self.at(_key)
321 _items.append((_key, _value))
◆ __mapbase_iter__()
def GaudiPython.Pythonizations.__mapbase_iter__ |
( |
|
self | ) |
|
The iterator for MapBase-based containers
>>> m = ... ## the map
>>> for key in m : print(key , m[key])
Definition at line 199 of file Pythonizations.py.
201 The iterator for MapBase-based containers
203 >>> m = ... ## the map
204 >>> for key in m : print(key , m[key])
209 while _index < _size:
210 yield self.key_at(_index)
◆ __mapbase_iteritems__()
def GaudiPython.Pythonizations.__mapbase_iteritems__ |
( |
|
self | ) |
|
The iterator for MapBase-based containers
>>> m = ... ## the map
>>> for key,value in m.iteritems() : print(key, value)
Definition at line 237 of file Pythonizations.py.
239 The iterator for MapBase-based containers
241 >>> m = ... ## the map
242 >>> for key,value in m.iteritems() : print(key, value)
247 while _index < _size:
248 _key = self.key_at(_index)
249 yield (_key, self.at(_key))
◆ __mapbase_keys__()
def GaudiPython.Pythonizations.__mapbase_keys__ |
( |
|
self | ) |
|
Get the list of keys
>>> m = ... ## the map
>>> keys = m.keys() ## get the list of keys
Definition at line 273 of file Pythonizations.py.
277 >>> m = ... ## the map
278 >>> keys = m.keys() ## get the list of keys
283 for i
in range(0, _size):
284 _keys.append(self.key_at(i))
◆ __mapbase_setitem__()
def GaudiPython.Pythonizations.__mapbase_setitem__ |
( |
|
self, |
|
|
|
key, |
|
|
|
value |
|
) |
| |
'Set-item' for MapBase-based maps:
>>> m = ... ## the map
>>> m[key] = value ## set the item
Definition at line 484 of file Pythonizations.py.
486 'Set-item' for MapBase-based maps:
488 >>> m = ... ## the map
489 >>> m[key] = value ## set the item
492 _replaced =
True if key
in self
else False
493 self.update(key, value)
◆ __mapbase_str__()
def GaudiPython.Pythonizations.__mapbase_str__ |
( |
|
self | ) |
|
Representation of MapBase-based maps:
>>> m = ... ## the map
>>> print(map)
Definition at line 444 of file Pythonizations.py.
446 Representation of MapBase-based maps:
448 >>> m = ... ## the map
454 for i
in range(0, _size):
455 _key = self.key_at(i)
459 _result +=
" %s : %s " % (str(_key), str(_val))
◆ __mapbase_values__()
def GaudiPython.Pythonizations.__mapbase_values__ |
( |
|
self | ) |
|
Get the list of values
>>> m = ... ## the map
>>> values = m.values() ## get the list of values
Definition at line 345 of file Pythonizations.py.
347 Get the list of values
349 >>> m = ... ## the map
350 >>> values = m.values() ## get the list of values
355 for i
in range(0, _size):
356 _value = self.value_at(i)
357 _values.append(_value)
◆ _container__getitem__()
def GaudiPython.Pythonizations._container__getitem__ |
( |
|
self, |
|
|
|
k |
|
) |
| |
|
private |
◆ _container__iter__()
def GaudiPython.Pythonizations._container__iter__ |
( |
|
self | ) |
|
|
private |
Definition at line 98 of file Pythonizations.py.
99 if hasattr(self,
"containedObjects"):
100 sequential = self.containedObjects()
104 limit = self.__len__()
106 yield sequential.__getitem__(count)
◆ _container__len__()
def GaudiPython.Pythonizations._container__len__ |
( |
|
self | ) |
|
|
private |
◆ _contentsHisto1D()
def GaudiPython.Pythonizations._contentsHisto1D |
( |
|
h | ) |
|
|
private |
◆ _draw_aida_()
def GaudiPython.Pythonizations._draw_aida_ |
( |
|
self, |
|
|
* |
args |
|
) |
| |
|
private |
Draw AIDA histogram (through access to internal ROOT histogram
>>> aida = ... # get the historgam
>>> aida.Draw()
Definition at line 110 of file Pythonizations.py.
112 Draw AIDA histogram (through access to internal ROOT histogram
114 >>> aida = ... # get the historgam
118 _fun = gbl.Gaudi.Utils.Aida2ROOT.aida2root
120 return _root.Draw(*args)
123 gbl.AIDA.IHistogram1D.__str__ = _printHisto1D
124 gbl.AIDA.IHistogram1D.contents = _contentsHisto1D
125 gbl.AIDA.IHistogram2D.__str__ = _printHisto2D
◆ _printBitReference()
def GaudiPython.Pythonizations._printBitReference |
( |
|
b | ) |
|
|
private |
◆ _printFillStream()
def GaudiPython.Pythonizations._printFillStream |
( |
|
o | ) |
|
|
private |
Definition at line 76 of file Pythonizations.py.
78 s = gbl.stringstream()
82 out = o.__class__.__name__ +
" object"
83 if hasattr(o,
"hasKey")
and o.hasKey():
84 out +=
" key = " + str(o.key())
86 out = o.__class__.__name__ +
" NULL object"
◆ _printHisto1D()
def GaudiPython.Pythonizations._printHisto1D |
( |
|
h | ) |
|
|
private |
Definition at line 37 of file Pythonizations.py.
39 return 'Histogram 1D "%s" %d bins [%f,%f]' % (
◆ _printHisto2D()
def GaudiPython.Pythonizations._printHisto2D |
( |
|
h | ) |
|
|
private |
Definition at line 52 of file Pythonizations.py.
53 x, y = h.xAxis(), h.yAxis()
54 return 'Histogram 2D "%s" %d xbins [%f,%f], %d ybins [%f,%f]' % (
◆ _printStatusCode()
def GaudiPython.Pythonizations._printStatusCode |
( |
|
s | ) |
|
|
private |
◆ __all__
GaudiPython.Pythonizations.__all__ |
|
private |
◆ __getitem__
GaudiPython.Pythonizations.__getitem__ |
|
private |
◆ __iter__
GaudiPython.Pythonizations.__iter__ |
|
private |
◆ __len__
GaudiPython.Pythonizations.__len__ |
|
private |
◆ __repr__
GaudiPython.Pythonizations.__repr__ |
|
private |
◆ _eq
GaudiPython.Pythonizations._eq |
|
private |
◆ _execute_orig
GaudiPython.Pythonizations._execute_orig |
|
private |
◆ _ne
GaudiPython.Pythonizations._ne |
|
private |
◆ ctx
GaudiPython.Pythonizations.ctx |
◆ Draw
GaudiPython.Pythonizations.Draw |
◆ execute
GaudiPython.Pythonizations.execute |
◆ executeEvent
GaudiPython.Pythonizations.executeEvent |
Helpers for re-entrant interfaces.
GaudiPython is inherently single threaded and it's unpractical to use the new re-entrant interfaces. Moreover a lot of existing code (like GaudiMP) expects the old signatures.
Definition at line 584 of file Pythonizations.py.
◆ FAILURE
GaudiPython.Pythonizations.FAILURE |
◆ filterPassed
GaudiPython.Pythonizations.filterPassed |
◆ has_key
GaudiPython.Pythonizations.has_key |
◆ invalidate
GaudiPython.Pythonizations.invalidate |
◆ isExecuted
GaudiPython.Pythonizations.isExecuted |
◆ items
GaudiPython.Pythonizations.items |
◆ iteritems
GaudiPython.Pythonizations.iteritems |
◆ plot
GaudiPython.Pythonizations.plot |
◆ self
GaudiPython.Pythonizations.self |
◆ SUCCESS
GaudiPython.Pythonizations.SUCCESS |
◆ update
GaudiPython.Pythonizations.update |
def __mapbase_keys__(self)
def _printBitReference(b)
struct GAUDI_API map
Parametrisation class for map-like implementation.
def _draw_aida_(self, *args)
def __mapbase_iter__(self)
def __mapbase_items__(self)
def _container__getitem__(self, k)
def __mapbase_str__(self)
def __mapbase_values__(self)
def __mapbase_setitem__(self, key, value)
def __mapbase_delitem__(self, key)
def __mapbase_iteritems__(self)
def __mapbase_get__(self, key, value=None)
def __mapbase_contains__(self, key)
def _container__len__(self)
decltype(auto) range(Args &&... args)
Zips multiple containers together to form a single range.
def _container__iter__(self)