ATLAS Offline Software
TPyStore.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 TPyStore Python class
4 #
5 
6 # Pull in ROOT:
7 import ROOT
8 
9 
17 class TPyStore( ROOT.xAOD.TPyStore ):
18 
19 
20  def __init__( self ):
21 
22  # Forward the call to the base class's constructor:
23  ROOT.xAOD.TPyStore.__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( TPyStore, self ).contains( key, clname )
48 
49 
63  def isConst( self, key, type ):
64  # Determine the class name:
65  clname = type.__name__
66  if hasattr( type, "__cpp_name__" ):
67  clname = type.__cpp_name__
68  pass
69  # Call the parent class's function:
70  return super( TPyStore, self ).isConst( key, clname )
71 
72 
87  def record( self, obj, key ):
88  # Determine the class name:
89  clname = obj.__class__.__name__
90  if hasattr( obj.__class__, "__cpp_name__" ):
91  clname = obj.__class__.__cpp_name__
92  pass
93  # Call the parent class's function:
94  print("Recording",key,clname)
95  return super( TPyStore, self ).record( obj, key, clname )
python.TPyStore.TPyStore.contains
def contains(self, key, type)
Convenient version of the base class's contains function.
Definition: TPyStore.py:40
python.TPyStore.TPyStore
A Python wrapper around xAOD::TPyStore.
Definition: TPyStore.py:17
python.TPyStore.TPyStore.__init__
def __init__(self)
Constructor for the class.
Definition: TPyStore.py:20
python.TPyStore.TPyStore.record
def record(self, obj, key)
Convenient version of the base class's record function.
Definition: TPyStore.py:87
dbg::print
void print(std::FILE *stream, std::format_string< Args... > fmt, Args &&... args)
Definition: SGImplSvc.cxx:70
python.TPyStore.TPyStore.isConst
def isConst(self, key, type)
Convenient version of the base class's isConst function.
Definition: TPyStore.py:63