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

#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)
 
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 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)
 
void SetSpin (G4double spin)
 
G4double GetSpin () const
 

Detailed Description

Definition at line 39 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

Definition at line 118 of file G4ChargeState.hh.

123{
124 fCharge = charge;
125 fSpin = spin;
126 fMagn_dipole = magnetic_dipole_moment;
127 fElec_dipole = electric_dipole_moment;
128 fMagneticCharge = magnetic_charge;
129}

◆ G4ChargeState() [2/2]

G4ChargeState::G4ChargeState ( const G4ChargeState right)
inline

Definition at line 131 of file G4ChargeState.hh.

132{
133 fCharge = right.fCharge;
134 fSpin = right.fSpin;
135 fMagn_dipole = right.fMagn_dipole;
136 fElec_dipole = right.fElec_dipole;
137 fMagneticCharge = right.fMagneticCharge;
138}

Member Function Documentation

◆ ElectricDipoleMoment()

G4double G4ChargeState::ElectricDipoleMoment ( ) const
inline

Definition at line 74 of file G4ChargeState.hh.

74{ return fElec_dipole; }

◆ GetCharge()

◆ GetMagneticDipoleMoment()

G4double G4ChargeState::GetMagneticDipoleMoment ( ) const
inline

◆ GetPDGSpin()

G4double G4ChargeState::GetPDGSpin ( ) const
inline

Definition at line 68 of file G4ChargeState.hh.

68{ return fSpin; }

Referenced by GetSpin().

◆ GetSpin()

◆ MagneticCharge()

G4double G4ChargeState::MagneticCharge ( ) const
inline

Definition at line 77 of file G4ChargeState.hh.

77{ return fMagneticCharge; }

◆ operator=()

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

Definition at line 140 of file G4ChargeState.hh.

141{
142 if (&right == this) return *this;
143
144 fCharge = right.fCharge;
145 fSpin = right.fSpin;
146 fMagn_dipole = right.fMagn_dipole;
147 fElec_dipole = right.fElec_dipole;
148 fMagneticCharge = right.fMagneticCharge;
149
150 return *this;
151}

◆ SetCharge()

void G4ChargeState::SetCharge ( G4double  charge)
inline

Definition at line 60 of file G4ChargeState.hh.

60{ fCharge = charge; }

Referenced by SetChargeMdm(), and SetChargeSpin().

◆ SetChargeDipoleMoments()

void G4ChargeState::SetChargeDipoleMoments ( G4double  charge,
G4double  magnetic_dipole_moment,
G4double  electric_dipole_moment 
)
inline

Definition at line 175 of file G4ChargeState.hh.

178{
179 SetChargeMdm( charge, magneticDM );
180 SetElectricDipoleMoment( electricDM );
181}
void SetChargeMdm(G4double charge, G4double mag_dipole_moment)
void SetElectricDipoleMoment(G4double moment)

Referenced by SetChargesAndMoments().

◆ SetChargeMdm()

void G4ChargeState::SetChargeMdm ( G4double  charge,
G4double  mag_dipole_moment 
)
inline

Definition at line 153 of file G4ChargeState.hh.

154{
155 SetCharge( charge );
156 SetMagneticDipoleMoment( mdipole_mom );
157}
void SetCharge(G4double charge)
void SetMagneticDipoleMoment(G4double moment)

Referenced by SetChargeDipoleMoments(), and SetChargeMdmSpin().

◆ SetChargeMdmSpin()

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

Definition at line 159 of file G4ChargeState.hh.

162{
163 SetChargeMdm( charge, magDipoleMoment );
164 SetPDGSpin( pdgSpin );
165}
void SetPDGSpin(G4double spin)

◆ SetChargesAndMoments()

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

Definition at line 184 of file G4ChargeState.hh.

188{
189 SetChargeDipoleMoments( charge, magneticDM, electricDM);
190 SetMagneticCharge( magnetic_charge );
191}
void SetMagneticCharge(G4double charge)
void SetChargeDipoleMoments(G4double charge, G4double magnetic_dipole_moment, G4double electric_dipole_moment)

Referenced by G4FieldTrack::SetChargeAndMoments().

◆ SetChargeSpin()

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

Definition at line 167 of file G4ChargeState.hh.

169{
170 SetCharge( charge );
171 SetPDGSpin( pdgSpin );
172}

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

Definition at line 33 of file G4ChargeState.cc.

40{
41 fCharge = charge;
42 fSpin = spin;
43 if( magnetic_dipole_moment < DBL_MAX) fMagn_dipole= magnetic_dipole_moment;
44 if( electric_dipole_moment < DBL_MAX) fElec_dipole= electric_dipole_moment;
45 if( magnetic_charge < DBL_MAX) fMagneticCharge= magnetic_charge;
46}
#define DBL_MAX
Definition: templates.hh:62

◆ SetElectricDipoleMoment()

void G4ChargeState::SetElectricDipoleMoment ( G4double  moment)
inline

Definition at line 73 of file G4ChargeState.hh.

73{ fElec_dipole = moment; }

Referenced by SetChargeDipoleMoments().

◆ SetMagneticCharge()

void G4ChargeState::SetMagneticCharge ( G4double  charge)
inline

Definition at line 76 of file G4ChargeState.hh.

76{ fMagneticCharge=charge; }

Referenced by SetChargesAndMoments().

◆ SetMagneticDipoleMoment()

void G4ChargeState::SetMagneticDipoleMoment ( G4double  moment)
inline

Definition at line 70 of file G4ChargeState.hh.

70{ fMagn_dipole = moment; }

Referenced by SetChargeMdm().

◆ SetPDGSpin()

void G4ChargeState::SetPDGSpin ( G4double  spin)
inline

Definition at line 67 of file G4ChargeState.hh.

67{ fSpin = spin; }

Referenced by G4FieldTrack::G4FieldTrack(), SetChargeMdmSpin(), SetChargeSpin(), and SetSpin().

◆ SetSpin()

void G4ChargeState::SetSpin ( G4double  spin)
inline

Definition at line 104 of file G4ChargeState.hh.

104{ SetPDGSpin( spin); }

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