#include <H1Funs.h>
Inheritance diagram for JBLH1FloatFun< H1SomePtr >:
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 from a branch name.
Definition at line 115 of file H1Funs.h. References JBLH1FloatFun< H1SomePtr >::branchname, JBLH1FloatFun< H1SomePtr >::index, JBLH1FloatFun< H1SomePtr >::ptr, and NamedO::str(). |
|
Constructor from an existing pointer.
Definition at line 126 of file H1Funs.h. References JBLH1FloatFun< H1SomePtr >::branchname, JBLH1FloatFun< H1SomePtr >::index, JBLH1FloatFun< H1SomePtr >::ptr, and NamedO::str(). |