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