#include <NTIntFun.h>
Inheritance diagram for NTIntFunT< Ntuple, T >:
An NTIntFun collaborates with a class Ntuple, which automatically generated by TTree::MakeClass, and returns a int value from a given branch.
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 102 of file NTIntFun.h.
Public Member Functions | |
NTIntFunT (const Ntuple &nt, const char *branchname, const IntFunPoR &iter_=0) | |
Constructor from a branch name given as string. | |
NTIntFunT (const Ntuple &nt, T Ntuple::*p_mem, const char *name_="?", const IntFunPoR &iter_=0) | |
Constructor from a member pointer. | |
NTIntFunT (const Ntuple &nt, const char *branchname, int offset_) | |
Constructor from a branch name given as string, with offset. | |
NTIntFunT (const Ntuple &nt, T Ntuple::*p_mem, const char *name_, int offset_) | |
Constructor from a member pointer, with offset. | |
NTIntFunT (const NTIntFunT< Ntuple, T > &source, const IntFunPoR &iter_) | |
Constructor from an existing NTIntFunT object, plus a new iterator. | |
NTIntFunT (const NTIntFunT< Ntuple, T > &source, const int offset_) | |
Constructor from an existing NTIntFunT object, plus a new offset. | |
virtual int | operator() () const |
Returns an int value from an ntuple row. | |
NTIntFunT< Ntuple, T > & | operator[] (const IntFunPoR &iter_) const |
Returns a new object with a different iterator. | |
NTIntFunT< Ntuple, T > & | operator[] (int offset_) const |
Returns a new object with a different offset. | |
Protected Member Functions | |
virtual | ~NTIntFunT () |
Protected destructor ensures creation on the heap. | |
Protected Attributes | |
const T * | branchAddress |
The branch adress. |
|
Constructor from a branch name given as string.
Definition at line 105 of file NTIntFun.h. References NTIntFunT< Ntuple, T >::branchAddress. |
|
Constructor from a member pointer.
Definition at line 120 of file NTIntFun.h. References NTIntFunT< Ntuple, T >::branchAddress. |
|
Constructor from a branch name given as string, with offset.
Definition at line 132 of file NTIntFun.h. References NTIntFunT< Ntuple, T >::branchAddress. |
|
Constructor from a member pointer, with offset.
Definition at line 147 of file NTIntFun.h. References NTIntFunT< Ntuple, T >::branchAddress. |
|
Constructor from an existing NTIntFunT object, plus a new iterator.
Definition at line 159 of file NTIntFun.h. References NTIntFunT< Ntuple, T >::branchAddress, and NTIntFun::getBaseName(). |
|
Constructor from an existing NTIntFunT object, plus a new offset.
Definition at line 166 of file NTIntFun.h. References NTIntFunT< Ntuple, T >::branchAddress, and NTIntFun::getBaseName(). |
|
Returns a new object with a different iterator.
Implements NTIntFun. Definition at line 180 of file NTIntFun.h. References IntFunPoR::pif. |
|
Returns a new object with a different offset.
Implements NTIntFun. Definition at line 186 of file NTIntFun.h. |