- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/include/G4BetheBlochModel.hh
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4BetheBlochModel.hh,v 1.2 0 2009/04/23 17:44:43vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-0 3$26 // $Id: G4BetheBlochModel.hh,v 1.23 2010/05/27 14:26:17 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 116 116 G4double kineticEnergy); 117 117 118 virtual void CorrectionsAlongStep(const G4MaterialCutsCouple* ,119 const G4DynamicParticle* ,118 virtual void CorrectionsAlongStep(const G4MaterialCutsCouple* couple, 119 const G4DynamicParticle* dp, 120 120 G4double& eloss, 121 G4double& niel,121 G4double&, 122 122 G4double length); 123 123 … … 133 133 G4double kinEnergy); 134 134 135 inline G4double GetChargeSquareRatio() const; 136 137 inline void SetChargeSquareRatio(G4double val); 138 135 139 private: 136 140 137 inlinevoid SetupParameters();141 void SetupParameters(); 138 142 139 143 inline void SetParticle(const G4ParticleDefinition* p); … … 169 173 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 170 174 171 inline void G4BetheBlochModel::SetupParameters()172 {173 mass = particle->GetPDGMass();174 spin = particle->GetPDGSpin();175 G4double q = particle->GetPDGCharge()/eplus;176 chargeSquare = q*q;177 ratio = electron_mass_c2/mass;178 G4double magmom = particle->GetPDGMagneticMoment()*mass/(0.5*eplus*hbar_Planck*c_squared);179 magMoment2 = magmom*magmom - 1.0;180 formfact = 0.0;181 if(particle->GetLeptonNumber() == 0) {182 G4double x = 0.8426*GeV;183 if(spin == 0.0 && mass < GeV) {x = 0.736*GeV;}184 else if(mass > GeV) {185 x /= nist->GetZ13(mass/proton_mass_c2);186 // tlimit = 51.2*GeV*A13[iz]*A13[iz];187 }188 formfact = 2.0*electron_mass_c2/(x*x);189 tlimit = 2.0/formfact;190 }191 }192 193 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....194 195 175 inline void G4BetheBlochModel::SetParticle(const G4ParticleDefinition* p) 196 176 { 197 177 if(particle != p) { 198 178 particle = p; 199 if (p->GetPDGCharge()/eplus > 1.5 && p->GetBaryonNumber() > 2) isIon = true; 179 if (p->GetPDGCharge()/eplus > 1.5 && p->GetBaryonNumber() > 2) 180 { isIon = true; } 200 181 SetupParameters(); 201 182 } … … 206 187 inline void G4BetheBlochModel::SetGenericIon(const G4ParticleDefinition* p) 207 188 { 208 if(p && particle != p) { 209 if(p->GetParticleName() == "GenericIon") isIon = true;189 if(p && particle != p) { 190 if(p->GetParticleName() == "GenericIon") { isIon = true; } 210 191 } 211 192 } 212 193 194 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 195 196 inline G4double G4BetheBlochModel::GetChargeSquareRatio() const 197 { 198 return chargeSquare; 199 } 200 201 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 202 203 inline void G4BetheBlochModel::SetChargeSquareRatio(G4double val) 204 { 205 chargeSquare = val; 206 } 207 208 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 209 213 210 #endif
Note: See TracChangeset
for help on using the changeset viewer.