ATLAS Offline Software
|
#include <RootBranchAddress.h>
Public Member Functions | |
RootBranchAddress () | |
Default constructor: More... | |
RootBranchAddress (const RootBranchAddress &rhs) | |
Copy constructor: More... | |
RootBranchAddress & | operator= (const RootBranchAddress &rhs) |
Assignment operator: More... | |
RootBranchAddress (long svc, const CLID &clid, const std::string &p1="", const std::string &p2="", unsigned long ip1=0, unsigned long ip2=0) | |
Constructor with parameters: More... | |
virtual | ~RootBranchAddress () |
Destructor: More... | |
void | setBranchAddress (const RootType &t) |
setup the ROOT TTree internal address for the branch. More... | |
TTree * | ttree () |
the TTree whose branch we proxy More... | |
Public Attributes | |
RootType | m_type |
the buffer for the TBranch More... | |
void * | m_ptr |
TBranch * | m_branch |
the branch we are connected to. More... | |
A simple class to hold the buffer of a TBranch
from a TTree
Definition at line 31 of file RootBranchAddress.h.
Athena::RootBranchAddress::RootBranchAddress | ( | ) |
Default constructor:
Definition at line 36 of file RootBranchAddress.cxx.
Athena::RootBranchAddress::RootBranchAddress | ( | const RootBranchAddress & | rhs | ) |
Copy constructor:
Definition at line 43 of file RootBranchAddress.cxx.
|
virtual |
Destructor:
Definition at line 77 of file RootBranchAddress.cxx.
RootBranchAddress & Athena::RootBranchAddress::operator= | ( | const RootBranchAddress & | rhs | ) |
Assignment operator:
Definition at line 51 of file RootBranchAddress.cxx.
setup the ROOT TTree
internal address for the branch.
as a side-effect, this will load the data from the tree for this branch and entry.
t | additional RootType hint (we check the consistency) FIXME: should the TBranch::GetEntry be lifted into its own method ? for the moment, that doesn't seem necessary, as setBranchAddress is only used in one place (LeafCnv) where the intent is to load the data anyway... |
Definition at line 93 of file RootBranchAddress.cxx.
TTree * Athena::RootBranchAddress::ttree | ( | ) |
the TTree
whose branch we proxy
Definition at line 218 of file RootBranchAddress.cxx.
TBranch* Athena::RootBranchAddress::m_branch |
the branch we are connected to.
Definition at line 92 of file RootBranchAddress.h.
void* Athena::RootBranchAddress::m_ptr |
Definition at line 89 of file RootBranchAddress.h.
RootType Athena::RootBranchAddress::m_type |
the buffer for the TBranch
Definition at line 88 of file RootBranchAddress.h.