#include <H1Funs.h>
Inheritance diagram for JBLH1IntFun< H1SomePtr >:
The template argument H1SomePtr is the H1 Pointer type that has to be used to retrieve the value, such as H1IntPtr or H1ShortPtr.
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 233 of file H1Funs.h.
Public Member Functions | |
JBLH1IntFun (const char *branchname_, int index_=-1) | |
Constructor from a branch name. | |
JBLH1IntFun (const H1SomePtr &ptr_, int index_=-1) | |
Constructor from an existing pointer. | |
int | operator() () const |
Returns the value of the variable. | |
JBLH1IntFun< H1SomePtr > & | operator[] (int index_) |
Returns a version with a fixed index. | |
JBLH1IntFunIter< H1SomePtr > & | operator[] (const FillIterator &iter_) |
Returns a version with an iterator. | |
FloatFun & | Float () const |
Returns a FloatFun object. | |
Protected Member Functions | |
virtual | ~JBLH1IntFun () |
Protected destructor to ensure creation on the heap. | |
Private Attributes | |
H1SomePtr | ptr |
The H1 pointer. | |
int | index |
The optional index. |
|
Constructor from a branch name.
Definition at line 236 of file H1Funs.h. References JBLH1IntFun< H1SomePtr >::index, JBLH1IntFun< H1SomePtr >::ptr, and NamedO::str(). |
|
Constructor from an existing pointer.
Definition at line 244 of file H1Funs.h. References JBLH1IntFun< H1SomePtr >::index, JBLH1IntFun< H1SomePtr >::ptr, and NamedO::str(). |