Geant4-11
Public Member Functions | Private Attributes
G4ChargeState Class Reference

#include <G4ChargeState.hh>

Public Member Functions

G4double ElectricDipoleMoment () const
 
 G4ChargeState (const G4ChargeState &right)
 
 G4ChargeState (G4double charge, G4double magnetic_dipole_moment, G4double pdgSpin, G4double electric_dipole_moment=0.0, G4double magnetic_charge=0.0)
 
G4double GetCharge () const
 
G4double GetMagneticDipoleMoment () const
 
G4double GetPDGSpin () const
 
G4double GetSpin () const
 
G4double MagneticCharge () const
 
G4ChargeStateoperator= (const G4ChargeState &right)
 
void SetCharge (G4double charge)
 
void SetChargeDipoleMoments (G4double charge, G4double magnetic_dipole_moment, G4double electric_dipole_moment)
 
void SetChargeMdm (G4double charge, G4double mag_dipole_moment)
 
void SetChargeMdmSpin (G4double charge, G4double magnetic_dipole_moment, G4double pdgSpin)
 
void SetChargesAndMoments (G4double charge, G4double magnetic_dipole_moment, G4double electric_dipole_moment, G4double magnetic_charge)
 
void SetChargeSpin (G4double charge, G4double pdgSpin)
 
void SetChargeSpinMoments (G4double charge, G4double pdgSpin, G4double magnetic_dipole_moment=DBL_MAX, G4double electric_dipole_moment=DBL_MAX, G4double magnetic_charge=DBL_MAX)
 
void SetElectricDipoleMoment (G4double moment)
 
void SetMagneticCharge (G4double charge)
 
void SetMagneticDipoleMoment (G4double moment)
 
void SetPDGSpin (G4double spin)
 
void SetSpin (G4double spin)
 

Private Attributes

G4double fCharge
 
G4double fElec_dipole
 
G4double fMagn_dipole
 
G4double fMagneticCharge
 
G4double fSpin
 

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}
G4double fMagneticCharge
G4double fElec_dipole
G4double fMagn_dipole
G4double fCharge

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

◆ 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;
138}

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

Member Function Documentation

◆ ElectricDipoleMoment()

G4double G4ChargeState::ElectricDipoleMoment ( ) const
inline

Definition at line 74 of file G4ChargeState.hh.

74{ return fElec_dipole; }

References fElec_dipole.

◆ GetCharge()

G4double G4ChargeState::GetCharge ( ) const
inline

◆ GetMagneticDipoleMoment()

G4double G4ChargeState::GetMagneticDipoleMoment ( ) const
inline

◆ GetPDGSpin()

G4double G4ChargeState::GetPDGSpin ( ) const
inline

Definition at line 68 of file G4ChargeState.hh.

68{ return fSpin; }

References fSpin.

Referenced by GetSpin().

◆ GetSpin()

G4double G4ChargeState::GetSpin ( ) const
inline

◆ MagneticCharge()

G4double G4ChargeState::MagneticCharge ( ) const
inline

Definition at line 77 of file G4ChargeState.hh.

77{ return fMagneticCharge; }

References 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;
149
150 return *this;
151}

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

◆ SetCharge()

void G4ChargeState::SetCharge ( G4double  charge)
inline

Definition at line 60 of file G4ChargeState.hh.

60{ fCharge = charge; }

References fCharge.

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)

References SetChargeMdm(), and SetElectricDipoleMoment().

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)

References SetCharge(), and SetMagneticDipoleMoment().

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)

References SetChargeMdm(), and SetPDGSpin().

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

References SetChargeDipoleMoments(), and SetMagneticCharge().

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}

References SetCharge(), and SetPDGSpin().

◆ 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

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

◆ SetElectricDipoleMoment()

void G4ChargeState::SetElectricDipoleMoment ( G4double  moment)
inline

Definition at line 73 of file G4ChargeState.hh.

73{ fElec_dipole = moment; }

References fElec_dipole.

Referenced by SetChargeDipoleMoments().

◆ SetMagneticCharge()

void G4ChargeState::SetMagneticCharge ( G4double  charge)
inline

Definition at line 76 of file G4ChargeState.hh.

76{ fMagneticCharge=charge; }

References fMagneticCharge.

Referenced by SetChargesAndMoments().

◆ SetMagneticDipoleMoment()

void G4ChargeState::SetMagneticDipoleMoment ( G4double  moment)
inline

Definition at line 70 of file G4ChargeState.hh.

70{ fMagn_dipole = moment; }

References fMagn_dipole.

Referenced by SetChargeMdm().

◆ SetPDGSpin()

void G4ChargeState::SetPDGSpin ( G4double  spin)
inline

Definition at line 67 of file G4ChargeState.hh.

67{ fSpin = spin; }

References fSpin.

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); }

References SetPDGSpin().

Field Documentation

◆ fCharge

G4double G4ChargeState::fCharge
private

◆ fElec_dipole

G4double G4ChargeState::fElec_dipole
private

◆ fMagn_dipole

G4double G4ChargeState::fMagn_dipole
private

◆ fMagneticCharge

G4double G4ChargeState::fMagneticCharge
private

◆ fSpin

G4double G4ChargeState::fSpin
private

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