7#ifndef XAODROOTACCESS_TOOLS_ROUTOBJMANAGER_H
8#define XAODROOTACCESS_TOOLS_ROUTOBJMANAGER_H
37 const std::string&
key();
40 virtual ::Int_t
getEntry( ::Int_t getall = 0 )
override;
43 virtual const void*
object()
const override;
45 virtual void*
object()
override;
47 virtual void setObject(
void* obj )
override;
50 virtual ::Bool_t
create()
override;
52 virtual ::Bool_t
isSet()
const override;
54 virtual void reset()
override;
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.
const std::string & key()
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.
~ROutObjManager()
Destructor.
std::string m_key
The name of the (SG) key.