Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
// * *
|
||||
// ***********************
|
||||
//
|
||||
// $Id: RemSimDecay.cc,v 1.2 2004/05/22 12:57:06 guatelli Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: RemSimDecay.cc,v 1.4 2005/12/07 14:41:36 guatelli Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// Author:Susanna Guatelli, guatelli@ge.infn.it
|
||||
//
|
||||
@@ -56,13 +56,14 @@ void RemSimDecay::ConstructProcess()
|
||||
{
|
||||
G4ParticleDefinition* particle = theParticleIterator -> value();
|
||||
G4ProcessManager* pmanager = particle -> GetProcessManager();
|
||||
|
||||
if (theDecayProcess -> IsApplicable(*particle))
|
||||
if (theDecayProcess -> IsApplicable(*particle) && !particle->IsShortLived())
|
||||
{
|
||||
G4String name = particle -> GetParticleName();
|
||||
pmanager -> AddProcess(theDecayProcess);
|
||||
// set ordering for PostStepDoIt and AtRestDoIt
|
||||
pmanager -> SetProcessOrdering(theDecayProcess, idxPostStep);
|
||||
pmanager -> SetProcessOrdering(theDecayProcess, idxAtRest);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user