#include <NTFillIterator.h>
Inheritance diagram for NTFillIterator< Ntuple, T >:
An NTFillIterator collaborates with a class Ntuple, which automatically generated by TTree::MakeClass. The branch name given must correspond to an Int_t that represent the number of entries (jets, tracks, whatever) over which one wants to iterate.
The first template argument is the class name of the ntuple class that was automatically generated by TTree::MakeClass. The second (optional) template argument is the type of the branch variable; this is useful if the branch contains not Int_t objects, but short or char values.
Author: Benno List, Jenny Böhme
Changelog:
Definition at line 43 of file NTFillIterator.h.
Public Member Functions | |
NTFillIterator (const Ntuple &nt_, const char *branchname) | |
Constructor using a branch name. | |
NTFillIterator (const Ntuple &nt_, T Ntuple::*p_mem, const char *objectname="?") | |
Constructor using a member pointer. | |
virtual int | operator() () const |
Returns iterator value, starting at 0; "-1" means "invalid". | |
virtual bool | next () |
Increments iterator; returns false if iterator cannot be incremented. | |
virtual bool | reset () |
Resets iterator; returns false if iterator value range is empty. | |
virtual bool | isValid () const |
Returns whether current value of iterator is valid. | |
Protected Member Functions | |
virtual | ~NTFillIterator () |
Protected destructor ensures creation on the heap. | |
Protected Attributes | |
const Ntuple & | nt |
The ntuple. | |
const T * | branchAddress |
The branch adress. | |
int | index |
The current index value. | |
Related Functions | |
(Note that these are not member functions.) | |
NTFillIterator< Ntuple, T > & | ntfilliterator (const Ntuple &nt, T Ntuple::*p_mem, const char *objectname="?") |
returns a FillIterator from an ntuple data member |
|
Constructor using a branch name.
Definition at line 46 of file NTFillIterator.h. References NTFillIterator< Ntuple, T >::branchAddress, NamedO::getName(), NTFillIterator< Ntuple, T >::index, and NTFillIterator< Ntuple, T >::nt. |
|
Constructor using a member pointer.
Definition at line 66 of file NTFillIterator.h. References NTFillIterator< Ntuple, T >::branchAddress, NamedO::getName(), NTFillIterator< Ntuple, T >::index, and NTFillIterator< Ntuple, T >::nt. |
|
returns a FillIterator from an ntuple data member
Definition at line 118 of file NTFillIterator.h. |