G4BetheBlochIonGasModel Class Reference

#include <G4BetheBlochIonGasModel.hh>

Inheritance diagram for G4BetheBlochIonGasModel:

G4BetheBlochModel G4VEmModel

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)

Detailed Description

Definition at line 55 of file G4BetheBlochIonGasModel.hh.


Constructor & Destructor Documentation

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]

Definition at line 62 of file G4BetheBlochIonGasModel.cc.

00063 {}


Member Function Documentation

G4double G4BetheBlochIonGasModel::ChargeSquareRatio ( const G4Track track  )  [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]

Reimplemented from G4BetheBlochModel.

Definition at line 77 of file G4BetheBlochIonGasModel.cc.

00079 {
00080   return currentCharge*eplus;
00081 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:32 2013 for Geant4 by  doxygen 1.4.7