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

* Fixing bug in Selective Physics list

        - Decay must activated if any of the other process is
parent 3483d397
No related branches found
No related tags found
No related merge requests found
......@@ -159,6 +159,14 @@ void PhysicsList::ReadConfiguration(std::string filename){
else
std::cout <<"WARNING: Physics List Token '" << name << "' unknown. Token is ignored." << std::endl;
}
// Most special process need decay to be activated
if( (m_IonBinaryCascadePhysics || m_EmExtraPhysics || m_HadronElasticPhysics
|| m_StoppingPhysics || m_OpticalPhysics || m_HadronPhysicsQGSP_BIC_HP) && !m_Decay){
m_Decay = true;
std::cout << "Information: Selected process require Decay to be activated." << std::endl;
}
}
/////////////////////////////////////////////////////////////////////////////
PhysicsList::~PhysicsList(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment