1 #ifndef PandaTree_Framework_Singlet_h 2 #define PandaTree_Framework_Singlet_h 4 #include "ReaderObject.h" 21 Singlet& operator=(
Singlet const& _src) { name_ = _src.name_;
return *
this; }
28 void init() final { doInit_(); }
29 char const*
getName() const final {
return name_; }
30 void setName(
char const* n)
final { name_ = n; }
36 virtual void doSetAddress_(TTree&,
utils::BranchList const&, Bool_t setStatus) = 0;
38 virtual void doInit_() = 0;
UInt_t setAddress(TTree &, utils::BranchList const &blist={"*"}, Bool_t setStatus=kTRUE) final
Bind the tree branches to the elements of this object.
Definition: Singlet.cc:22
void init() final
Reset the object state.
Definition: Singlet.h:28
List of branch names.
Definition: IOUtils.h:64
utils::BranchList getStatus(TTree &) const final
Get status of branches in the tree.
Definition: Singlet.cc:10
char const * getName() const final
Name of this object.
Definition: Singlet.h:29
Base class for singlet objects.
Definition: Singlet.h:16
utils::BranchList getBranchNames(Bool_t fullName=kTRUE, Bool_t=kFALSE) const final
Get the full list of branch names.
Definition: Singlet.cc:16
void setStatus(TTree &, utils::BranchList const &blist) final
Set status of branches to true (matching branch) or false (vetoed branch)
Definition: Singlet.cc:4
void setName(char const *n) final
Set object name.
Definition: Singlet.h:30
Base class for objects that can be linked to an input tree directly.
Definition: ReaderObject.h:10
void book(TTree &, utils::BranchList const &blist={"*"}) final
Book new branches bound to this object on the tree.
Definition: Singlet.cc:30