Skip to content
Snippets Groups Projects
Commit b817ef18 authored by adrien-matta's avatar adrien-matta
Browse files

* Fix bug in filling the Beam initial condition

* x was filled instead of z
parent 2bbb6339
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ void ParticleStack::AddBeamParticleToStack(Particle& particle){
m_InitialConditions-> SetIncidentFinalKineticEnergy (particle. GetParticleKineticEnergy());
m_InitialConditions-> SetIncidentPositionX (particle. GetParticlePosition().x());
m_InitialConditions-> SetIncidentPositionY (particle. GetParticlePosition().y());
m_InitialConditions-> SetIncidentPositionZ (particle. GetParticlePosition().x());
m_InitialConditions-> SetIncidentPositionZ (particle. GetParticlePosition().z());
m_First=false;
}
......@@ -248,4 +248,4 @@ void ParticleStack::ShootAllParticle(G4Event* anEvent){
}
m_ParticleStack.clear();
m_First=true;
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment