Energy split drawing implemented;
Debugging output still present, energy split hard coded
This commit is contained in:
@@ -60,9 +60,15 @@ class Injector {
|
||||
|
||||
double timePassed() const;
|
||||
|
||||
void fillParticleNumbers(std::shared_ptr<species::TrackedSpecie> specie);
|
||||
|
||||
double energySplit() const;
|
||||
|
||||
private:
|
||||
std::vector<InjectorInfo> injector_infos_;
|
||||
const double activity_;
|
||||
double energySplit_;
|
||||
std::map<std::string, std::vector<double>> particleNumbersMap_;
|
||||
std::shared_ptr<EventPositionDistribution> position_distribution_;
|
||||
std::shared_ptr<DriftVelocity> mother_drift_velocity_;
|
||||
std::uniform_real_distribution<double> injection_time_distribution_;
|
||||
@@ -74,6 +80,13 @@ class Injector {
|
||||
std::shared_ptr<VelocityDistribution> creation_velocity_distribution,
|
||||
const double time_birth,
|
||||
const double weight);
|
||||
|
||||
particle::Particle drawNewDensityParticleAboveOrBelow(std::mt19937* engine,
|
||||
std::shared_ptr<species::TrackedSpecie> specie,
|
||||
std::shared_ptr<MagneticField> field,
|
||||
const double weight,
|
||||
const double injection_time,
|
||||
const bool above);
|
||||
};
|
||||
|
||||
#endif /* INJECTOR_H */
|
||||
|
||||
Reference in New Issue
Block a user