ATLAS Offline Software
TPyEvent.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 #
3 # Module holding the TPyEvent Python class
4 #
5 
6 # Pull in ROOT:
7 import ROOT
8 
9 
17 class TPyEvent( ROOT.xAOD.TPyEvent ):
18 
19 
20  def __init__( self ):
21 
22  # Forward the call to the base class's constructor:
23  ROOT.xAOD.TPyEvent.__init__( self )
24  return
25 
26 
40  def contains( self, key, type ):
41  # Determine the class name:
42  clname = type.__name__
43  if hasattr( type, "__cpp_name__" ):
44  clname = type.__cpp_name__
45  pass
46  # Call the parent class's function:
47  return super( TPyEvent, self ).contains( key, clname )
48 
49 
64  def transientContains( self, key, type ):
65  # Determine the class name:
66  clname = type.__name__
67  if hasattr( type, "__cpp_name__" ):
68  clname = type.__cpp_name__
69  pass
70  # Call the parent class's function:
71  return super( TPyEvent,
72  self ).transientContains( key, clname )
73 
74 
91  def record( self, obj, key, basketSize = 32000, splitLevel = 0 ):
92  # Determine the class name:
93  clname = obj.__class__.__name__
94  if hasattr( obj.__class__, "__cpp_name__" ):
95  clname = obj.__class__.__cpp_name__
96  pass
97  # Call the parent class's function:
98  return super( TPyEvent, self ).record( 0, obj, key, clname, basketSize,
99  splitLevel )
python.TPyEvent.TPyEvent.__init__
def __init__(self)
Constructor for the class.
Definition: TPyEvent.py:20
python.TPyEvent.TPyEvent.transientContains
def transientContains(self, key, type)
Convenient version of the base class's transientContains function.
Definition: TPyEvent.py:64
python.TPyEvent.TPyEvent.contains
def contains(self, key, type)
Convenient version of the base class's contains function.
Definition: TPyEvent.py:40
python.TPyEvent.TPyEvent
A Python wrapper around xAOD::TPyEvent.
Definition: TPyEvent.py:17
python.TPyEvent.TPyEvent.record
def record(self, obj, key, basketSize=32000, splitLevel=0)
Convenient version of the base class's record function.
Definition: TPyEvent.py:91