Added option for initial weights in the injector

This commit is contained in:
2024-07-31 10:35:14 +02:00
parent 961f1a2a8e
commit 4301c4453b
7 changed files with 36 additions and 12 deletions
+3 -1
View File
@@ -26,6 +26,7 @@ struct InjectorInfo {
public:
std::shared_ptr<species::TrackedSpecie> created_specie;
std::shared_ptr<VelocityDistribution> creation_velocity_distribution;
int multiplicity;
};
class Injector {
@@ -51,7 +52,8 @@ class Injector {
const Coordinate& position,
std::shared_ptr<species::TrackedSpecie> created_specie,
std::shared_ptr<VelocityDistribution> creation_velocity_distribution,
const double time_birth);
const double time_birth,
const double weight);
};
#endif /* INJECTOR_H */