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

NTFloatFunT< Ntuple, T > Class Template Reference

#include <NTFloatFun.h>

Inheritance diagram for NTFloatFunT< Ntuple, T >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Ntuple, class T = Float_t>
class NTFloatFunT< Ntuple, T >

Returns a Float_FF value from an Ntuple.

An NTFloatFunT collaborates with a class Ntuple, which automatically generated by TTree::MakeClass, and returns a Float_t 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 Float_t objects, but double or even int values.

Author: Benno List, Jenny Böhme

Date
2006/10/25 15:06:59
Author
msteder

Changelog:

Definition at line 101 of file NTFloatFun.h.

Public Member Functions

 NTFloatFunT (const Ntuple &nt, const char *branchname, const IntFunPoR &iter_=0)
 Constructor from a branch name given as string.

 NTFloatFunT (const Ntuple &nt, T Ntuple::*p_mem, const char *name_="?", const IntFunPoR &iter_=0)
 Constructor from a member pointer.

 NTFloatFunT (const Ntuple &nt, const char *branchname, int offset_)
 Constructor from a branch name given as string, with offset.

 NTFloatFunT (const Ntuple &nt, T Ntuple::*p_mem, const char *name_, int offset_)
 Constructor from a member pointer, with offset.

 NTFloatFunT (const NTFloatFunT< Ntuple, T > &source, const IntFunPoR &iter_)
 Constructor from an existing NTFloatFunT object, plus a new iterator.

 NTFloatFunT (const NTFloatFunT< Ntuple, T > &source, const int offset_)
 Constructor from an existing NTFloatFunT object, plus a new offset.

virtual Float_FF operator() () const
 Returns a Float_FF value from an ntuple row.

NTFloatFunT< Ntuple, T > & operator[] (const IntFunPoR &iter_) const
 Returns a new object with a different iterator.

NTFloatFunT< Ntuple, T > & operator[] (int offset_) const
 Returns a new object with a different offset.


Protected Member Functions

virtual ~NTFloatFunT ()
 Protected destructor ensures creation on the heap.


Protected Attributes

const T * branchAddress
 The branch adress.


Constructor & Destructor Documentation

template<class Ntuple, class T = Float_t>
NTFloatFunT< Ntuple, T >::NTFloatFunT 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 104 of file NTFloatFun.h.

References NTFloatFunT< Ntuple, T >::branchAddress.

template<class Ntuple, class T = Float_t>
NTFloatFunT< Ntuple, T >::NTFloatFunT 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 119 of file NTFloatFun.h.

References NTFloatFunT< Ntuple, T >::branchAddress.

template<class Ntuple, class T = Float_t>
NTFloatFunT< Ntuple, T >::NTFloatFunT 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 131 of file NTFloatFun.h.

References NTFloatFunT< Ntuple, T >::branchAddress.

template<class Ntuple, class T = Float_t>
NTFloatFunT< Ntuple, T >::NTFloatFunT 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 146 of file NTFloatFun.h.

References NTFloatFunT< Ntuple, T >::branchAddress.

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

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

Parameters:
iter_  The new iterator

Definition at line 158 of file NTFloatFun.h.

References NTFloatFunT< Ntuple, T >::branchAddress, and NTFloatFun::getBaseName().

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

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

Parameters:
offset_  The new offset

Definition at line 165 of file NTFloatFun.h.

References NTFloatFunT< Ntuple, T >::branchAddress, and NTFloatFun::getBaseName().


Member Function Documentation

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

Returns a new object with a different iterator.

Parameters:
iter_  the new iterator

Implements NTFloatFun.

Definition at line 180 of file NTFloatFun.h.

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

Returns a new object with a different offset.

Parameters:
offset_  the new offset

Implements NTFloatFun.

Definition at line 186 of file NTFloatFun.h.


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