template<typename Particle>
class KVTemplateEvent< Particle >::Iterator
Class used for iterating over particles in events.
- Template Parameters
-
Particle | Class used to describe particles belonging to the event: must derive from KVParticle |
The Iterator class is an STL-compliant iterator which can be used to perform loops over particles in an event. Iterators of different types can be used for different kinds of iteration:
Abstract base class container for multi-particle events.
Class used for iterating over particles in events.
- See also
- KVTemplateEvent, Nuclei & Events
- Examples
- KVEvent_iterator_example.C.
Definition at line 119 of file KVTemplateEvent.h.
#include <KVTemplateEvent.h>
◆ difference_type
template<typename Particle >
typedef std::ptrdiff_t KVTemplateEvent< Particle >::Iterator::difference_type |
◆ iterator_category
template<typename Particle >
typedef std::forward_iterator_tag KVTemplateEvent< Particle >::Iterator::iterator_category |
◆ pointer
template<typename Particle >
◆ reference
template<typename Particle >
◆ value_type
template<typename Particle >
◆ Type
template<typename Particle >
◆ Iterator() [1/6]
template<typename Particle >
◆ Iterator() [2/6]
template<typename Particle >
◆ Iterator() [3/6]
template<typename Particle >
Construct an iterator object to read in sequence the particles in event *e using the given KVParticleCondition to select acceptable particles.
Definition at line 170 of file KVTemplateEvent.h.
◆ Iterator() [4/6]
template<typename Particle >
Construct an iterator object to read in sequence the particles in event *e using the given KVParticleCondition to select acceptable particles.
Definition at line 187 of file KVTemplateEvent.h.
◆ Iterator() [5/6]
template<typename Particle >
Construct an iterator object to read in sequence the particles in event *e
Definition at line 204 of file KVTemplateEvent.h.
◆ Iterator() [6/6]
template<typename Particle >
Construct an iterator object to read in sequence the particles in event *e
Definition at line 230 of file KVTemplateEvent.h.
◆ AcceptableIteration()
template<typename Particle >
Returns kTRUE if the current particle in the iteration corresponds to the selection criteria (if none set, true for all)
Returns kFALSE for all particles if iterator is bad (particle class mismatch)
Definition at line 140 of file KVTemplateEvent.h.
◆ current()
template<typename Particle >
◆ End()
template<typename Particle >
◆ get_const_pointer()
template<typename Particle >
template<typename PointerType = Particle>
const PointerType * KVTemplateEvent< Particle >::Iterator::get_const_pointer |
( |
| ) |
const |
|
inline |
◆ get_const_reference()
template<typename Particle >
template<typename ReferenceType = Particle>
const ReferenceType & KVTemplateEvent< Particle >::Iterator::get_const_reference |
( |
| ) |
const |
|
inline |
◆ get_pointer()
template<typename Particle >
template<typename PointerType = Particle>
◆ get_reference()
template<typename Particle >
template<typename ReferenceType = Particle>
ReferenceType & KVTemplateEvent< Particle >::Iterator::get_reference |
( |
| ) |
const |
|
inline |
◆ IsIterating()
template<typename Particle >
◆ operator!=()
template<typename Particle >
returns kTRUE if the 2 iterators are not pointing to the same particle
Definition at line 282 of file KVTemplateEvent.h.
◆ operator*()
template<typename Particle >
Returns reference to current particle in iteration
Definition at line 256 of file KVTemplateEvent.h.
◆ operator++() [1/2]
template<typename Particle >
Prefix ++ operator Advance iterator to next particle in event compatible with selection
Definition at line 292 of file KVTemplateEvent.h.
◆ operator++() [2/2]
template<typename Particle >
Postfix ++ operator Advance iterator to next particle in event compatible with selection
Definition at line 301 of file KVTemplateEvent.h.
◆ operator=()
template<typename Particle >
◆ operator==()
template<typename Particle >
returns kTRUE if the 2 iterators are pointing to the same particle
Definition at line 287 of file KVTemplateEvent.h.
◆ Reset()
template<typename Particle >
Reuse iterator, start iteration again
Reset() - use same selection criteria
Reset(Type t[, TString gr]) - change selection criteria
Definition at line 326 of file KVTemplateEvent.h.
◆ SetIsIterating()
template<typename Particle >
◆ fIter
template<typename Particle >
◆ fIterating
template<typename Particle >
◆ fSelection
template<typename Particle >
◆ fType
template<typename Particle >