Class ParticleCollector
Defined in File ParticleCollector.h
Inheritance Relationships
Base Type
public Module(Class Module)
Class Documentation
-
class ParticleCollector : public Module
A helper ouput mechanism to keep candidates in-memory and directly transfer them to Python.
Public Types
-
typedef tContainer::iterator iterator
iterator goodies
-
typedef tContainer::const_iterator const_iterator
Public Functions
-
ParticleCollector()
-
ParticleCollector(const std::size_t nBuffer)
-
ParticleCollector(const std::size_t nBuffer, const bool clone)
-
ParticleCollector(const std::size_t nBuffer, const bool clone, const bool recursive)
-
~ParticleCollector()
-
virtual void process(Candidate *candidate) const
Process function This is the main function to work with, it is called during every ModuleList::run step. Derived functions need to override this overload of process!
- Parameters:
candidate – Candidate raw pointer
-
void dump(const std::string &filename) const
-
void load(const std::string &filename)
-
std::size_t size() const
-
void clearContainer()
-
virtual std::string getDescription() const
Returns description, can be overriden by derived class.
-
void setClone(bool b)
-
bool getClone() const
-
const_iterator begin() const
-
const_iterator end() const
-
void getTrajectory(ModuleList *mlist, std::size_t i, Module *output) const
Retrieves the trajectory of a detected particle Procedure: takes the initial state of the particle, re-runs the ModuleList for that particle and captures trajectory
-
void getTrajectory(ref_ptr<ModuleList> mlist, std::size_t i, ref_ptr<Module> output) const
-
void setDescription(const std::string &description)
Sets description, can be used instead of getDescription in derived class
- Parameters:
description – Description string
-
inline size_t addReference() const
-
inline size_t removeReference() const
-
inline int removeReferenceNoDelete() const
-
inline size_t getReferenceCount() const
-
typedef tContainer::iterator iterator