Geant4  10.00.p01
G4ChargeState Class Reference

#include <G4ChargeState.hh>

Public Member Functions

 G4ChargeState (G4double charge, G4double spin=0, G4double magnetic_dipole_moment=0.0, G4double electric_dipole_moment=0.0, G4double magnetic_charge=0.0)
 
 G4ChargeState (const G4ChargeState &right)
 
G4ChargeStateoperator= (const G4ChargeState &right)
 
void SetChargeAndMoments (G4double charge, G4double spin, G4double magnetic_dipole_moment=DBL_MAX, G4double electric_dipole_moment=DBL_MAX, G4double magnetic_charge=DBL_MAX)
 
void SetCharge (G4double charge)
 
G4double GetCharge () const
 
void SetSpin (G4double spin)
 
G4double GetSpin () const
 
void SetMagneticDipoleMoment (G4double moment)
 
G4double GetMagneticDipoleMoment () const
 
void SetElectricDipoleMoment (G4double moment)
 
G4double ElectricDipoleMoment () const
 
void SetMagneticCharge (G4double charge)
 
G4double MagneticCharge () const
 

Private Attributes

G4double fCharge
 
G4double fSpin
 
G4double fMagn_dipole
 
G4double fElec_dipole
 
G4double fMagneticCharge
 

Detailed Description

Definition at line 44 of file G4ChargeState.hh.

Constructor & Destructor Documentation

G4ChargeState::G4ChargeState ( G4double  charge,
G4double  spin = 0,
G4double  magnetic_dipole_moment = 0.0,
G4double  electric_dipole_moment = 0.0,
G4double  magnetic_charge = 0.0 
)

Definition at line 38 of file G4ChargeState.cc.

References fCharge, fElec_dipole, fMagn_dipole, fMagneticCharge, and fSpin.

G4ChargeState::G4ChargeState ( const G4ChargeState right)

Definition at line 51 of file G4ChargeState.cc.

References fCharge, fElec_dipole, fMagn_dipole, fMagneticCharge, and fSpin.

Member Function Documentation

G4double G4ChargeState::ElectricDipoleMoment ( ) const
inline

Definition at line 77 of file G4ChargeState.hh.

References fElec_dipole.

G4double G4ChargeState::GetCharge ( ) const
inline
G4double G4ChargeState::GetMagneticDipoleMoment ( ) const
inline

Definition at line 74 of file G4ChargeState.hh.

References fMagn_dipole.

Referenced by G4EqEMFieldWithSpin::SetChargeMomentumMass(), G4RepleteEofM::SetChargeMomentumMass(), G4EqEMFieldWithEDM::SetChargeMomentumMass(), and G4Mag_SpinEqRhs::SetChargeMomentumMass().

+ Here is the caller graph for this function:

G4double G4ChargeState::GetSpin ( ) const
inline

Definition at line 71 of file G4ChargeState.hh.

References fSpin.

Referenced by G4EqEMFieldWithSpin::SetChargeMomentumMass(), G4RepleteEofM::SetChargeMomentumMass(), G4EqEMFieldWithEDM::SetChargeMomentumMass(), and G4Mag_SpinEqRhs::SetChargeMomentumMass().

+ Here is the caller graph for this function:

G4double G4ChargeState::MagneticCharge ( ) const
inline

Definition at line 80 of file G4ChargeState.hh.

References fMagneticCharge.

Referenced by G4MonopoleEquation::SetChargeMomentumMass().

+ Here is the caller graph for this function:

G4ChargeState & G4ChargeState::operator= ( const G4ChargeState right)

Definition at line 60 of file G4ChargeState.cc.

References fCharge, fElec_dipole, fMagn_dipole, fMagneticCharge, and fSpin.

void G4ChargeState::SetCharge ( G4double  charge)
inline

Definition at line 67 of file G4ChargeState.hh.

References fCharge.

void G4ChargeState::SetChargeAndMoments ( G4double  charge,
G4double  spin,
G4double  magnetic_dipole_moment = DBL_MAX,
G4double  electric_dipole_moment = DBL_MAX,
G4double  magnetic_charge = DBL_MAX 
)

Definition at line 73 of file G4ChargeState.cc.

References DBL_MAX, fCharge, fElec_dipole, fMagn_dipole, fMagneticCharge, and fSpin.

Referenced by G4FieldTrack::SetChargeAndMoments().

+ Here is the caller graph for this function:

void G4ChargeState::SetElectricDipoleMoment ( G4double  moment)
inline

Definition at line 76 of file G4ChargeState.hh.

References fElec_dipole.

void G4ChargeState::SetMagneticCharge ( G4double  charge)
inline

Definition at line 79 of file G4ChargeState.hh.

References fMagneticCharge.

void G4ChargeState::SetMagneticDipoleMoment ( G4double  moment)
inline

Definition at line 73 of file G4ChargeState.hh.

References fMagn_dipole.

void G4ChargeState::SetSpin ( G4double  spin)
inline

Definition at line 70 of file G4ChargeState.hh.

References fSpin.

Member Data Documentation

G4double G4ChargeState::fCharge
private

Definition at line 84 of file G4ChargeState.hh.

Referenced by G4ChargeState(), GetCharge(), operator=(), SetCharge(), and SetChargeAndMoments().

G4double G4ChargeState::fElec_dipole
private
G4double G4ChargeState::fMagn_dipole
private
G4double G4ChargeState::fMagneticCharge
private
G4double G4ChargeState::fSpin
private

Definition at line 85 of file G4ChargeState.hh.

Referenced by G4ChargeState(), GetSpin(), operator=(), SetChargeAndMoments(), and SetSpin().


The documentation for this class was generated from the following files: