Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

NTBaseCutT< Ntuple, T > Class Template Reference

#include <NTBaseCut.h>

Inheritance diagram for NTBaseCutT< Ntuple, T >:

Inheritance graph
[legend]
Collaboration diagram for NTBaseCutT< Ntuple, T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Ntuple, class T = bool>
class NTBaseCutT< Ntuple, T >

Returns a bool value from an Ntuple.

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

Date
2005/06/04 16:27:51
Author
blist

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 & Destructor Documentation

template<class Ntuple, class T = bool>
NTBaseCutT< Ntuple, T >::NTBaseCutT const Ntuple &  nt,
const char *  branchname,
const IntFunPoR iter_ = 0
[inline]
 

Constructor from a branch name given as string.

Parameters:
nt  The ntuple
branchname  The branch name
iter_  An optional iterator

Definition at line 97 of file NTBaseCut.h.

References NTBaseCutT< Ntuple, T >::branchAddress.

template<class Ntuple, class T = bool>
NTBaseCutT< Ntuple, T >::NTBaseCutT const Ntuple &  nt,
T Ntuple::*  p_mem,
const char *  name_ = "?",
const IntFunPoR iter_ = 0
[inline]
 

Constructor from a member pointer.

Parameters:
nt  The ntuple
p_mem  Member pointer
name_  The object's name
iter_  An optional iterator

Definition at line 112 of file NTBaseCut.h.

References NTBaseCutT< Ntuple, T >::branchAddress.

template<class Ntuple, class T = bool>
NTBaseCutT< Ntuple, T >::NTBaseCutT const Ntuple &  nt,
const char *  branchname,
int  offset_
[inline]
 

Constructor from a branch name given as string, with offset.

Parameters:
nt  The ntuple
branchname  The branch name
offset_  The offset

Definition at line 124 of file NTBaseCut.h.

References NTBaseCutT< Ntuple, T >::branchAddress.

template<class Ntuple, class T = bool>
NTBaseCutT< Ntuple, T >::NTBaseCutT const Ntuple &  nt,
T Ntuple::*  p_mem,
const char *  name_,
int  offset_
[inline]
 

Constructor from a member pointer, with offset.

Parameters:
nt  The ntuple
p_mem  Member pointer
name_  The object's name
offset_  The offset

Definition at line 139 of file NTBaseCut.h.

References NTBaseCutT< Ntuple, T >::branchAddress.

template<class Ntuple, class T = bool>
NTBaseCutT< Ntuple, T >::NTBaseCutT const NTBaseCutT< Ntuple, T > &  source,
const IntFunPoR iter_
[inline]
 

Constructor from an existing NTBaseCutT object, plus a new iterator.

Parameters:
iter_  The new iterator

Definition at line 151 of file NTBaseCut.h.

References NTBaseCutT< Ntuple, T >::branchAddress, and NTBaseCut::getBaseName().

template<class Ntuple, class T = bool>
NTBaseCutT< Ntuple, T >::NTBaseCutT const NTBaseCutT< Ntuple, T > &  source,
const int  offset_
[inline]
 

Constructor from an existing NTBaseCutT object, plus a new offset.

Parameters:
offset_  The new offset

Definition at line 158 of file NTBaseCut.h.

References NTBaseCutT< Ntuple, T >::branchAddress, and NTBaseCut::getBaseName().


Member Function Documentation

template<class Ntuple, class T = bool>
NTBaseCutT<Ntuple, T>& NTBaseCutT< Ntuple, T >::operator[] const IntFunPoR iter_  )  const [inline, virtual]
 

Returns a new object with a different iterator.

Parameters:
iter_  the new iterator

Implements NTBaseCut.

Definition at line 173 of file NTBaseCut.h.

template<class Ntuple, class T = bool>
NTBaseCutT<Ntuple, T>& NTBaseCutT< Ntuple, T >::operator[] int  offset_  )  const [inline, virtual]
 

Returns a new object with a different offset.

Parameters:
offset_  the new offset

Implements NTBaseCut.

Definition at line 179 of file NTBaseCut.h.


The documentation for this class was generated from the following file:
Generated on Thu Oct 26 12:54:55 2006 for SFH by doxygen 1.3.2