ATLAS Offline Software
|
Manager for primitive auxiliary branches created dynamically. More...
#include <TPrimitiveAuxBranchManager.h>
Public Types | |
typedef SG::auxid_t | auxid_t |
Definition of the auxiliary ID type. More... | |
Public Member Functions | |
TPrimitiveAuxBranchManager (auxid_t auxid, ::TBranch *br=0, THolder *holder=0) | |
Constructor getting hold of a possible branch. More... | |
TPrimitiveAuxBranchManager (const TPrimitiveAuxBranchManager &parent) | |
Copy constructor. More... | |
~TPrimitiveAuxBranchManager () | |
Destructor. More... | |
TPrimitiveAuxBranchManager & | operator= (const TPrimitiveAuxBranchManager &rhs) |
Assignment operator. More... | |
::TBranch * | branch () |
Accessor to the branch. More... | |
::TBranch ** | branchPtr () |
Pointer to the branch's pointer. More... | |
const THolder * | holder () const |
Accessor to the Holder object (constant version) More... | |
THolder * | holder () |
Accessor to the Holder object. More... | |
virtual ::Int_t | getEntry (::Int_t getall=0) override |
Function for updating the object in memory if needed. More... | |
virtual const void * | object () const override |
Function getting a const pointer to the object being handled. More... | |
virtual void * | object () override |
Function getting a pointer to the object being handled. More... | |
virtual void | setObject (void *obj) override |
Function replacing the object being handled. More... | |
virtual ::Bool_t | create () override |
Create the object for the current event. More... | |
virtual ::Bool_t | isSet () const override |
Check if the object was set for the current event. More... | |
virtual void | reset () override |
Reset the object at the end of processing of an event. More... | |
Private Attributes | |
::TBranch * | m_branch |
Pointer keeping track of the branch. More... | |
THolder * | m_holder |
Holder object for the EDM object. More... | |
::Long64_t | m_entry |
The last entry that was loaded for this branch. More... | |
::Bool_t | m_isSet |
Was the variable set for the current event? More... | |
auxid_t | m_auxId |
Auxiliary variable type. More... | |
SG::IAuxTypeVector * | m_vector |
Dummy auxiliary variable for the empty events. More... | |
Manager for primitive auxiliary branches created dynamically.
One has to treat std::vector<T> and primitive auxiliary branches differently, because TTree handles these things very differently. This class manages auxiliary branches created from primitive variables.
Definition at line 35 of file TPrimitiveAuxBranchManager.h.
Definition of the auxiliary ID type.
Definition at line 39 of file TPrimitiveAuxBranchManager.h.
xAOD::TPrimitiveAuxBranchManager::TPrimitiveAuxBranchManager | ( | const TPrimitiveAuxBranchManager & | parent | ) |
Copy constructor.
Definition at line 28 of file TPrimitiveAuxBranchManager.cxx.
xAOD::TPrimitiveAuxBranchManager::~TPrimitiveAuxBranchManager | ( | ) |
TBranch * xAOD::TPrimitiveAuxBranchManager::branch | ( | ) |
Accessor to the branch.
Definition at line 84 of file TPrimitiveAuxBranchManager.cxx.
TBranch ** xAOD::TPrimitiveAuxBranchManager::branchPtr | ( | ) |
Pointer to the branch's pointer.
Definition at line 89 of file TPrimitiveAuxBranchManager.cxx.
|
overridevirtual |
Create the object for the current event.
Implements xAOD::TVirtualManager.
Definition at line 177 of file TPrimitiveAuxBranchManager.cxx.
|
overridevirtual |
Function for updating the object in memory if needed.
Implements xAOD::TVirtualManager.
Definition at line 104 of file TPrimitiveAuxBranchManager.cxx.
THolder * xAOD::TPrimitiveAuxBranchManager::holder | ( | ) |
Accessor to the Holder object.
Definition at line 99 of file TPrimitiveAuxBranchManager.cxx.
Accessor to the Holder object (constant version)
Definition at line 94 of file TPrimitiveAuxBranchManager.cxx.
|
overridevirtual |
Check if the object was set for the current event.
Implements xAOD::TVirtualManager.
Definition at line 199 of file TPrimitiveAuxBranchManager.cxx.
|
overridevirtual |
Function getting a const pointer to the object being handled.
Implements xAOD::TVirtualManager.
Definition at line 152 of file TPrimitiveAuxBranchManager.cxx.
|
overridevirtual |
Function getting a pointer to the object being handled.
Implements xAOD::TVirtualManager.
Definition at line 157 of file TPrimitiveAuxBranchManager.cxx.
TPrimitiveAuxBranchManager & xAOD::TPrimitiveAuxBranchManager::operator= | ( | const TPrimitiveAuxBranchManager & | rhs | ) |
Assignment operator.
Definition at line 54 of file TPrimitiveAuxBranchManager.cxx.
|
overridevirtual |
Reset the object at the end of processing of an event.
Implements xAOD::TVirtualManager.
Definition at line 204 of file TPrimitiveAuxBranchManager.cxx.
|
overridevirtual |
Function replacing the object being handled.
Implements xAOD::TVirtualManager.
Definition at line 162 of file TPrimitiveAuxBranchManager.cxx.
|
private |
Auxiliary variable type.
Definition at line 91 of file TPrimitiveAuxBranchManager.h.
|
private |
Pointer keeping track of the branch.
Definition at line 82 of file TPrimitiveAuxBranchManager.h.
|
private |
The last entry that was loaded for this branch.
Definition at line 86 of file TPrimitiveAuxBranchManager.h.
|
private |
Holder object for the EDM object.
Definition at line 84 of file TPrimitiveAuxBranchManager.h.
|
private |
Was the variable set for the current event?
Definition at line 88 of file TPrimitiveAuxBranchManager.h.
|
private |
Dummy auxiliary variable for the empty events.
Definition at line 93 of file TPrimitiveAuxBranchManager.h.