 |
ATLAS Offline Software
|
Go to the documentation of this file.
18 namespace Experimental {
22 m_field( std::move(
field ) ),
24 m_entryToLoad(
entry ), m_entry ( -1 ), m_isSet( kTRUE ), m_renewOnRead( renewOnRead ) {
31 return m_field.GetField().GetFieldName();
61 Error(
"xAOD::RObjectManager::getEntry",
94 return std::as_const(*m_holder).get();
virtual void reset() override
Reset the object at the end of processing of an event.
const THolder * holder() const
Accessor to the Holder object.
virtual void setObject(void *obj) override
Function replacing the object being handled.
This class takes care of holding EDM objects in memory.
RObjectManager(ROOT::RNTupleView< void > field, ::Long64_t &entry, THolder *holder=0, ::Bool_t renewOnRead=kFALSE)
Constructor.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
std::reference_wrapper<::Long64_t > m_entryToLoad
Entry number to load next.
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.
std::unique_ptr< THolder > m_holder
Holder object for the EDM object.
virtual ::Bool_t create() override
Create the object for the current event.
~RObjectManager()
Destructor.
::Bool_t m_renewOnRead
Should the object be recreated on each read?
::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.
::Bool_t m_isSet
Was the object set for the current event?
const std::string & fieldName() const
provide the field name
virtual const void * object() const override
Function getting a const pointer to the object being handled.