ATLAS Offline Software
Loading...
Searching...
No Matches
TPyEvent.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_TPYEVENT_H
6#define XAODROOTACCESS_TPYEVENT_H
7
8// Local include(s).
10
11// Python include(s).
12#include <Python.h>
13
14// System include(s).
15#include <string>
16
17namespace xAOD {
18
29class TPyEvent : public TEvent {
30
31 public:
38
40 PyObject* pyRetrieve(const std::string& key);
41
43 bool pyContains(const std::string& key, const std::string& type);
45 bool pyTransientContains(const std::string& key,
46 const std::string& type) const;
47
49 StatusCode pyRecord(void* obj, const std::string& key,
50 const std::string& type);
51
52}; // class TPyEvent
53
54} // namespace xAOD
55
56#endif // XAODROOTACCESS_TPYEVENT_H
_object PyObject
@ kClassAccess
Access auxiliary data using the aux containers.
TEvent(EAuxMode mode=kClassAccess)
Default constructor.
bool pyContains(const std::string &key, const std::string &type)
Function checking if an object is available from the store.
Definition TPyEvent.cxx:64
StatusCode pyRecord(void *obj, const std::string &key, const std::string &type)
Add an output object to the event.
Definition TPyEvent.cxx:123
bool pyTransientContains(const std::string &key, const std::string &type) const
Function checking if an object is already in memory.
Definition TPyEvent.cxx:87
PyObject * pyRetrieve(const std::string &key)
Return the object with a given key as a PyObject.
Definition TPyEvent.cxx:20
TPyEvent(EAuxMode mode=kClassAccess)
Constructor with an access mode.
Definition TPyEvent.cxx:18
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.