ATLAS Offline Software
Loading...
Searching...
No Matches
TPyStore.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 TPyStore Python class
4#
5
6# Pull in ROOT:
7import ROOT
8
9
17class 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 ).pyContains( 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 ).pyIsConst( 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 ).pyRecord( obj, key, clname )
void print(char *figname, TCanvas *c1)
A Python wrapper around xAOD.TPyStore.
Definition TPyStore.py:17
__init__(self)
Constructor for the class.
Definition TPyStore.py:20
contains(self, key, type)
Convenient version of the base class's contains function.
Definition TPyStore.py:40
isConst(self, key, type)
Convenient version of the base class's isConst function.
Definition TPyStore.py:63
record(self, obj, key)
Convenient version of the base class's record function.
Definition TPyStore.py:87