1 #ifndef PandaTree_Interface_TreeEntry_h 2 #define PandaTree_Interface_TreeEntry_h 4 #include "ReaderObject.h" 33 Int_t
getEntry(UInt_t, Long64_t entry, Bool_t localEntry = kFALSE)
final;
34 Int_t
fill(TTree&)
final;
36 char const*
getName() const final {
return ""; }
44 virtual void doSetAddress_(TTree& tree,
utils::BranchList const&, Bool_t setStatus) = 0;
46 virtual void doGetEntry_(TTree&) = 0;
47 virtual void doInit_() = 0;
48 virtual void doUnlink_(TTree&) = 0;
void unlink(TTree &) final
Unlink from a tree.
Definition: TreeEntry.cc:107
Int_t getEntry(TTree &tree, Long64_t entry, Bool_t localEntry=kFALSE) final
Read an entry from an input tree.
Definition: ReaderObject.cc:21
void setStatus(TTree &, utils::BranchList const &blist) final
Set status of branches to true (matching branch) or false (vetoed branch)
Definition: TreeEntry.cc:5
void init() final
Reset the object state.
Definition: TreeEntry.cc:62
std::vector< Object * > objects_
list of object branches (containers and singlets)
Definition: TreeEntry.h:50
Int_t fill(TTree &) final
Fill a tree.
Definition: TreeEntry.cc:98
List of branch names.
Definition: IOUtils.h:64
void setName(char const *) final
Set object name.
Definition: TreeEntry.h:37
Int_t getEntry(UInt_t, Long64_t entry, Bool_t localEntry=kFALSE) final
Read an entry from an input tree.
Definition: TreeEntry.cc:71
utils::BranchList getBranchNames(Bool_t=kTRUE, Bool_t direct=kFALSE) const final
Get the full list of branch names.
Definition: TreeEntry.cc:27
char const * getName() const final
Name of this object.
Definition: TreeEntry.h:36
std::vector< CollectionBase * > collections_
list of collections (overlaps with objects_)
Definition: TreeEntry.h:51
utils::BranchList getStatus(TTree &) const final
Get status of branches in the tree.
Definition: TreeEntry.cc:14
void book(TTree &, utils::BranchList const &blist={"*"}) final
Book new branches bound to this object on the tree.
Definition: TreeEntry.cc:53
Base class for objects representing one full entry of a tree (e.g. Event).
Definition: TreeEntry.h:19
UInt_t setAddress(TTree &, utils::BranchList const &blist={"*"}, Bool_t setStatus=kTRUE) final
Bind the tree branches to the elements of this object.
Definition: TreeEntry.cc:42
Base class for objects that can be linked to an input tree directly.
Definition: ReaderObject.h:10