ATLAS Offline Software
Loading...
Searching...
No Matches
ROutObjManager.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAODROOTACCESS_TOOLS_ROUTOBJMANAGER_H
8#define XAODROOTACCESS_TOOLS_ROUTOBJMANAGER_H
9
10// Local include(s):
12
13// Forward declaration(s):
14
15namespace xAOD::Experimental {
16
17
28
29public:
31 ROutObjManager( std::string_view key, std::unique_ptr<THolder> holder );
32
35
36 // provide field name
37 const std::string& key();
38
40 virtual ::Int_t getEntry( ::Int_t getall = 0 ) override;
41
43 virtual const void* object() const override;
45 virtual void* object() override;
47 virtual void setObject( void* obj ) override;
48
50 virtual ::Bool_t create() override;
52 virtual ::Bool_t isSet() const override;
54 virtual void reset() override;
55
56private:
58 std::string m_key;
60 ::Bool_t m_isSet;
61
62}; // class ROutObjManager
63
64} // namespace xAOD::Experimental
65
66#endif // XAODROOTACCESS_TOOLS_ROUTOBJMANAGER_H
Manager for EDM objects created by ROOT.
const THolder * holder() const
Accessor to the Holder object.
::Bool_t m_isSet
Was the object set for the current event?
virtual void setObject(void *obj) override
Function replacing the object being handled.
virtual::Bool_t isSet() const override
Check if the object was set for the current event.
ROutObjManager(std::string_view key, std::unique_ptr< THolder > holder)
Constructor, getting hold of the created objects.
virtual const void * object() const override
Function getting a const pointer to the object being handled.
virtual::Bool_t create() override
Create the object for the current event.
virtual void reset() override
Reset the object at the end of processing of an event.
virtual::Int_t getEntry(::Int_t getall=0) override
Function for updating the object in memory if needed.
std::string m_key
The name of the (SG) key.