G4ChargeState is a container for magnetic charge and moments.
More...
#include <G4ChargeState.hh>
|
| | G4ChargeState (G4double charge, G4double magnetic_dipole_moment, G4double pdgSpin, G4double electric_dipole_moment=0.0, G4double magnetic_charge=0.0) |
| | G4ChargeState (const G4ChargeState &right) |
| G4ChargeState & | operator= (const G4ChargeState &right) |
| | ~G4ChargeState ()=default |
| void | SetChargeSpinMoments (G4double charge, G4double pdgSpin, 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 | SetPDGSpin (G4double spin) |
| G4double | GetPDGSpin () 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 |
| void | SetChargeMdm (G4double charge, G4double mag_dipole_moment) |
| void | SetChargeMdmSpin (G4double charge, G4double magnetic_dipole_moment, G4double pdgSpin) |
| void | SetChargeSpin (G4double charge, G4double pdgSpin) |
| void | SetChargeDipoleMoments (G4double charge, G4double magnetic_dipole_moment, G4double electric_dipole_moment) |
| void | SetChargesAndMoments (G4double charge, G4double magnetic_dipole_moment, G4double electric_dipole_moment, G4double magnetic_charge) |
G4ChargeState is a container for magnetic charge and moments.
Definition at line 43 of file G4ChargeState.hh.
◆ G4ChargeState() [1/2]
Constructor for G4ChargeState.
- Parameters
-
| [in] | charge | Particle charge. |
| [in] | magnetic_dipole_moment | Magnetic dipole moment. |
| [in] | pdgSpin | Spin. |
| [in] | electric_dipole_moment | Electric dipole moment. |
| [in] | magnetic_charge | Magnetic charge for monopoles. |
Referenced by G4ChargeState(), and operator=().
◆ G4ChargeState() [2/2]
Copy constructor and assignment operator.
◆ ~G4ChargeState()
| G4ChargeState::~G4ChargeState |
( |
| ) |
|
|
default |
◆ ElectricDipoleMoment()
| G4double G4ChargeState::ElectricDipoleMoment |
( |
| ) |
const |
|
inline |
◆ GetCharge()
| G4double G4ChargeState::GetCharge |
( |
| ) |
const |
|
inline |
◆ GetMagneticDipoleMoment()
| G4double G4ChargeState::GetMagneticDipoleMoment |
( |
| ) |
const |
|
inline |
◆ GetPDGSpin()
| G4double G4ChargeState::GetPDGSpin |
( |
| ) |
const |
|
inline |
◆ GetSpin()
| G4double G4ChargeState::GetSpin |
( |
| ) |
const |
|
inline |
◆ MagneticCharge()
| G4double G4ChargeState::MagneticCharge |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ SetCharge()
| void G4ChargeState::SetCharge |
( |
G4double | charge | ) |
|
|
inline |
Revises the charge (in units of the positron charge).
◆ SetChargeDipoleMoments()
| void G4ChargeState::SetChargeDipoleMoments |
( |
G4double | charge, |
|
|
G4double | magnetic_dipole_moment, |
|
|
G4double | electric_dipole_moment ) |
|
inline |
◆ SetChargeMdm()
| void G4ChargeState::SetChargeMdm |
( |
G4double | charge, |
|
|
G4double | mag_dipole_moment ) |
|
inline |
Auxiliary methods to set several properties at once.
◆ SetChargeMdmSpin()
◆ SetChargesAndMoments()
◆ SetChargeSpin()
◆ SetChargeSpinMoments()
Revises the charge, pdgSpin, and optionally both moments and magnetic charge.
Definition at line 33 of file G4ChargeState.cc.
40{
41 fCharge = charge;
42 fSpin = spin;
43 if( magnetic_dipole_moment <
DBL_MAX)
44 { fMagn_dipole= magnetic_dipole_moment; }
45 if( electric_dipole_moment <
DBL_MAX)
46 { fElec_dipole= electric_dipole_moment; }
48 { fMagneticCharge= magnetic_charge; }
49}
◆ SetElectricDipoleMoment()
| void G4ChargeState::SetElectricDipoleMoment |
( |
G4double | moment | ) |
|
|
inline |
◆ SetMagneticCharge()
| void G4ChargeState::SetMagneticCharge |
( |
G4double | charge | ) |
|
|
inline |
◆ SetMagneticDipoleMoment()
| void G4ChargeState::SetMagneticDipoleMoment |
( |
G4double | moment | ) |
|
|
inline |
◆ SetPDGSpin()
| void G4ChargeState::SetPDGSpin |
( |
G4double | spin | ) |
|
|
inline |
◆ SetSpin()
| void G4ChargeState::SetSpin |
( |
G4double | spin | ) |
|
|
inline |
The documentation for this class was generated from the following files: