 |
ATLAS Offline Software
|
Go to the documentation of this file.
17 const ::Long64_t&
entry,
18 std::unique_ptr<THolder> holder)
19 : IObjectManager(std::move(holder)),
20 m_field(std::move(
field)),
50 Error(
"xAOD::RObjectManager::getEntry",
52 "Entry to read must be larger than or equal to 0. entry=%lld"),
virtual void reset() override
Reset the object at the end of processing of an event.
virtual void setObject(void *obj) override
Function replacing the object being handled.
const THolder * holder() const
Accessor to the Holder object.
const void * get() const
Return a typeless const pointer to the held object.
virtual ::Bool_t isSet() const override
Check if the object was set for the current event.
ROOT::RNTupleView< void > m_field
The typeless object taking care of reading the field.
virtual void set(void *obj)
Replace the managed object.
virtual ::Bool_t create() override
Create the object for the current event.
ROOT::RNTupleView< void > & field()
Accessor to the field (non-const)
~RObjectManager()
Destructor.
::Long64_t m_entry
The last entry that was loaded for this field.
virtual ::Int_t getEntry(::Int_t getall=0) override
Function for updating the object in memory if needed.
RObjectManager(ROOT::RNTupleView< void > field, const ::Long64_t &entry, std::unique_ptr< THolder > holder)
Constructor.
::Bool_t m_isSet
Was the object set for the current event?
std::reference_wrapper< const ::Long64_t > m_entryToLoad
Entry number to load next.
virtual const void * object() const override
Function getting a const pointer to the object being handled.