Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PEEffectModel.cc,v 1.2 2005/05/02 12:44:18 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4PEEffectModel.cc,v 1.4 2005/12/05 16:44:43 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -36,6 +36,8 @@
|
||||
//
|
||||
// Modifications:
|
||||
//
|
||||
// 04.12.05 : SetProposedKineticEnergy(0.) for the killed photon (mma)
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
@@ -73,13 +75,14 @@ G4PEEffectModel::~G4PEEffectModel()
|
||||
void G4PEEffectModel::Initialise(const G4ParticleDefinition*,
|
||||
const G4DataVector&)
|
||||
{
|
||||
if(isInitialized) return;
|
||||
if(pParticleChange)
|
||||
fParticleChange = reinterpret_cast<G4ParticleChangeForGamma*>(pParticleChange);
|
||||
if (isInitialized) return;
|
||||
if (pParticleChange)
|
||||
fParticleChange =
|
||||
reinterpret_cast<G4ParticleChangeForGamma*>(pParticleChange);
|
||||
else
|
||||
fParticleChange = new G4ParticleChangeForGamma();
|
||||
fParticleChange = new G4ParticleChangeForGamma();
|
||||
|
||||
fminimalEnergy = 1.0*eV;
|
||||
fminimalEnergy = 1.0*eV;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -129,8 +132,9 @@ std::vector<G4DynamicParticle*>* G4PEEffectModel::SampleSecondaries(
|
||||
theElectron,ElecDirection, ElecKineEnergy);
|
||||
fvect->push_back(aParticle);
|
||||
}
|
||||
|
||||
fParticleChange->ProposeTrackStatus(fStopAndKill);
|
||||
|
||||
fParticleChange->SetProposedKineticEnergy(0.);
|
||||
fParticleChange->ProposeTrackStatus(fStopAndKill);
|
||||
fParticleChange->ProposeLocalEnergyDeposit(bindingEnergy);
|
||||
return fvect;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user