Warning, file /include/Geant4/G4ChargeState.icc was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 inline G4ChargeState::G4ChargeState(G4double charge,
0032 G4double magnetic_dipole_moment,
0033 G4double spin,
0034 G4double electric_dipole_moment,
0035 G4double magnetic_charge)
0036 {
0037 fCharge = charge;
0038 fSpin = spin;
0039 fMagn_dipole = magnetic_dipole_moment;
0040 fElec_dipole = electric_dipole_moment;
0041 fMagneticCharge = magnetic_charge;
0042 }
0043
0044 inline G4ChargeState::G4ChargeState( const G4ChargeState& right )
0045 {
0046 fCharge = right.fCharge;
0047 fSpin = right.fSpin;
0048 fMagn_dipole = right.fMagn_dipole;
0049 fElec_dipole = right.fElec_dipole;
0050 fMagneticCharge = right.fMagneticCharge;
0051 }
0052
0053 inline G4ChargeState& G4ChargeState::operator = ( const G4ChargeState& right )
0054 {
0055 if (&right == this) { return *this; }
0056
0057 fCharge = right.fCharge;
0058 fSpin = right.fSpin;
0059 fMagn_dipole = right.fMagn_dipole;
0060 fElec_dipole = right.fElec_dipole;
0061 fMagneticCharge = right.fMagneticCharge;
0062
0063 return *this;
0064 }
0065
0066 inline void G4ChargeState::SetCharge(G4double charge)
0067 {
0068 fCharge = charge;
0069 }
0070
0071 inline G4double G4ChargeState::GetCharge() const
0072 {
0073 return fCharge;
0074 }
0075
0076 inline void G4ChargeState::SetPDGSpin(G4double spin)
0077 {
0078 fSpin = spin;
0079 }
0080
0081 inline G4double G4ChargeState::GetPDGSpin() const
0082 {
0083 return fSpin;
0084 }
0085
0086 inline void G4ChargeState::SetSpin(G4double spin)
0087 {
0088 SetPDGSpin( spin);
0089 }
0090
0091 inline G4double G4ChargeState::GetSpin() const
0092 {
0093 return GetPDGSpin();
0094 }
0095
0096 inline void G4ChargeState::SetMagneticDipoleMoment(G4double moment)
0097 {
0098 fMagn_dipole = moment;
0099 }
0100
0101 inline G4double G4ChargeState::GetMagneticDipoleMoment() const
0102 {
0103 return fMagn_dipole;
0104 }
0105
0106 inline void G4ChargeState::SetElectricDipoleMoment(G4double moment)
0107 {
0108 fElec_dipole = moment;
0109 }
0110
0111 inline G4double G4ChargeState::ElectricDipoleMoment() const
0112 {
0113 return fElec_dipole;
0114 }
0115
0116 inline void G4ChargeState::SetMagneticCharge(G4double charge)
0117 {
0118 fMagneticCharge=charge;
0119 }
0120
0121 inline G4double G4ChargeState::MagneticCharge() const
0122 {
0123 return fMagneticCharge;
0124 }
0125
0126 inline void G4ChargeState::SetChargeMdm(G4double charge, G4double mdipole_mom)
0127 {
0128 SetCharge( charge );
0129 SetMagneticDipoleMoment( mdipole_mom );
0130 }
0131
0132 inline void G4ChargeState::SetChargeMdmSpin(G4double charge,
0133 G4double magDipoleMoment,
0134 G4double pdgSpin)
0135 {
0136 SetChargeMdm( charge, magDipoleMoment );
0137 SetPDGSpin( pdgSpin );
0138 }
0139
0140 inline void G4ChargeState::SetChargeSpin(G4double charge,
0141 G4double pdgSpin)
0142 {
0143 SetCharge( charge );
0144 SetPDGSpin( pdgSpin );
0145 }
0146
0147 inline void
0148 G4ChargeState::SetChargeDipoleMoments(G4double charge,
0149 G4double magneticDM,
0150 G4double electricDM)
0151 {
0152 SetChargeMdm( charge, magneticDM );
0153 SetElectricDipoleMoment( electricDM );
0154 }
0155
0156 inline void
0157 G4ChargeState::SetChargesAndMoments(G4double charge,
0158 G4double magneticDM,
0159 G4double electricDM,
0160 G4double magnetic_charge )
0161 {
0162 SetChargeDipoleMoments( charge, magneticDM, electricDM);
0163 SetMagneticCharge( magnetic_charge );
0164 }