Base class for singlet objects.
More...
#include <Singlet.h>
|
| Singlet (char const *name="") |
|
| Singlet (Singlet const &src) |
|
Singlet & | operator= (Singlet const &_src) |
|
void | setStatus (TTree &, utils::BranchList const &blist) final |
| Set status of branches to true (matching branch) or false (vetoed branch) More...
|
|
utils::BranchList | getStatus (TTree &) const final |
| Get status of branches in the tree.
|
|
utils::BranchList | getBranchNames (Bool_t fullName=kTRUE, Bool_t=kFALSE) const final |
| Get the full list of branch names. More...
|
|
UInt_t | setAddress (TTree &, utils::BranchList const &blist={"*"}, Bool_t setStatus=kTRUE) final |
| Bind the tree branches to the elements of this object. More...
|
|
void | book (TTree &, utils::BranchList const &blist={"*"}) final |
| Book new branches bound to this object on the tree. More...
|
|
void | init () final |
| Reset the object state.
|
|
char const * | getName () const final |
| Name of this object.
|
|
void | setName (char const *n) final |
| Set object name.
|
|
Public Member Functions inherited from panda::ReaderObject |
| ReaderObject (ReaderObject const &src) |
|
ReaderObject & | operator= (ReaderObject const &) |
|
Int_t | getEntry (TTree &tree, Long64_t entry, Bool_t localEntry=kFALSE) final |
| Read an entry from an input tree. More...
|
|
Int_t | getEntry (UInt_t treeId, Long64_t entry, Bool_t localEntry=kFALSE) override |
| Read an entry from an input tree. More...
|
|
virtual void | unlink (TTree &) |
| Unlink from a tree.
|
|
void | updateBranchArray (TTree &) |
|
Public Member Functions inherited from panda::Object |
| Object (Object const &) |
|
Object & | operator= (Object const &) |
|
virtual Int_t | fill (TTree &tree) |
| Fill a tree. More...
|
|
virtual void | print (std::ostream &out=std::cout, UInt_t level=1) const |
| Print the object content.
|
|
virtual void | dump (std::ostream &=std::cout) const |
| Dump the object content.
|
|
|
Protected Types inherited from panda::ReaderObject |
typedef std::vector< TBranch * > | BranchArray |
|
typedef std::pair< TTree *, BranchArray > | BranchMapping |
| List of branches linked with this object in the tree.
|
|
Base class for singlet objects.
Singlet objects are owners of their data, in contrast to Element.
§ book()
Book new branches bound to this object on the tree.
- Parameters
-
tree | |
blist | List of branches to book. Vetoed or unmentioned branches are not booked. |
Reimplemented from panda::Object.
§ getBranchNames()
Get the full list of branch names.
- Parameters
-
fullName | If true, prepend "(object name)." |
direct | If true, return only direct branches of this object (relevant only for TreeEntry) |
Reimplemented from panda::Object.
§ setAddress()
UInt_t panda::Singlet::setAddress |
( |
TTree & |
tree, |
|
|
utils::BranchList const & |
= {"*"} , |
|
|
Bool_t |
setStatus = kTRUE |
|
) |
| |
|
finalvirtual |
Bind the tree branches to the elements of this object.
- Parameters
-
tree | |
blist | List of branches to bind. Vetoed or unmentioned branches are not bound. |
setStatus | If true, set the status of the branch to true before binding. |
- Returns
- Index of the bound tree in the inputBranches_ vector.
Reimplemented from panda::Object.
§ setStatus()
Set status of branches to true (matching branch) or false (vetoed branch)
Sets the status of the branch to true (branch is in the list) or false (branch is vetoed in the list). Branches not mentioned in the branch list are untouched.
- Parameters
-
tree | |
blist | List of branches. The status of a branch is set to true (false) if BranchName::in(blist) (BranchName::vetoed(blist)) evaluates to true for the branch. |
Reimplemented from panda::Object.
The documentation for this class was generated from the following files:
- Framework/interface/Singlet.h
- Framework/src/Singlet.cc