Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ChargeState Class Reference

G4ChargeState is a container for magnetic charge and moments. More...

#include <G4ChargeState.hh>

Public Member Functions

 G4ChargeState (G4double charge, G4double magnetic_dipole_moment, G4double pdgSpin, G4double electric_dipole_moment=0.0, G4double magnetic_charge=0.0)
 G4ChargeState (const G4ChargeState &right)
G4ChargeStateoperator= (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)

Detailed Description

G4ChargeState is a container for magnetic charge and moments.

Definition at line 43 of file G4ChargeState.hh.

Constructor & Destructor Documentation

◆ G4ChargeState() [1/2]

G4ChargeState::G4ChargeState ( G4double charge,
G4double magnetic_dipole_moment,
G4double pdgSpin,
G4double electric_dipole_moment = 0.0,
G4double magnetic_charge = 0.0 )
inline

Constructor for G4ChargeState.

Parameters
[in]chargeParticle charge.
[in]magnetic_dipole_momentMagnetic dipole moment.
[in]pdgSpinSpin.
[in]electric_dipole_momentElectric dipole moment.
[in]magnetic_chargeMagnetic charge for monopoles.

Referenced by G4ChargeState(), and operator=().

◆ G4ChargeState() [2/2]

G4ChargeState::G4ChargeState ( const G4ChargeState & right)
inline

Copy constructor and assignment operator.

◆ ~G4ChargeState()

G4ChargeState::~G4ChargeState ( )
default

Default Destructor.

Member Function Documentation

◆ ElectricDipoleMoment()

G4double G4ChargeState::ElectricDipoleMoment ( ) const
inline

◆ GetCharge()

◆ GetMagneticDipoleMoment()

◆ GetPDGSpin()

G4double G4ChargeState::GetPDGSpin ( ) const
inline

◆ GetSpin()

◆ MagneticCharge()

G4double G4ChargeState::MagneticCharge ( ) const
inline

◆ operator=()

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

◆ 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()

void G4ChargeState::SetChargeMdmSpin ( G4double charge,
G4double magnetic_dipole_moment,
G4double pdgSpin )
inline

◆ SetChargesAndMoments()

void G4ChargeState::SetChargesAndMoments ( G4double charge,
G4double magnetic_dipole_moment,
G4double electric_dipole_moment,
G4double magnetic_charge )
inline

◆ SetChargeSpin()

void G4ChargeState::SetChargeSpin ( G4double charge,
G4double pdgSpin )
inline

◆ SetChargeSpinMoments()

void G4ChargeState::SetChargeSpinMoments ( G4double charge,
G4double pdgSpin,
G4double magnetic_dipole_moment = DBL_MAX,
G4double electric_dipole_moment = DBL_MAX,
G4double magnetic_charge = DBL_MAX )

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; }
47 if( magnetic_charge < DBL_MAX)
48 { fMagneticCharge= magnetic_charge; }
49}
#define DBL_MAX
Definition templates.hh:62

◆ 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

Modifiers and accessors.

◆ SetSpin()

void G4ChargeState::SetSpin ( G4double spin)
inline

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