#include <G4BetheBlochIonGasModel.hh>
Inheritance diagram for G4BetheBlochIonGasModel:
Public Member Functions | |
G4BetheBlochIonGasModel (const G4ParticleDefinition *p=0, const G4String &nam="BetheBlochGasIon") | |
virtual | ~G4BetheBlochIonGasModel () |
virtual G4double | ChargeSquareRatio (const G4Track &track) |
virtual G4double | GetParticleCharge (const G4ParticleDefinition *p, const G4Material *mat, G4double kineticEnergy) |
Definition at line 55 of file G4BetheBlochIonGasModel.hh.
G4BetheBlochIonGasModel::G4BetheBlochIonGasModel | ( | const G4ParticleDefinition * | p = 0 , |
|
const G4String & | nam = "BetheBlochGasIon" | |||
) |
Definition at line 56 of file G4BetheBlochIonGasModel.cc.
00057 : G4BetheBlochModel(p,nam), currentCharge(0.0) 00058 {}
G4BetheBlochIonGasModel::~G4BetheBlochIonGasModel | ( | ) | [virtual] |
Reimplemented from G4VEmModel.
Definition at line 67 of file G4BetheBlochIonGasModel.cc.
References G4DynamicParticle::GetCharge(), G4Track::GetDynamicParticle(), and G4BetheBlochModel::SetChargeSquareRatio().
00068 { 00069 currentCharge = track.GetDynamicParticle()->GetCharge()/eplus; 00070 G4double q2 = currentCharge*currentCharge; 00071 SetChargeSquareRatio(q2); 00072 return q2; 00073 }
G4double G4BetheBlochIonGasModel::GetParticleCharge | ( | const G4ParticleDefinition * | p, | |
const G4Material * | mat, | |||
G4double | kineticEnergy | |||
) | [virtual] |