#include <NTBaseCut.h>
Inheritance diagram for NTBaseCutT< Ntuple, T >:
An NTBaseCutT collaborates with a class Ntuple, which automatically generated by TTree::MakeClass, and returns a 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 bool objects, but double or even int values.
Author: Benno List, Jenny Böhme
Changelog:
Definition at line 94 of file NTBaseCut.h.
Public Member Functions | |
NTBaseCutT (const Ntuple &nt, const char *branchname, const IntFunPoR &iter_=0) | |
Constructor from a branch name given as string. | |
NTBaseCutT (const Ntuple &nt, T Ntuple::*p_mem, const char *name_="?", const IntFunPoR &iter_=0) | |
Constructor from a member pointer. | |
NTBaseCutT (const Ntuple &nt, const char *branchname, int offset_) | |
Constructor from a branch name given as string, with offset. | |
NTBaseCutT (const Ntuple &nt, T Ntuple::*p_mem, const char *name_, int offset_) | |
Constructor from a member pointer, with offset. | |
NTBaseCutT (const NTBaseCutT< Ntuple, T > &source, const IntFunPoR &iter_) | |
Constructor from an existing NTBaseCutT object, plus a new iterator. | |
NTBaseCutT (const NTBaseCutT< Ntuple, T > &source, const int offset_) | |
Constructor from an existing NTBaseCutT object, plus a new offset. | |
virtual bool | operator() () const |
Returns a bool value from an ntuple row. | |
NTBaseCutT< Ntuple, T > & | operator[] (const IntFunPoR &iter_) const |
Returns a new object with a different iterator. | |
NTBaseCutT< Ntuple, T > & | operator[] (int offset_) const |
Returns a new object with a different offset. | |
Protected Member Functions | |
virtual | ~NTBaseCutT () |
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 97 of file NTBaseCut.h. References NTBaseCutT< Ntuple, T >::branchAddress. |
|
Constructor from a member pointer.
Definition at line 112 of file NTBaseCut.h. References NTBaseCutT< Ntuple, T >::branchAddress. |
|
Constructor from a branch name given as string, with offset.
Definition at line 124 of file NTBaseCut.h. References NTBaseCutT< Ntuple, T >::branchAddress. |
|
Constructor from a member pointer, with offset.
Definition at line 139 of file NTBaseCut.h. References NTBaseCutT< Ntuple, T >::branchAddress. |
|
Constructor from an existing NTBaseCutT object, plus a new iterator.
Definition at line 151 of file NTBaseCut.h. References NTBaseCutT< Ntuple, T >::branchAddress, and NTBaseCut::getBaseName(). |
|
Constructor from an existing NTBaseCutT object, plus a new offset.
Definition at line 158 of file NTBaseCut.h. References NTBaseCutT< Ntuple, T >::branchAddress, and NTBaseCut::getBaseName(). |
|
Returns a new object with a different iterator.
Implements NTBaseCut. Definition at line 173 of file NTBaseCut.h. |
|
Returns a new object with a different offset.
Implements NTBaseCut. Definition at line 179 of file NTBaseCut.h. |