|
ATLAS Offline Software
|
Go to the documentation of this file.
19 ::Bool_t renewOnRead )
20 : m_branch(
br ), m_holder( holder ), m_entry( -1 ), m_isSet( kTRUE ),
21 m_renewOnRead( renewOnRead ) {
26 m_holder( 0 ), m_entry(
parent.m_entry ),
27 m_isSet(
parent.m_isSet ), m_renewOnRead(
parent.m_renewOnRead ) {
106 Error(
"xAOD::TObjectManager::getEntry",
107 XAOD_MESSAGE(
"Branch=%s is not associated to any tree while reading of branches within this class relies on that"),
125 Error(
"xAOD::TObjectManager::getEntry",
126 XAOD_MESSAGE(
"Entry to read is not set for branch=%s from tree=%s. "
127 "It is either because TTree::LoadTree(entry) was not called "
128 "beforehand in the TEvent class OR "
129 "the entry requested to be read for the main tree is not corresponding to an event for the friend tree" ),
177 return std::as_const(*m_holder).get();
virtual ::Bool_t create() override
Create the object for the current event.
::TBranch * m_branch
Pointer keeping track of the branch.
This class takes care of holding EDM objects in memory.
const void * get() const
Return a typeless const pointer to the held object.
::TBranch ** branchPtr()
Pointer to the branch's pointer.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
~TObjectManager()
Destructor.
Interface class for the "manager classes".
::Long64_t m_entry
The last entry that was loaded for this branch.
TObjectManager & operator=(const TObjectManager &parent)
Assignment operator.
virtual void set(void *obj)
Replace the managed object.
::Bool_t m_isSet
Was the object set for the current event?
::Bool_t m_renewOnRead
Should the object be recreated on each read?
virtual ::Bool_t isSet() const override
Check if the object was set for the current event.
Manager for EDM objects created by ROOT.
virtual ::Int_t getEntry(::Int_t getall=0) override
Function for updating the object in memory if needed.
void renew()
Renew the object in memory.
const THolder * holder() const
Accessor to the Holder object.
virtual void reset() override
Reset the object at the end of processing of an event.
TObjectManager(::TBranch *br=0, THolder *holder=0, ::Bool_t renewOnRead=kFALSE)
Constructor, getting hold of the created objects.
::TBranch * branch()
Accessor to the branch.
virtual void setObject(void *obj) override
Function replacing the object being handled.
virtual const void * object() const override
Function getting a const pointer to the object being handled.
THolder * m_holder
Holder object for the EDM object.