ATLAS Offline Software
RPyEvent.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 #
3 # Module holding the RPyEvent Python class
4 #
5 
6 # Pull in ROOT:
7 import ROOT
8 
9 
15 class RPyEvent( ROOT.xAOD.Experimental.RPyEvent ):
16 
17 
18  def __init__( self ):
19 
20  # Forward the call to the base class's constructor:
21  ROOT.xAOD.Experimental.RPyEvent.__init__( self )
22  return
23 
24 
25  def __getitem__( self, key ):
26  return self.pyRetrieve( key )
27 
28 
42  def contains( self, key, type ):
43  # Determine the class name:
44  clname = type.__name__
45  if hasattr( type, "__cpp_name__" ):
46  clname = type.__cpp_name__
47  pass
48  # Call the parent class's function:
49  return super( RPyEvent, self ).pyContains( key, clname )
50 
51 
66  def transientContains( self, key, type ):
67  # Determine the class name:
68  clname = type.__name__
69  if hasattr( type, "__cpp_name__" ):
70  clname = type.__cpp_name__
71  pass
72  # Call the parent class's function:
73  return super( RPyEvent,
74  self ).pyTransientContains( key, clname )
75 
python.RPyEvent.RPyEvent.__getitem__
def __getitem__(self, key)
Convenient shorthand for retrieving an object.
Definition: RPyEvent.py:25
python.RPyEvent.RPyEvent.transientContains
def transientContains(self, key, type)
Convenient version of the base class's transientContains function.
Definition: RPyEvent.py:66
python.RPyEvent.RPyEvent.__init__
def __init__(self)
Constructor for the class.
Definition: RPyEvent.py:18
python.RPyEvent.RPyEvent.contains
def contains(self, key, type)
Convenient version of the base class's contains function.
Definition: RPyEvent.py:42
python.RPyEvent.RPyEvent
A Python wrapper around xAOD::RPyEvent.
Definition: RPyEvent.py:15