Object base class.
More...
#include <Object.h>
|
| Object (Object const &) |
|
Object & | operator= (Object const &) |
|
virtual void | setStatus (TTree &tree, utils::BranchList const &) |
| Set status of branches to true (matching branch) or false (vetoed branch) More...
|
|
virtual utils::BranchList | getStatus (TTree &) const |
| Get status of branches in the tree.
|
|
virtual utils::BranchList | getBranchNames (Bool_t fullName=kTRUE, Bool_t direct=kFALSE) const |
| Get the full list of branch names. More...
|
|
virtual UInt_t | setAddress (TTree &tree, utils::BranchList const &={"*"}, Bool_t setStatus=kTRUE) |
| Bind the tree branches to the elements of this object. More...
|
|
virtual void | book (TTree &tree, utils::BranchList const &={"*"}) |
| Book new branches bound to this object on the tree. More...
|
|
virtual Int_t | getEntry (TTree &tree, Long64_t entry, Bool_t localEntry=kFALSE) |
| Read an entry from an input tree. More...
|
|
virtual Int_t | getEntry (UInt_t treeId, Long64_t entry, Bool_t localEntry=kFALSE) |
| Read an entry from an input tree. More...
|
|
virtual Int_t | fill (TTree &tree) |
| Fill a tree. More...
|
|
virtual void | init () |
| Reset the object state.
|
|
virtual char const * | getName () const |
| Name of this object.
|
|
virtual void | setName (char const *) |
| Set object name.
|
|
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.
|
|
Object base class.
Object is the base of all panda types. Its mere function is to define the interfaces of derived classes. Four different types of classes inherit from Object. Element is the base class of objects that are elements of containers (Array = fixed size and Collection = dynamic size). Singlet is the base class of all objects that are not in containers. The containers themselves also inherit from Object. The fourth derived class is TreeEntry, which represents one full entry in a TTree (e.g. Event).
§ book()
§ fill()
virtual Int_t panda::Object::fill |
( |
TTree & |
tree | ) |
|
|
inlinevirtual |
§ getBranchNames()
virtual utils::BranchList panda::Object::getBranchNames |
( |
Bool_t |
fullName = kTRUE , |
|
|
Bool_t |
direct = kFALSE |
|
) |
| const |
|
inlinevirtual |
§ getEntry() [1/2]
virtual Int_t panda::Object::getEntry |
( |
TTree & |
tree, |
|
|
Long64_t |
entry, |
|
|
Bool_t |
localEntry = kFALSE |
|
) |
| |
|
inlinevirtual |
Read an entry from an input tree.
- Parameters
-
tree | Tree to get the entry from. |
entry | Entry number in the input tree. |
localEntry | If true, entry must be the local entry number of the current tree (i.e. return value of LoadTree) |
If localEntry is false, calls tree.LoadEntry(entry).
- Returns
- Number of bytes read.
Reimplemented in panda::Element, and panda::ReaderObject.
§ getEntry() [2/2]
virtual Int_t panda::Object::getEntry |
( |
UInt_t |
treeId, |
|
|
Long64_t |
entry, |
|
|
Bool_t |
localEntry = kFALSE |
|
) |
| |
|
inlinevirtual |
Read an entry from an input tree.
- Parameters
-
treeId | Index of the tree in the inputBranches_ vector. |
entry | Entry number in the input tree. |
localEntry | If true, entry must be the local entry number of the current tree (i.e. return value of LoadTree) |
If localEntry is false, calls tree.LoadEntry(entry).
- Returns
- Number of bytes read.
Reimplemented in panda::Element, panda::TreeEntry, panda::CollectionBase, and panda::ReaderObject.
§ setAddress()
virtual UInt_t panda::Object::setAddress |
( |
TTree & |
tree, |
|
|
utils::BranchList const & |
= {"*"} , |
|
|
Bool_t |
setStatus = kTRUE |
|
) |
| |
|
inlinevirtual |
§ 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 in panda::Element, panda::TreeEntry, panda::Singlet, panda::ArrayBase, and panda::CollectionBase.
The documentation for this class was generated from the following file: