Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 44 of file G4ChargeState.hh.

Constructor & Destructor Documentation

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 122 of file G4ChargeState.hh.

127 {
128  fCharge = charge;
129  fSpin = spin;
130  fMagn_dipole = magnetic_dipole_moment;
131  fElec_dipole = electric_dipole_moment;
132  fMagneticCharge = magnetic_charge;
133 }
G4ChargeState::G4ChargeState ( const G4ChargeState right)
inline

Definition at line 135 of file G4ChargeState.hh.

136 {
137  fCharge = right.fCharge;
138  fSpin = right.fSpin;
139  fMagn_dipole = right.fMagn_dipole;
140  fElec_dipole = right.fElec_dipole;
141  fMagneticCharge = right.fMagneticCharge;
142 }

Member Function Documentation

G4double G4ChargeState::ElectricDipoleMoment ( ) const
inline

Definition at line 77 of file G4ChargeState.hh.

77 { return fElec_dipole; }
G4double G4ChargeState::GetCharge ( ) const
inline

Definition at line 65 of file G4ChargeState.hh.

65 { return fCharge; }

Here is the caller graph for this function:

G4double G4ChargeState::GetMagneticDipoleMoment ( ) const
inline

Definition at line 74 of file G4ChargeState.hh.

74 { return fMagn_dipole; }

Here is the caller graph for this function:

G4double G4ChargeState::GetPDGSpin ( ) const
inline

Definition at line 71 of file G4ChargeState.hh.

71 { return fSpin; }

Here is the caller graph for this function:

G4double G4ChargeState::GetSpin ( ) const
inline

Definition at line 109 of file G4ChargeState.hh.

109 { return GetPDGSpin(); }
G4double GetPDGSpin() const

Here is the call graph for this function:

Here is the caller graph for this function:

G4double G4ChargeState::MagneticCharge ( ) const
inline

Definition at line 80 of file G4ChargeState.hh.

80 { return fMagneticCharge; }
G4ChargeState & G4ChargeState::operator= ( const G4ChargeState right)
inline

Definition at line 144 of file G4ChargeState.hh.

145 {
146  if (&right == this) return *this;
147 
148  fCharge = right.fCharge;
149  fSpin = right.fSpin;
150  fMagn_dipole = right.fMagn_dipole;
151  fElec_dipole = right.fElec_dipole;
152  fMagneticCharge = right.fMagneticCharge;
153 
154  return *this;
155 }
void G4ChargeState::SetCharge ( G4double  charge)
inline

Definition at line 64 of file G4ChargeState.hh.

64 { fCharge = charge; }

Here is the caller graph for this function:

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

Definition at line 179 of file G4ChargeState.hh.

182 {
183  SetChargeMdm( charge, magneticDM );
184  SetElectricDipoleMoment( electricDM );
185 }
void SetElectricDipoleMoment(G4double moment)
void SetChargeMdm(G4double charge, G4double mag_dipole_moment)

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 157 of file G4ChargeState.hh.

158 {
159  SetCharge( charge );
160  SetMagneticDipoleMoment( mag_dipole_moment);
161 }
void SetCharge(G4double charge)
void SetMagneticDipoleMoment(G4double moment)

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 163 of file G4ChargeState.hh.

166 {
167  SetChargeMdm( charge, magDipoleMoment );
168  SetPDGSpin( pdgSpin );
169 }
void SetChargeMdm(G4double charge, G4double mag_dipole_moment)
void SetPDGSpin(G4double spin)

Here is the call graph for this function:

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

Definition at line 188 of file G4ChargeState.hh.

192 {
193  SetChargeDipoleMoments( charge, magneticDM, electricDM);
194  SetMagneticCharge( magnetic_charge );
195 }
void SetMagneticCharge(G4double charge)
void SetChargeDipoleMoments(G4double charge, G4double magnetic_dipole_moment, G4double electric_dipole_moment)

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 171 of file G4ChargeState.hh.

173 {
174  SetCharge( charge );
175  SetPDGSpin( pdgSpin );
176 }
void SetCharge(G4double charge)
void SetPDGSpin(G4double spin)

Here is the call graph for this function:

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 38 of file G4ChargeState.cc.

45 {
46  fCharge = charge;
47  fSpin = spin;
48  if( magnetic_dipole_moment < DBL_MAX) fMagn_dipole= magnetic_dipole_moment;
49  if( electric_dipole_moment < DBL_MAX) fElec_dipole= electric_dipole_moment;
50  if( magnetic_charge < DBL_MAX) fMagneticCharge= magnetic_charge;
51 }
#define DBL_MAX
Definition: templates.hh:83
void G4ChargeState::SetElectricDipoleMoment ( G4double  moment)
inline

Definition at line 76 of file G4ChargeState.hh.

76 { fElec_dipole = moment; }

Here is the caller graph for this function:

void G4ChargeState::SetMagneticCharge ( G4double  charge)
inline

Definition at line 79 of file G4ChargeState.hh.

79 { fMagneticCharge=charge; }

Here is the caller graph for this function:

void G4ChargeState::SetMagneticDipoleMoment ( G4double  moment)
inline

Definition at line 73 of file G4ChargeState.hh.

73 { fMagn_dipole = moment; }

Here is the caller graph for this function:

void G4ChargeState::SetPDGSpin ( G4double  spin)
inline

Definition at line 70 of file G4ChargeState.hh.

70 { fSpin = spin; }

Here is the caller graph for this function:

void G4ChargeState::SetSpin ( G4double  spin)
inline

Definition at line 108 of file G4ChargeState.hh.

108 { SetPDGSpin( spin); }
void SetPDGSpin(G4double spin)

Here is the call graph for this function:


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