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

JBLH1FloatFun< H1SomePtr > Class Template Reference

#include <H1Funs.h>

Inheritance diagram for JBLH1FloatFun< H1SomePtr >:

Inheritance graph
[legend]
Collaboration diagram for JBLH1FloatFun< H1SomePtr >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class H1SomePtr>
class JBLH1FloatFun< H1SomePtr >

A FloatFun that returns a variable from an H1Tree.

The template argument H1SomePtr is the H1 Pointer type that has to be used to retrieve the value, such as H1FloatPtr or H1IntPtr.

An optional index can be used if one wants to access a single element of a fixed size array, such as for subtriggers.

Definition at line 112 of file H1Funs.h.

Public Member Functions

 JBLH1FloatFun (const char *branchname_, int index_=-1)
 Constructor from a branch name.

 JBLH1FloatFun (const H1SomePtr &ptr_, int index_=-1, const char *pointername_=0)
 Constructor from an existing pointer.

Float_FF operator() () const
 Returns the value of the variable.

JBLH1FloatFun< H1SomePtr > & operator[] (int index_)
 Returns a version with a fixed index.

JBLH1FloatFunIter< H1SomePtr > & operator[] (const FillIterator &iter_)
 Returns a version with an iterator.


Protected Member Functions

virtual ~JBLH1FloatFun ()
 Protected destructor to ensure creation on the heap.


Private Attributes

const H1SomePtr & ptr
 The H1 pointer.

int index
 The optional index.

std::string branchname
 The branch name.


Constructor & Destructor Documentation

template<class H1SomePtr>
JBLH1FloatFun< H1SomePtr >::JBLH1FloatFun const char *  branchname_,
int  index_ = -1
[inline, explicit]
 

Constructor from a branch name.

Parameters:
branchname_  The branch name
index_  An optional index

Definition at line 115 of file H1Funs.h.

References JBLH1FloatFun< H1SomePtr >::branchname, JBLH1FloatFun< H1SomePtr >::index, JBLH1FloatFun< H1SomePtr >::ptr, and NamedO::str().

template<class H1SomePtr>
JBLH1FloatFun< H1SomePtr >::JBLH1FloatFun const H1SomePtr &  ptr_,
int  index_ = -1,
const char *  pointername_ = 0
[inline, explicit]
 

Constructor from an existing pointer.

Parameters:
ptr_  The branch pointer
index_  An optional index
pointername_  An optional pointer name

Definition at line 126 of file H1Funs.h.

References JBLH1FloatFun< H1SomePtr >::branchname, JBLH1FloatFun< H1SomePtr >::index, JBLH1FloatFun< H1SomePtr >::ptr, and NamedO::str().


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