00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef G4Nucleus_h
00035 #define G4Nucleus_h 1
00036
00037
00038
00039
00040
00041
00042 #include "globals.hh"
00043 #include "G4ThreeVector.hh"
00044 #include "G4ParticleTypes.hh"
00045 #include "G4ReactionProduct.hh"
00046 #include "G4DynamicParticle.hh"
00047 #include "G4ReactionProductVector.hh"
00048 #include "Randomize.hh"
00049
00050 class G4Nucleus
00051 {
00052 public:
00053
00054 G4Nucleus();
00055 G4Nucleus(const G4double A, const G4double Z);
00056 G4Nucleus(const G4int A, const G4int Z);
00057 G4Nucleus(const G4Material* aMaterial);
00058
00059 ~G4Nucleus();
00060
00061 inline G4Nucleus( const G4Nucleus &right )
00062 { *this = right; }
00063
00064 inline G4Nucleus& operator = (const G4Nucleus& right)
00065 {
00066 if (this != &right) {
00067 theA=right.theA;
00068 theZ=right.theZ;
00069 aEff=right.aEff;
00070 zEff=right.zEff;
00071 fIsotope = right.fIsotope;
00072 pnBlackTrackEnergy=right.pnBlackTrackEnergy;
00073 dtaBlackTrackEnergy=right.dtaBlackTrackEnergy;
00074 pnBlackTrackEnergyfromAnnihilation =
00075 right.pnBlackTrackEnergyfromAnnihilation;
00076 dtaBlackTrackEnergyfromAnnihilation =
00077 right.dtaBlackTrackEnergyfromAnnihilation;
00078 theTemp = right.theTemp;
00079 excitationEnergy = right.excitationEnergy;
00080 momentum = right.momentum;
00081 fermiMomentum = right.fermiMomentum;
00082 }
00083 return *this;
00084 }
00085
00086 inline G4bool operator==( const G4Nucleus &right ) const
00087 { return ( this == (G4Nucleus *) &right ); }
00088
00089 inline G4bool operator!=( const G4Nucleus &right ) const
00090 { return ( this != (G4Nucleus *) &right ); }
00091
00092 void ChooseParameters( const G4Material *aMaterial );
00093
00094 void SetParameters( const G4double A, const G4double Z );
00095 void SetParameters( const G4int A, const G4int Z );
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109 inline G4int GetA_asInt() const
00110 { return theA; }
00111
00112 inline G4int GetN_asInt() const
00113 { return theA-theZ; }
00114
00115 inline G4int GetZ_asInt() const
00116 { return theZ; }
00117
00118
00119 inline const G4Isotope* GetIsotope()
00120 { return fIsotope; }
00121
00122 inline void SetIsotope(const G4Isotope* iso)
00123 {
00124 fIsotope = iso;
00125 if(iso) {
00126 theZ = iso->GetZ();
00127 theA = iso->GetN();
00128 aEff = theA;
00129 zEff = theZ;
00130 }
00131 }
00132
00133 G4DynamicParticle *ReturnTargetParticle() const;
00134
00135 G4double AtomicMass( const G4double A, const G4double Z ) const;
00136 G4double AtomicMass( const G4int A, const G4int Z ) const;
00137
00138 G4double GetThermalPz( const G4double mass, const G4double temp ) const;
00139
00140 G4ReactionProduct GetThermalNucleus(G4double aMass, G4double temp=-1) const;
00141
00142 G4ReactionProduct GetBiasedThermalNucleus(G4double aMass, G4ThreeVector aVelocity, G4double temp=-1) const;
00143
00144 G4double Cinema( G4double kineticEnergy );
00145
00146 G4double EvaporationEffects( G4double kineticEnergy );
00147
00148 G4double AnnihilationEvaporationEffects(G4double kineticEnergy, G4double ekOrg);
00149
00150 inline G4double GetPNBlackTrackEnergy() const
00151 { return pnBlackTrackEnergy; }
00152
00153 inline G4double GetDTABlackTrackEnergy() const
00154 { return dtaBlackTrackEnergy; }
00155
00156 inline G4double GetAnnihilationPNBlackTrackEnergy() const
00157 { return pnBlackTrackEnergyfromAnnihilation; }
00158
00159 inline G4double GetAnnihilationDTABlackTrackEnergy() const
00160 { return dtaBlackTrackEnergyfromAnnihilation; }
00161
00162
00163
00164 G4ThreeVector GetFermiMomentum();
00165
00166
00167
00168
00169
00170
00171
00172
00173 G4ReactionProductVector* Fragmentate();
00174
00175
00176
00177 void AddExcitationEnergy(G4double anEnergy);
00178
00179
00180
00181 void AddMomentum(const G4ThreeVector aMomentum);
00182
00183
00184 G4double GetEnergyDeposit() {return excitationEnergy; }
00185
00186
00187
00188
00189
00190
00191 private:
00192
00193 G4int theA;
00194 G4int theZ;
00195 G4double aEff;
00196 G4double zEff;
00197
00198 const G4Isotope* fIsotope;
00199
00200 G4double pnBlackTrackEnergy;
00201
00202 G4double dtaBlackTrackEnergy;
00203
00204 G4double pnBlackTrackEnergyfromAnnihilation;
00205
00206
00207 G4double dtaBlackTrackEnergyfromAnnihilation;
00208
00209
00210
00211
00212
00213
00214 G4double excitationEnergy;
00215
00216
00217 G4ThreeVector momentum;
00218
00219
00220
00221
00222
00223
00224
00225 G4double fermiMomentum;
00226 G4double theTemp;
00227
00228
00229 };
00230
00231 #endif
00232