KaliVeda
Toolkit for HIC analysis
|
Class used for iterating over particles in events.
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:
Definition at line 119 of file KVTemplateEvent.h.
#include <KVTemplateEvent.h>
Public Types | |
typedef std::ptrdiff_t | difference_type |
typedef std::forward_iterator_tag | iterator_category |
typedef Particle * | pointer |
typedef Particle & | reference |
enum | Type { Null , All , OK , Group , Bad } |
typedef Particle | value_type |
Public Member Functions | |
Iterator () | |
Iterator (const Iterator &i) | |
Iterator (const KVEvent &e, const KVTemplateParticleCondition< Particle > &selection) | |
Iterator (const KVEvent &e, Type t=Type::All, TString grp="") | |
Iterator (const KVEvent *e, const KVTemplateParticleCondition< Particle > &selection) | |
Iterator (const KVEvent *e, Type t=Type::All, TString grp="") | |
template<typename PointerType = Particle> | |
const PointerType * | get_const_pointer () const |
template<typename ReferenceType = Particle> | |
const ReferenceType & | get_const_reference () const |
template<typename PointerType = Particle> | |
PointerType * | get_pointer () const |
template<typename ReferenceType = Particle> | |
ReferenceType & | get_reference () const |
Bool_t | IsIterating () const |
Bool_t | operator!= (const Iterator &it) const |
Particle & | operator* () const |
const Iterator & | operator++ () |
Iterator | operator++ (int) |
Iterator & | operator= (const Iterator &rhs) |
Bool_t | operator== (const Iterator &it) const |
void | Reset (Type t=Type::Null, TString grp="") |
void | SetIsIterating (Bool_t on=kTRUE) |
Static Public Member Functions | |
static Iterator | End () |
Private Member Functions | |
Bool_t | AcceptableIteration () |
Particle * | current () const |
Private Attributes | |
TIter | fIter |
Bool_t | fIterating |
KVTemplateParticleCondition< Particle > | fSelection |
Type | fType |
typedef std::ptrdiff_t KVTemplateEvent< Particle >::Iterator::difference_type |
Definition at line 123 of file KVTemplateEvent.h.
typedef std::forward_iterator_tag KVTemplateEvent< Particle >::Iterator::iterator_category |
Definition at line 121 of file KVTemplateEvent.h.
typedef Particle* KVTemplateEvent< Particle >::Iterator::pointer |
Definition at line 124 of file KVTemplateEvent.h.
typedef Particle& KVTemplateEvent< Particle >::Iterator::reference |
Definition at line 125 of file KVTemplateEvent.h.
typedef Particle KVTemplateEvent< Particle >::Iterator::value_type |
Definition at line 122 of file KVTemplateEvent.h.
enum KVTemplateEvent::Iterator::Type |
Enumerator | |
---|---|
Null | |
All | |
OK | |
Group | |
Bad |
Definition at line 127 of file KVTemplateEvent.h.
|
inline |
Definition at line 157 of file KVTemplateEvent.h.
|
inline |
Definition at line 163 of file KVTemplateEvent.h.
|
inline |
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.
|
inline |
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.
|
inline |
Construct an iterator object to read in sequence the particles in event *e
Definition at line 204 of file KVTemplateEvent.h.
|
inline |
Construct an iterator object to read in sequence the particles in event *e
Definition at line 230 of file KVTemplateEvent.h.
|
inlineprivate |
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.
|
inlineprivate |
Returns pointer to current particle in iteration
Definition at line 151 of file KVTemplateEvent.h.
|
inlinestatic |
Definition at line 321 of file KVTemplateEvent.h.
|
inline |
Definition at line 273 of file KVTemplateEvent.h.
|
inline |
Definition at line 278 of file KVTemplateEvent.h.
|
inline |
Definition at line 263 of file KVTemplateEvent.h.
|
inline |
Definition at line 268 of file KVTemplateEvent.h.
|
inline |
returns kTRUE if iteration is in progress
Definition at line 350 of file KVTemplateEvent.h.
|
inline |
returns kTRUE if the 2 iterators are not pointing to the same particle
Definition at line 282 of file KVTemplateEvent.h.
|
inline |
Returns reference to current particle in iteration
Definition at line 256 of file KVTemplateEvent.h.
|
inline |
Prefix ++ operator Advance iterator to next particle in event compatible with selection
Definition at line 292 of file KVTemplateEvent.h.
|
inline |
Postfix ++ operator Advance iterator to next particle in event compatible with selection
Definition at line 301 of file KVTemplateEvent.h.
|
inline |
copy-assignment operator
Definition at line 309 of file KVTemplateEvent.h.
|
inline |
returns kTRUE if the 2 iterators are pointing to the same particle
Definition at line 287 of file KVTemplateEvent.h.
|
inline |
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.
|
inline |
set fIterating flag
Definition at line 355 of file KVTemplateEvent.h.
|
private |
Definition at line 137 of file KVTemplateEvent.h.
|
mutableprivate |
Definition at line 139 of file KVTemplateEvent.h.
|
private |
Definition at line 136 of file KVTemplateEvent.h.
|
private |
Definition at line 138 of file KVTemplateEvent.h.