Added option for initial weights in the injector
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -15,7 +15,8 @@ class Particle {
|
||||
Particle(std::shared_ptr<species::TrackedSpecie> specie,
|
||||
const Coordinate& position,
|
||||
const Vector& velocity,
|
||||
const double time_birth);
|
||||
const double time_birth,
|
||||
const double weight);
|
||||
|
||||
void position(const Coordinate& new_position);
|
||||
CartesianCoordinate position() const;
|
||||
@@ -49,7 +50,11 @@ class Particle {
|
||||
|
||||
long int ID() const;
|
||||
|
||||
double weight() const;
|
||||
|
||||
private:
|
||||
double weight_;
|
||||
|
||||
CartesianVector velocity_;
|
||||
CartesianCoordinate position_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user