1 #ifndef PandaTree_Framework_Object_h 2 #define PandaTree_Framework_Object_h 76 virtual Int_t
getEntry(TTree& tree, Long64_t entry, Bool_t localEntry = kFALSE) {
return 0; }
88 virtual Int_t
getEntry(UInt_t treeId, Long64_t entry, Bool_t localEntry = kFALSE) {
return 0; }
97 virtual Int_t
fill(TTree& tree) {
return tree.Fill(); }
103 virtual char const*
getName()
const {
return ""; }
109 virtual void print(std::ostream& out = std::cout, UInt_t level = 1)
const {
dump(out); }
112 virtual void dump(std::ostream& = std::cout)
const {}
virtual Int_t fill(TTree &tree)
Fill a tree.
Definition: Object.h:97
virtual void print(std::ostream &out=std::cout, UInt_t level=1) const
Print the object content.
Definition: Object.h:109
virtual UInt_t setAddress(TTree &tree, utils::BranchList const &={"*"}, Bool_t setStatus=kTRUE)
Bind the tree branches to the elements of this object.
Definition: Object.h:57
Object base class.
Definition: Object.h:22
virtual void book(TTree &tree, utils::BranchList const &={"*"})
Book new branches bound to this object on the tree.
Definition: Object.h:64
List of branch names.
Definition: IOUtils.h:64
virtual Int_t getEntry(UInt_t treeId, Long64_t entry, Bool_t localEntry=kFALSE)
Read an entry from an input tree.
Definition: Object.h:88
virtual utils::BranchList getBranchNames(Bool_t fullName=kTRUE, Bool_t direct=kFALSE) const
Get the full list of branch names.
Definition: Object.h:47
virtual utils::BranchList getStatus(TTree &) const
Get status of branches in the tree.
Definition: Object.h:40
virtual void setStatus(TTree &tree, utils::BranchList const &)
Set status of branches to true (matching branch) or false (vetoed branch)
Definition: Object.h:37
virtual void dump(std::ostream &=std::cout) const
Dump the object content.
Definition: Object.h:112
virtual void setName(char const *)
Set object name.
Definition: Object.h:106
virtual Int_t getEntry(TTree &tree, Long64_t entry, Bool_t localEntry=kFALSE)
Read an entry from an input tree.
Definition: Object.h:76
virtual void init()
Reset the object state.
Definition: Object.h:100
virtual char const * getName() const
Name of this object.
Definition: Object.h:103