Import Geant4 9.3.0 source tree
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4FinalStateChargeIncrease.cc,v 1.3 2008/07/14 20:47:34 sincerti Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: G4FinalStateChargeIncrease.cc,v 1.7 2009/06/11 15:47:08 mantero Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
|
||||
#include "G4FinalStateChargeIncrease.hh"
|
||||
|
||||
@@ -34,6 +34,16 @@ G4FinalStateChargeIncrease::G4FinalStateChargeIncrease()
|
||||
{
|
||||
lowEnergyLimit = 1 * keV;
|
||||
highEnergyLimit = 10 * MeV;
|
||||
|
||||
G4cout << G4endl;
|
||||
G4cout << "*******************************************************************************" << G4endl;
|
||||
G4cout << "*******************************************************************************" << G4endl;
|
||||
G4cout << " The class 4FinalStateChargeIncrease is NOT SUPPORTED ANYMORE. " << G4endl;
|
||||
G4cout << " It will be REMOVED with the next major release of Geant4. " << G4endl;
|
||||
G4cout << " Please consult: https://twiki.cern.ch/twiki/bin/view/Geant4/LoweProcesses" << G4endl;
|
||||
G4cout << "*******************************************************************************" << G4endl;
|
||||
G4cout << "*******************************************************************************" << G4endl;
|
||||
G4cout << G4endl;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -47,8 +57,12 @@ const G4FinalStateProduct& G4FinalStateChargeIncrease::GenerateFinalState(const
|
||||
{
|
||||
product.Clear();
|
||||
|
||||
//SI - Added protection against total energy deposit
|
||||
product.DoNotDepositEnergy();
|
||||
//
|
||||
product.KillPrimaryParticle();
|
||||
product.AddEnergyDeposit(0.);
|
||||
|
||||
G4ParticleDefinition* definition = track.GetDefinition();
|
||||
|
||||
G4double inK = track.GetDynamicParticle()->GetKineticEnergy();
|
||||
|
||||
Reference in New Issue
Block a user