#ifndef INJECTOR_H #define INJECTOR_H #include #include #include #include #include "simulation/coordinates.h" class DriftVelocity; class VelocityDistribution; namespace particle { class Particle; } namespace species { class Specie; class TrackedSpecie; } // namespace species class EventPositionDistribution; struct InjectorInfo { public: std::shared_ptr created_specie; std::shared_ptr creation_velocity_distribution; }; class Injector { public: Injector(std::vector& injector_info, double activity, std::shared_ptr position_distribution, std::shared_ptr mother_drift_velocity); std::vector rollNewParticles(std::mt19937* engine, const double current_time, const int time_resolution_events); double timePassed() const; private: std::vector injector_infos_; const double activity_; std::shared_ptr position_distribution_; std::shared_ptr mother_drift_velocity_; particle::Particle rollNewParticle( std::mt19937* engine, const Coordinate& position, std::shared_ptr created_specie, std::shared_ptr creation_velocity_distribution, const double time_birth); }; #endif /* INJECTOR_H */