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

NTFloatFunGA< Ntuple, T, A > Class Template Reference

#include <NTFloatFun.h>

Inheritance diagram for NTFloatFunGA< Ntuple, T, A >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Ntuple, class T = Float_t, class A = Float_t>
class NTFloatFunGA< Ntuple, T, A >

Returns a Float_FF value from an Ntuple getter method with an argument.

An NTFloatFunGA 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 280 of file NTFloatFun.h.

Public Types

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

Public Member Functions

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

 NTFloatFunGA (const Ntuple &nt_, ConstGetter p_mem, A arg_, 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 ~NTFloatFunGA ()
 Protected destructor ensures creation on the heap.


Protected Attributes

Ntuple & nt
Getter getMethod
arg


Constructor & Destructor Documentation

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

Constructor from a member pointer.

Parameters:
nt_  The ntuple
p_mem  Member pointer
arg_  The argument of the getter function
name_  The object's name

Definition at line 286 of file NTFloatFun.h.

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

Parameters:
nt_  The ntuple
p_mem  Member pointer
arg_  The argument of the getter function
name_  The object's name

Definition at line 294 of file NTFloatFun.h.


Member Function Documentation

template<class Ntuple, class T = Float_t, class A = Float_t>
virtual NTFloatFun& NTFloatFunGA< Ntuple, T, A >::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 311 of file NTFloatFun.h.

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

Returns a new object with a different offset.

Parameters:
offset_  the new offset

Implements NTFloatFun.

Definition at line 316 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