ATLAS Offline Software
TPyStore.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 //
3 // Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4 //
5 #ifndef XAODROOTACCESS_TPYSTORE_H
6 #define XAODROOTACCESS_TPYSTORE_H
7 
8 // Local include(s).
10 
11 // System include(s).
12 #include <string>
13 
14 namespace xAOD {
15 
27 class TPyStore : public TStore {
28 
29  public:
31  using TStore::TStore;
32 
34  bool pyContains(const std::string& key, const std::string& type) const;
36  bool pyIsConst(const std::string& key, const std::string& type) const;
37 
39  StatusCode pyRecord(void* obj, const std::string& key,
40  const std::string& type);
41 
43  void dump() const;
44 
45 }; // class TPyStore
46 
47 } // namespace xAOD
48 
49 #endif // XAODROOTACCESS_TPYSTORE_H
xAOD::TPyStore::dump
void dump() const
Print the contents of the store using a Python friendly function.
Definition: TPyStore.cxx:121
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
xAOD::TPyStore
Python interface to xAOD::TStore.
Definition: TPyStore.h:27
xAOD::TPyStore::pyIsConst
bool pyIsConst(const std::string &key, const std::string &type) const
Function checking if an object with a given key and type is constant.
Definition: TPyStore.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TStore
A relatively simple transient store for objects created in analysis.
Definition: TStore.h:45
xAOD::TPyStore::pyContains
bool pyContains(const std::string &key, const std::string &type) const
Function checking if an object with a given key and type is available.
Definition: TPyStore.cxx:28
python.PyAthena.obj
obj
Definition: PyAthena.py:132
xAOD::TPyStore::pyRecord
StatusCode pyRecord(void *obj, const std::string &key, const std::string &type)
Record an object into the store in a typeless way.
Definition: TPyStore.cxx:103
xAOD::TStore::TStore
TStore()
Default constructor.
Definition: TStore.cxx:24
TStore.h
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37