Import Geant4 6.0.0 source tree
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4BraggModel.hh,v 1.10 2003/11/12 10:24:18 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -36,6 +38,7 @@
|
||||
// 23-12-02 V.Ivanchenko change interface in order to moveto cut per region
|
||||
// 24-01-03 Make models region aware (V.Ivanchenko)
|
||||
// 13-02-03 Add name (V.Ivanchenko)
|
||||
// 12-11-03 Fix for GenericIons (V.Ivanchenko)
|
||||
//
|
||||
//
|
||||
// Class Description:
|
||||
@@ -75,12 +78,12 @@ public:
|
||||
|
||||
G4bool IsInCharge(const G4ParticleDefinition*);
|
||||
|
||||
G4double ComputeDEDX(const G4Material*,
|
||||
G4double ComputeDEDX(const G4MaterialCutsCouple*,
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double cutEnergy);
|
||||
|
||||
G4double CrossSection(const G4Material*,
|
||||
G4double CrossSection(const G4MaterialCutsCouple*,
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy,
|
||||
G4double cutEnergy,
|
||||
@@ -109,7 +112,7 @@ private:
|
||||
|
||||
void SetParticle(const G4ParticleDefinition* p);
|
||||
|
||||
// hide assignment operator
|
||||
// hide assignment operator
|
||||
G4BraggModel & operator=(const G4BraggModel &right);
|
||||
G4BraggModel(const G4BraggModel&);
|
||||
|
||||
@@ -139,20 +142,21 @@ private:
|
||||
G4double ratio;
|
||||
G4double highKinEnergy;
|
||||
G4double lowKinEnergy;
|
||||
G4int iMolecula; // index in the molecula's table
|
||||
G4double protonMassAMU;
|
||||
G4double theZieglerFactor;
|
||||
G4double expStopPower125; // Experimental Stopping power at 125keV
|
||||
|
||||
G4int iMolecula; // index in the molecula's table
|
||||
G4bool isIon;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4BraggModel::MaxSecondaryEnergy(
|
||||
const G4ParticleDefinition*,
|
||||
const G4ParticleDefinition* pd,
|
||||
G4double kinEnergy)
|
||||
{
|
||||
|
||||
if(isIon) SetParticle(pd);
|
||||
G4double gamma= kinEnergy/mass + 1.0;
|
||||
G4double tmax = 2.0*electron_mass_c2*(gamma*gamma - 1.) /
|
||||
(1. + 2.0*gamma*ratio + ratio*ratio);
|
||||
@@ -164,6 +168,10 @@ inline G4double G4BraggModel::MaxSecondaryEnergy(
|
||||
|
||||
inline G4double G4BraggModel::MaxSecondaryEnergy(const G4DynamicParticle* dp)
|
||||
{
|
||||
if(isIon) {
|
||||
mass = dp->GetMass();
|
||||
ratio = electron_mass_c2/mass;
|
||||
}
|
||||
G4double gamma= dp->GetKineticEnergy()/mass + 1.0;
|
||||
G4double tmax = 2.0*electron_mass_c2*(gamma*gamma - 1.) /
|
||||
(1. + 2.0*gamma*ratio + ratio*ratio);
|
||||
|
||||
Reference in New Issue
Block a user