|
ATLAS Offline Software
|
Go to the documentation of this file.
20 : m_branch(
br ), m_holder( holder ), m_entry( -1 ),
21 m_isSet( kTRUE ), m_auxId( auxid ), m_vector( nullptr ) {
27 m_auxId(
parent.m_auxId ), m_vector( nullptr ) {
36 (
size_t ) 0 ).release();
73 (
size_t ) 0 ).release();
107 Error(
"xAOD::TAuxBranchManager::getEntry",
108 XAOD_MESSAGE(
"Branch=%s is not associated to any tree while reading of branches within this class relies on that"),
126 Error(
"xAOD::TAuxBranchManager::getEntry",
127 XAOD_MESSAGE(
"Entry to read is not set for branch=%s from tree=%s. "
128 "It is either because TTree::LoadTree(entry) was not called "
129 "beforehand in the TEvent class OR "
130 "the entry requested to be read for the main tree is not corresponding to an event for the friend tree"),
152 return std::as_const(*m_holder).get();
179 (
size_t ) 0 ).release();
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?
THolder * m_holder
Holder object for the EDM object.
virtual ::Bool_t create() override
Create the object for the current event.
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Manager for auxiliary branches created dynamically.
void setOwner(::Bool_t state=kTRUE)
Set whether the holder should own its object.
This class takes care of holding EDM objects in memory.
const void * get() const
Return a typeless const pointer to the held object.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
virtual ::Bool_t isSet() const override
Check if the object was set for the current event.
Interface class for the "manager classes".
virtual void setObject(void *obj) override
Function replacing the object being handled.
virtual void reset() override
Reset the object at the end of processing of an event.
::Long64_t m_entry
The last entry that was loaded for this branch.
~TAuxBranchManager()
Destructor.
::TBranch * branch()
Accessor to the branch.
TAuxBranchManager(auxid_t auxid, ::TBranch *br=0, THolder *holder=0)
Constructor getting hold of a possible branch.
virtual const void * object() const override
Function getting a const pointer to the object being handled.
virtual void set(void *obj)
Replace the managed object.
SG::auxid_t auxid_t
Definition of the auxiliary ID type.
virtual void * toVector()=0
Return a pointer to the STL vector itself.
std::unique_ptr< IAuxTypeVector > makeVector(SG::auxid_t auxid, size_t size, size_t capacity) const
Construct a new vector to hold an aux item.
auxid_t m_auxId
Auxiliary variable type.
SG::IAuxTypeVector * m_vector
Dummy auxiliary variable for the empty events.
Handle mappings between names and auxid_t.
::TBranch ** branchPtr()
Pointer to the branch's pointer.
::TBranch * m_branch
Pointer keeping track of the branch.
TAuxBranchManager & operator=(const TAuxBranchManager &rhs)
Assignment operator.
const THolder * holder() const
Accessor to the Holder object (constant version)