KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
EventIterator Class Reference

Detailed Description

Class for iterating over nuclei in events accessed through base pointer/reference.

Iterators are not defined for the abstract base class KVEvent. This class is a wrapper for the KVTemplateEvent<KVNucleus>::Iterator class which allows to use iterators with events passed as base references or pointers:

KVEvent* event; // pointer to valid event object
for(auto& nuc : EventIterator(event)) { // loop over nuclei in event }
for(auto& nuc : EventIterator(event, {"selection",[](const KVNucleus* n){ return n->GetZ()>2; }})) { // loop over nuclei with Z>2 in event }
Class for iterating over nuclei in events accessed through base pointer/reference.
Abstract base class container for multi-particle events.
Definition KVEvent.h:67
Description of properties and kinematics of atomic nuclei.
Definition KVNucleus.h:126
const Int_t n
Examples
KVEvent_iterator_example.C.

#include <KVNucleusEvent.h>