#include <H1Funs.h>
Inheritance diagram for JBLH1SomeArrayIterator< H1SomeArrayPtr, ArrayRow >:
H1 uses many H1ClonesArrayPtr objects to store data on mODS, such as H1PartSelTrackPtr, H1PartCandArrayPtr etc. An JBLH1SomeArrayIterator is a convenient way to define an iterator for such an array.
Changelog:
Definition at line 297 of file H1Funs.h.
Public Member Functions | |
JBLH1SomeArrayIterator () | |
Default constructor. | |
JBLH1SomeArrayIterator (const char *branchname_) | |
Constructor from a branch name. | |
JBLH1SomeArrayIterator (const H1SomeArrayPtr &ptr_, const char *pointername_=0) | |
Constructor from an existing pointer. | |
virtual int | operator() () const |
Returns iterator value, starting at 0. | |
virtual bool | next () |
Increments iterator; returns false if iterator cannot be incremented. | |
virtual bool | reset () |
Resets iterator; returns false if iterator value range is empty. | |
virtual bool | isValid () const |
Returns whether current value of iterator is valid. | |
virtual FloatFun & | GetP () const |
Returns a FloatFun object that gives the momentum P. | |
virtual FloatFun & | GetPt () const |
Returns a FloatFun object that gives the transverse momentum Pt. | |
virtual FloatFun & | GetPz () const |
Returns a FloatFun object that gives the longitudinal momentum Pz. | |
virtual FloatFun & | GetE () const |
Returns a FloatFun object that gives the energy E. | |
virtual FloatFun & | GetPhi () const |
Returns a FloatFun object that gives the azimuthal angle Phi. | |
virtual FloatFun & | GetTheta () const |
Returns a FloatFun object that gives the polar angle Theta. | |
virtual FloatFun & | GetMass () const |
Returns a FloatFun object that gives the Mass. | |
virtual FloatFun & | GetCharge () const |
Returns a FloatFun object that gives the Charge. | |
const char * | getBranchName () const |
template<class H1PartSome, class TM> FloatFun & | Float (TM(H1PartSome::*p_mem)() const, const char *attribname="?") const |
Returns a FloatFun object. | |
template<class H1PartSome, class TM> FloatFun & | GetFloatFun (TM(H1PartSome::*p_mem)() const, const char *attribname="?") const |
Returns a FloatFun object. | |
template<class H1PartSome, class TM> IntFun & | Int (TM(H1PartSome::*p_mem)() const, const char *attribname="?") const |
Returns an IntFun object. | |
template<class H1PartSome, class TM> IntFun & | GetIntFun (TM(H1PartSome::*p_mem)() const, const char *attribname="?") const |
Returns an IntFun object. | |
template<class H1PartSome, class TM> BaseCut & | Bool (TM(H1PartSome::*p_mem)() const, const char *attribname="?") const |
Returns a BaseCut object. | |
template<class H1PartSome, class TM> BaseCut & | GetBaseCut (TM(H1PartSome::*p_mem)() const, const char *attribname="?") const |
Returns a BaseCut object. | |
const H1SomeArrayPtr & | getBranchPointer () const |
Returns the branch pointer. | |
Protected Member Functions | |
virtual | ~JBLH1SomeArrayIterator () |
Protected destructor to ensure creation on the heap. | |
Private Attributes | |
const H1SomeArrayPtr & | ptr |
The pointer to the H1ClonesArray. | |
int | index |
The index. |
|
Constructor from a branch name.
Definition at line 311 of file H1Funs.h. References NamedO::getName(), JBLH1SomeArrayIterator< H1SomeArrayPtr, ArrayRow >::index, and JBLH1SomeArrayIterator< H1SomeArrayPtr, ArrayRow >::ptr. |
|
Constructor from an existing pointer.
Definition at line 322 of file H1Funs.h. References NamedO::getName(), JBLH1SomeArrayIterator< H1SomeArrayPtr, ArrayRow >::index, and JBLH1SomeArrayIterator< H1SomeArrayPtr, ArrayRow >::ptr. |
|
Returns a FloatFun object.
|
|
Returns a FloatFun object.
|
|
Returns an IntFun object.
|
|
Returns an IntFun object.
|
|
Returns a BaseCut object.
|
|
Returns a BaseCut object.
|