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

NTIntFunT< Ntuple, T > Class Template Reference

#include <NTIntFun.h>

Inheritance diagram for NTIntFunT< Ntuple, T >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Ntuple, class T = Int_t>
class NTIntFunT< Ntuple, T >

Returns a int value from an Ntuple.

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

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

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

template<class Ntuple, class T = Int_t>
NTIntFunT< Ntuple, T >::NTIntFunT 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 105 of file NTIntFun.h.

References NTIntFunT< Ntuple, T >::branchAddress.

template<class Ntuple, class T = Int_t>
NTIntFunT< Ntuple, T >::NTIntFunT 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 120 of file NTIntFun.h.

References NTIntFunT< Ntuple, T >::branchAddress.

template<class Ntuple, class T = Int_t>
NTIntFunT< Ntuple, T >::NTIntFunT 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 132 of file NTIntFun.h.

References NTIntFunT< Ntuple, T >::branchAddress.

template<class Ntuple, class T = Int_t>
NTIntFunT< Ntuple, T >::NTIntFunT 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 147 of file NTIntFun.h.

References NTIntFunT< Ntuple, T >::branchAddress.

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

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

Parameters:
iter_  The new iterator

Definition at line 159 of file NTIntFun.h.

References NTIntFunT< Ntuple, T >::branchAddress, and NTIntFun::getBaseName().

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

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

Parameters:
offset_  The new offset

Definition at line 166 of file NTIntFun.h.

References NTIntFunT< Ntuple, T >::branchAddress, and NTIntFun::getBaseName().


Member Function Documentation

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

Returns a new object with a different iterator.

Parameters:
iter_  the new iterator

Implements NTIntFun.

Definition at line 180 of file NTIntFun.h.

References IntFunPoR::pif.

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

Returns a new object with a different offset.

Parameters:
offset_  the new offset

Implements NTIntFun.

Definition at line 186 of file NTIntFun.h.


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