Added option for initial weights in the injector
This commit is contained in:
@@ -95,12 +95,14 @@ InteractionOutput ElectronIonization::performInteraction(
|
||||
|
||||
|
||||
const double time_birth = particle.timeAlive();
|
||||
const double weight_parent = particle.weight();
|
||||
|
||||
InteractionOutput output;
|
||||
output.add(
|
||||
particle::Particle(electron_, x_impact, CartesianVector(v_ejected),
|
||||
time_birth));
|
||||
time_birth, weight_parent));
|
||||
output.add(particle::Particle(ion_, x_impact, CartesianVector(v_target),
|
||||
time_birth));
|
||||
time_birth, weight_parent));
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user