46 fMagn_dipole = magnetic_dipole_moment;
47 fElec_dipole = electric_dipole_moment;
48 fMagneticCharge = magnetic_charge;
53 fCharge = right.fCharge;
55 fMagn_dipole = right.fMagn_dipole;
56 fElec_dipole = right.fElec_dipole;
57 fMagneticCharge = right.fMagneticCharge;
62 if (&right ==
this)
return *
this;
64 fCharge = right.fCharge;
66 fMagn_dipole = right.fMagn_dipole;
67 fElec_dipole = right.fElec_dipole;
68 fMagneticCharge = right.fMagneticCharge;
83 if( magnetic_dipole_moment <
DBL_MAX) fMagn_dipole= magnetic_dipole_moment;
84 if( electric_dipole_moment <
DBL_MAX) fElec_dipole= electric_dipole_moment;
85 if( magnetic_charge <
DBL_MAX) fMagneticCharge= magnetic_charge;
G4ChargeState & operator=(const G4ChargeState &right)
G4ChargeState(G4double charge, G4double spin=0, G4double magnetic_dipole_moment=0.0, G4double electric_dipole_moment=0.0, G4double magnetic_charge=0.0)
void SetChargeAndMoments(G4double charge, G4double spin, G4double magnetic_dipole_moment=DBL_MAX, G4double electric_dipole_moment=DBL_MAX, G4double magnetic_charge=DBL_MAX)