Skip to content
Snippets Groups Projects
Commit c49ca75b authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* fixing bug preventing reaction to occure

parent fa8b4123
No related branches found
No related tags found
1 merge request!27Draft: [Epic] Preparation of the environement for the new GaseousDetectorScorers...
...@@ -68,7 +68,7 @@ void NPS::BeamReaction::ReadConfiguration() { ...@@ -68,7 +68,7 @@ void NPS::BeamReaction::ReadConfiguration() {
if (input.GetAllBlocksWithToken("TwoBodyReaction").size() > 0) if (input.GetAllBlocksWithToken("TwoBodyReaction").size() > 0)
m_ReactionType = TwoBody; m_ReactionType = TwoBody;
if (input.GetAllBlocksWithToken("InelasticBreakup").size() > 0) else if (input.GetAllBlocksWithToken("InelasticBreakup").size() > 0)
m_ReactionType = InelasticBreakup; m_ReactionType = InelasticBreakup;
else if (input.GetAllBlocksWithToken("QFSReaction").size() > 0) else if (input.GetAllBlocksWithToken("QFSReaction").size() > 0)
m_ReactionType = QFS; m_ReactionType = QFS;
...@@ -92,7 +92,7 @@ void NPS::BeamReaction::ReadConfiguration() { ...@@ -92,7 +92,7 @@ void NPS::BeamReaction::ReadConfiguration() {
} }
// Inelastic Breakup // Inelastic Breakup
if (m_ReactionType == InelasticBreakup) { else if (m_ReactionType == InelasticBreakup) {
m_InelasticBreakup.ReadConfigurationFile(input); m_InelasticBreakup.ReadConfigurationFile(input);
m_BeamName = NPL::ChangeNameToG4Standard(m_InelasticBreakup.GetParticleBeam()->GetName()); m_BeamName = NPL::ChangeNameToG4Standard(m_InelasticBreakup.GetParticleBeam()->GetName());
if (m_InelasticBreakup.GetParticleLight()->GetName() != "") { if (m_InelasticBreakup.GetParticleLight()->GetName() != "") {
...@@ -438,7 +438,7 @@ void NPS::BeamReaction::DoIt(const G4FastTrack& fastTrack, G4FastStep& fastStep) ...@@ -438,7 +438,7 @@ void NPS::BeamReaction::DoIt(const G4FastTrack& fastTrack, G4FastStep& fastStep)
//////////////////////////////////////// ////////////////////////////////////////
// Inelastic Breakup Reaction Case ///// // Inelastic Breakup Reaction Case /////
//////////////////////////////////////// ////////////////////////////////////////
if (m_ReactionType == InelasticBreakup) { else if (m_ReactionType == InelasticBreakup) {
static G4IonTable* IonTable = G4ParticleTable::GetParticleTable()->GetIonTable(); static G4IonTable* IonTable = G4ParticleTable::GetParticleTable()->GetIonTable();
//////Define the kind of particle to shoot//////// //////Define the kind of particle to shoot////////
......
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