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

NTFloatFunG< Ntuple, T > Class Template Reference

#include <NTFloatFun.h>

Inheritance diagram for NTFloatFunG< Ntuple, T >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Returns a Float_FF value from an Ntuple getter method.

An NTFloatFunG collaborates with a class Ntuple, which automatically generated by TTree::MakeClass, and returns a Float_t value from a given branch.

Author: Benno List, Jenny Böhme

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

Changelog:

Definition at line 216 of file NTFloatFun.h.

Public Types

typedef T(Ntuple::* Getter )()
typedef T(Ntuple::* ConstGetter )() const

Public Member Functions

 NTFloatFunG (const Ntuple &nt_, Getter p_mem, const char *name_="?")
 Constructor from a member pointer.

 NTFloatFunG (const Ntuple &nt_, ConstGetter p_mem, const char *name_="?")
virtual Float_FF operator() () const
 Returns a Float_FF value from an ntuple row.

virtual NTFloatFunoperator[] (const IntFunPoR &iter_) const
 Returns a new object with a different iterator.

virtual NTFloatFunoperator[] (int offset_) const
 Returns a new object with a different offset.


Protected Member Functions

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


Protected Attributes

Ntuple & nt
Getter getMethod


Constructor & Destructor Documentation

template<class Ntuple, class T = Float_t>
NTFloatFunG< Ntuple, T >::NTFloatFunG const Ntuple &  nt_,
Getter  p_mem,
const char *  name_ = "?"
[inline]
 

Constructor from a member pointer.

Parameters:
nt_  The ntuple
p_mem  Member pointer
name_  The object's name

Definition at line 222 of file NTFloatFun.h.

template<class Ntuple, class T = Float_t>
NTFloatFunG< Ntuple, T >::NTFloatFunG const Ntuple &  nt_,
ConstGetter  p_mem,
const char *  name_ = "?"
[inline]
 

Parameters:
nt_  The ntuple
p_mem  Member pointer
name_  The object's name

Definition at line 229 of file NTFloatFun.h.


Member Function Documentation

template<class Ntuple, class T = Float_t>
virtual NTFloatFun& NTFloatFunG< 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 244 of file NTFloatFun.h.

template<class Ntuple, class T = Float_t>
virtual NTFloatFun& NTFloatFunG< 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 249 of file NTFloatFun.h.


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