ATLAS Offline Software
RPyEvent.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  * Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration.
4  */
13 #ifndef XAODROOTACCESS_RPYEVENT_H
14 #define XAODROOTACCESS_RPYEVENT_H
15 
16 
17 #include "xAODRootAccess/REvent.h"
18 #include "Python.h"
19 
20 
21 namespace xAOD::Experimental {
22 
23 
31 class RPyEvent : public REvent {
32 
33  public:
34  using REvent::REvent;
35 
37  PyObject* pyRetrieve(const std::string& key);
38 
40  bool pyContains(const std::string& key, const std::string& type);
42  bool pyTransientContains(const std::string& key,
43  const std::string& type) const;
44 };
45 
46 
47 } // namespace xAOD::Experimental
48 
49 
50 #endif // not XAODROOTACCESS_RPYEVENT_H
xAOD::Experimental::REvent
Tool for accessing xAOD files outside of Athena, version RNTuple.
Definition: REvent.h:28
xAOD::Experimental::RPyEvent::pyTransientContains
bool pyTransientContains(const std::string &key, const std::string &type) const
Function checking if an object is already in memory.
Definition: RPyEvent.cxx:90
xAOD::Experimental
Definition: REvent.cxx:67
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
REvent.h
xAOD::Experimental::REvent::REvent
REvent()
Default constructor.
Definition: REvent.cxx:73
xAOD::Experimental::RPyEvent::pyRetrieve
PyObject * pyRetrieve(const std::string &key)
Return the object with a given key as a PyObject.
Definition: RPyEvent.cxx:21
xAOD::Experimental::RPyEvent
Python interface to xAOD::REvent.
Definition: RPyEvent.h:31
xAOD::Experimental::RPyEvent::pyContains
bool pyContains(const std::string &key, const std::string &type)
Function checking if an object is available from the store.
Definition: RPyEvent.cxx:66
PyObject
_object PyObject
Definition: IPyComponent.h:26
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37