Class ObserverTimeEvolution

Inheritance Relationships

Base Type

Class Documentation

class ObserverTimeEvolution : public ObserverFeature

Observes the time evolution of the candidates (phase-space elements) This observer is very useful if the time evolution of the particle density is needed. It detects all candidates in lin-spaced, log-spaced, or user-defined time intervals and limits the nextStep of candidates to prevent overshooting of detection intervals.

Public Functions

ObserverTimeEvolution()

Default constructor

ObserverTimeEvolution(double min, double dist, double numb)

Constructor

Parameters:
  • min – minimum time

  • dist – time interval for detection

  • numb – number of time intervals

ObserverTimeEvolution(double min, double max, double numb, bool log)

Constructor

Parameters:
  • min – minimum time

  • max – maximum time

  • numb – number of time intervals

  • log – log (input: true) or lin (input: false) scaling between min and max with numb steps

void addTime(const double &position)
void addTimeRange(double min, double max, double numb, bool log = false)
const std::vector<double> &getTimes() const
virtual DetectionState checkDetection(Candidate *candidate) const
virtual std::string getDescription() const
virtual void onDetection(Candidate *candidate) const
inline size_t addReference() const
inline size_t removeReference() const
inline int removeReferenceNoDelete() const
inline size_t getReferenceCount() const

Protected Attributes

std::string description
mutable size_t _referenceCount