Changeset 991 for trunk/source/processes/electromagnetic/standard/include
- Timestamp:
- Apr 17, 2009, 12:17:14 PM (15 years ago)
- Location:
- trunk/source/processes/electromagnetic/standard/include
- Files:
-
- 44 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/include/G4ASTARStopping.hh
r961 r991 25 25 // 26 26 // $Id: G4ASTARStopping.hh,v 1.6 2008/11/13 12:04:37 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 29 29 #ifndef G4ASTARStopping_h -
trunk/source/processes/electromagnetic/standard/include/G4BetheBlochModel.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4BetheBlochModel.hh,v 1.1 7 2009/02/20 12:06:37 vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4BetheBlochModel.hh,v 1.16 2008/10/22 16:00:57 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 82 82 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); 83 83 84 virtualG4double MinEnergyCut(const G4ParticleDefinition*,85 84 G4double MinEnergyCut(const G4ParticleDefinition*, 85 const G4MaterialCutsCouple*); 86 86 87 87 virtual G4double ComputeCrossSectionPerElectron( … … 131 131 protected: 132 132 133 virtualG4double MaxSecondaryEnergy(const G4ParticleDefinition*,134 133 G4double MaxSecondaryEnergy(const G4ParticleDefinition*, 134 G4double kinEnergy); 135 135 136 136 private: … … 166 166 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 167 167 168 inline G4double G4BetheBlochModel::MaxSecondaryEnergy( 169 const G4ParticleDefinition* pd, 170 G4double kinEnergy) 171 { 172 if(isIon) SetParticle(pd); 173 G4double tau = kinEnergy/mass; 174 G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.) / 175 (1. + 2.0*(tau + 1.)*ratio + ratio*ratio); 176 return std::min(tmax,tlimit); 177 } 178 179 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 180 168 181 #endif -
trunk/source/processes/electromagnetic/standard/include/G4BetheHeitlerModel.hh
r961 r991 25 25 // 26 26 // $Id: G4BetheHeitlerModel.hh,v 1.6 2007/05/22 17:34:36 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4BohrFluctuations.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4BohrFluctuations.hh,v 1. 4 2009/02/19 19:17:50vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4BohrFluctuations.hh,v 1.3 2007/09/27 13:53:11 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 79 79 void InitialiseMe(const G4ParticleDefinition*); 80 80 81 protected: 82 81 83 private: 82 84 … … 101 103 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 102 104 105 106 inline G4double G4BohrFluctuations::Dispersion( 107 const G4Material* material, 108 const G4DynamicParticle* dp, 109 G4double& tmax, 110 G4double& length) 111 { 112 if(!particle) InitialiseMe(dp->GetDefinition()); 113 114 G4double electronDensity = material->GetElectronDensity(); 115 kineticEnergy = dp->GetKineticEnergy(); 116 G4double etot = kineticEnergy + particleMass; 117 beta2 = kineticEnergy*(kineticEnergy + 2.0*particleMass)/(etot*etot); 118 G4double siga = (1.0/beta2 - 0.5) * twopi_mc2_rcl2 * tmax * length 119 * electronDensity * chargeSquare; 120 121 return siga; 122 } 123 124 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 125 103 126 #endif 104 127 -
trunk/source/processes/electromagnetic/standard/include/G4BraggIonModel.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4BraggIonModel.hh,v 1.1 2 2009/02/20 12:06:37 vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4BraggIonModel.hh,v 1.11 2008/10/22 16:00:57 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 77 77 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); 78 78 79 virtualG4double MinEnergyCut(const G4ParticleDefinition*,80 79 G4double MinEnergyCut(const G4ParticleDefinition*, 80 const G4MaterialCutsCouple*); 81 81 82 82 virtual G4double ComputeCrossSectionPerElectron( … … 128 128 protected: 129 129 130 virtualG4double MaxSecondaryEnergy(const G4ParticleDefinition*,131 130 G4double MaxSecondaryEnergy(const G4ParticleDefinition*, 131 G4double kinEnergy); 132 132 133 133 private: … … 180 180 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 181 181 182 inline G4double G4BraggIonModel::MaxSecondaryEnergy( 183 const G4ParticleDefinition* pd, 184 G4double kinEnergy) 185 { 186 if(pd != particle) SetParticle(pd); 187 G4double tau = kinEnergy/mass; 188 G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.) / 189 (1. + 2.0*(tau + 1.)*ratio + ratio*ratio); 190 return tmax; 191 } 192 193 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 194 182 195 inline void G4BraggIonModel::SetParticle(const G4ParticleDefinition* p) 183 196 { -
trunk/source/processes/electromagnetic/standard/include/G4BraggModel.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4BraggModel.hh,v 1.1 3 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4BraggModel.hh,v 1.12 2008/09/14 17:11:48 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 80 80 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); 81 81 82 virtualG4double MinEnergyCut(const G4ParticleDefinition*,83 82 G4double MinEnergyCut(const G4ParticleDefinition*, 83 const G4MaterialCutsCouple*); 84 84 85 85 virtual G4double ComputeCrossSectionPerElectron( … … 131 131 protected: 132 132 133 virtualG4double MaxSecondaryEnergy(const G4ParticleDefinition*,134 133 G4double MaxSecondaryEnergy(const G4ParticleDefinition*, 134 G4double kinEnergy); 135 135 136 136 private: 137 137 138 inlinevoid SetParticle(const G4ParticleDefinition* p);138 void SetParticle(const G4ParticleDefinition* p); 139 139 140 140 G4bool HasMaterial(const G4Material* material); … … 182 182 G4bool isInitialised; 183 183 }; 184 185 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 186 187 inline G4double G4BraggModel::MaxSecondaryEnergy( 188 const G4ParticleDefinition* pd, 189 G4double kinEnergy) 190 { 191 if(pd != particle) SetParticle(pd); 192 G4double tau = kinEnergy/mass; 193 G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.) / 194 (1. + 2.0*(tau + 1.)*ratio + ratio*ratio); 195 return tmax; 196 } 184 197 185 198 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/source/processes/electromagnetic/standard/include/G4ComptonScattering.hh
r961 r991 25 25 // 26 26 // 27 // $Id: G4ComptonScattering.hh,v 1.2 1 2009/02/20 12:06:37vnivanch Exp $28 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // $Id: G4ComptonScattering.hh,v 1.20 2007/05/23 08:47:34 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 //------------------ G4ComptonScattering physics process ----------------------- … … 82 82 83 83 // true for Gamma only. 84 virtualG4bool IsApplicable(const G4ParticleDefinition&);84 G4bool IsApplicable(const G4ParticleDefinition&); 85 85 86 86 // Print few lines of informations about the process: validity range, 87 87 virtual void PrintInfo(); 88 88 89 89 90 protected: … … 96 97 }; 97 98 99 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 100 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 101 102 inline 103 G4bool G4ComptonScattering::IsApplicable(const G4ParticleDefinition& p) 104 { 105 return (&p == G4Gamma::Gamma()); 106 } 107 98 108 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 99 109 -
trunk/source/processes/electromagnetic/standard/include/G4ComptonScattering52.hh
r961 r991 26 26 // 27 27 // $Id: G4ComptonScattering52.hh,v 1.4 2007/05/16 14:00:56 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-02 -ref-02$28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 //------------------ G4ComptonScattering52 physics process ----------------------- -
trunk/source/processes/electromagnetic/standard/include/G4CoulombScattering.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4CoulombScattering.hh,v 1.1 2 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4CoulombScattering.hh,v 1.11 2008/06/13 08:19:43 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 104 104 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 105 105 106 inline G4bool G4CoulombScattering::IsApplicable(const G4ParticleDefinition& p) 107 { 108 return (p.GetPDGCharge() != 0.0 && !p.IsShortLived()); 109 } 110 111 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 112 106 113 inline void G4CoulombScattering::SetThetaMin(G4double val) 107 114 { -
trunk/source/processes/electromagnetic/standard/include/G4CoulombScatteringModel.hh
r961 r991 25 25 // 26 26 // $Id: G4CoulombScatteringModel.hh,v 1.15 2008/07/31 13:11:34 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4GammaConversion.hh
r961 r991 25 25 // 26 26 // 27 // $Id: G4GammaConversion.hh,v 1.2 3 2009/02/20 12:06:37vnivanch Exp $28 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // $Id: G4GammaConversion.hh,v 1.22 2007/05/23 08:47:34 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 // … … 85 85 86 86 // true for Gamma only. 87 virtualG4bool IsApplicable(const G4ParticleDefinition&);87 G4bool IsApplicable(const G4ParticleDefinition&); 88 88 89 89 // Print few lines of informations about the process: validity range, … … 99 99 }; 100 100 101 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 102 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 103 104 inline G4bool G4GammaConversion::IsApplicable(const G4ParticleDefinition& p) 105 { 106 return (&p == G4Gamma::Gamma()); 107 } 108 101 109 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 102 110 -
trunk/source/processes/electromagnetic/standard/include/G4InitXscPAI.hh
r961 r991 26 26 // 27 27 // $Id: G4InitXscPAI.hh,v 1.8 2006/06/29 19:50:22 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-02 -ref-02$28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 // -
trunk/source/processes/electromagnetic/standard/include/G4IonFluctuations.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4IonFluctuations.hh,v 1. 9 2009/02/19 19:17:50vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4IonFluctuations.hh,v 1.8 2008/10/22 16:04:33 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 84 84 85 85 // Initialisation prestep 86 void SetParticleAndCharge(const G4ParticleDefinition*, G4double q2);86 inline void SetParticleAndCharge(const G4ParticleDefinition*, G4double q2); 87 87 88 88 private: … … 117 117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 118 118 119 inline 120 void G4IonFluctuations::SetParticleAndCharge(const G4ParticleDefinition* part, 121 G4double q2) 122 { 123 if(part != particle) { 124 particle = part; 125 particleMass = part->GetPDGMass(); 126 charge = part->GetPDGCharge()/eplus; 127 chargeSquare = charge*charge; 128 } 129 effChargeSquare = q2; 130 uniFluct.SetParticleAndCharge(part, q2); 131 } 132 133 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 134 119 135 #endif 120 136 -
trunk/source/processes/electromagnetic/standard/include/G4KleinNishinaCompton.hh
r961 r991 25 25 // 26 26 // $Id: G4KleinNishinaCompton.hh,v 1.9 2007/05/22 17:34:36 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4MollerBhabhaModel.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4MollerBhabhaModel.hh,v 1. 20 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4MollerBhabhaModel.hh,v 1.19 2007/05/22 17:34:36 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 74 74 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); 75 75 76 virtualG4double MinEnergyCut(const G4ParticleDefinition*,77 76 G4double MinEnergyCut(const G4ParticleDefinition*, 77 const G4MaterialCutsCouple*); 78 78 79 79 virtual G4double ComputeCrossSectionPerElectron( … … 109 109 protected: 110 110 111 virtualG4double MaxSecondaryEnergy(const G4ParticleDefinition*,112 111 G4double MaxSecondaryEnergy(const G4ParticleDefinition*, 112 G4double kinEnergy); 113 113 114 inlinevoid SetParticle(const G4ParticleDefinition* p);114 void SetParticle(const G4ParticleDefinition* p); 115 115 116 116 const G4ParticleDefinition* particle; … … 127 127 G4MollerBhabhaModel & operator=(const G4MollerBhabhaModel &right); 128 128 G4MollerBhabhaModel(const G4MollerBhabhaModel&); 129 130 G4bool isInitialised;131 132 129 }; 133 130 134 131 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 135 132 136 inline void G4MollerBhabhaModel::SetParticle(const G4ParticleDefinition* p) 133 inline G4double G4MollerBhabhaModel::MaxSecondaryEnergy( 134 const G4ParticleDefinition*, 135 G4double kinEnergy) 137 136 { 138 particle = p; 139 if(p != theElectron) isElectron = false; 137 G4double tmax = kinEnergy; 138 if(isElectron) tmax *= 0.5; 139 return tmax; 140 140 } 141 141 -
trunk/source/processes/electromagnetic/standard/include/G4MscModel71.hh
r961 r991 25 25 // 26 26 // $Id: G4MscModel71.hh,v 1.5 2007/05/22 17:34:36 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4MultipleScattering.hh
r961 r991 25 25 // 26 26 // $Id: G4MultipleScattering.hh,v 1.36 2008/03/10 10:39:21 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ----------------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4MultipleScattering71.hh
r961 r991 25 25 // 26 26 // $Id: G4MultipleScattering71.hh,v 1.6 2008/07/16 11:27:41 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // … … 59 59 // 60 60 // $Id: G4MultipleScattering71.hh,v 1.6 2008/07/16 11:27:41 vnivanch Exp $ 61 // GEANT4 tag $Name: geant4-09-02 -ref-02$61 // GEANT4 tag $Name: geant4-09-02 $ 62 62 63 63 // class description -
trunk/source/processes/electromagnetic/standard/include/G4PAIModel.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4PAIModel.hh,v 1.22 2009/02/19 19:17:50 vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02-ref-02 $28 26 // 29 27 // ------------------------------------------------------------------- … … 77 75 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); 78 76 79 virtual void InitialiseMe(const G4ParticleDefinition*) ;80 81 virtual G4double ComputeDEDX PerVolume(const G4Material*,77 virtual void InitialiseMe(const G4ParticleDefinition*) {}; 78 79 virtual G4double ComputeDEDX(const G4MaterialCutsCouple*, 82 80 const G4ParticleDefinition*, 83 81 G4double kineticEnergy, 84 82 G4double cutEnergy); 85 83 86 virtual G4double CrossSection PerVolume(const G4Material*,84 virtual G4double CrossSection(const G4MaterialCutsCouple*, 87 85 const G4ParticleDefinition*, 88 86 G4double kineticEnergy, … … 120 118 121 119 void SetVerboseLevel(G4int verbose){fVerbose=verbose;}; 120 121 122 122 123 123 protected: … … 192 192 }; 193 193 194 ///////////////////////////////////////////////////////////////////// 195 196 inline G4double G4PAIModel::MaxSecondaryEnergy( const G4ParticleDefinition* p, 197 G4double kinEnergy) 198 { 199 G4double tmax = kinEnergy; 200 if(p == fElectron) tmax *= 0.5; 201 else if(p != fPositron) { 202 G4double mass = p->GetPDGMass(); 203 G4double ratio= electron_mass_c2/mass; 204 G4double gamma= kinEnergy/mass + 1.0; 205 tmax = 2.0*electron_mass_c2*(gamma*gamma - 1.) / 206 (1. + 2.0*gamma*ratio + ratio*ratio); 207 } 208 return tmax; 209 } 210 211 /////////////////////////////////////////////////////////////// 212 213 inline void G4PAIModel::DefineForRegion(const G4Region* r) 214 { 215 fPAIRegionVector.push_back(r); 216 } 217 194 218 #endif 195 219 -
trunk/source/processes/electromagnetic/standard/include/G4PAIPhotonModel.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4PAIPhotonModel.hh,v 1.12 2009/02/19 19:17:50 vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02-ref-02 $28 26 // 29 27 // ------------------------------------------------------------------- … … 76 74 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); 77 75 78 virtual void InitialiseMe(const G4ParticleDefinition*) ;79 80 virtual G4double ComputeDEDX PerVolume(const G4Material*,81 82 83 84 85 virtual G4double CrossSection PerVolume(const G4Material*,86 87 88 89 76 virtual void InitialiseMe(const G4ParticleDefinition*) {}; 77 78 virtual G4double ComputeDEDX(const G4MaterialCutsCouple*, 79 const G4ParticleDefinition*, 80 G4double kineticEnergy, 81 G4double cutEnergy); 82 83 virtual G4double CrossSection(const G4MaterialCutsCouple*, 84 const G4ParticleDefinition*, 85 G4double kineticEnergy, 86 G4double cutEnergy, 87 G4double maxEnergy); 90 88 91 89 virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*, … … 124 122 G4double position, G4int iTransfer ); 125 123 124 125 126 126 protected: 127 127 128 128 G4double MaxSecondaryEnergy(const G4ParticleDefinition*, 129 129 G4double kinEnergy); 130 130 131 131 private: … … 145 145 G4int fVerbose; 146 146 G4PhysicsLogVector* fProtonEnergyVector ; 147 148 147 149 148 150 // vectors … … 202 204 }; 203 205 206 ///////////////////////////////////////////////////////////////////// 207 208 inline G4double G4PAIPhotonModel::MaxSecondaryEnergy( const G4ParticleDefinition* p, 209 G4double kinEnergy) 210 { 211 G4double tmax = kinEnergy; 212 if(p == fElectron) tmax *= 0.5; 213 else if(p != fPositron) { 214 G4double mass = p->GetPDGMass(); 215 G4double ratio= electron_mass_c2/mass; 216 G4double gamma= kinEnergy/mass + 1.0; 217 tmax = 2.0*electron_mass_c2*(gamma*gamma - 1.) / 218 (1. + 2.0*gamma*ratio + ratio*ratio); 219 } 220 return tmax; 221 } 222 223 /////////////////////////////////////////////////////////////// 224 225 inline void G4PAIPhotonModel::DefineForRegion(const G4Region* r) 226 { 227 fPAIRegionVector.push_back(r); 228 } 229 204 230 #endif 205 231 -
trunk/source/processes/electromagnetic/standard/include/G4PAIxSection.hh
r961 r991 26 26 // 27 27 // $Id: G4PAIxSection.hh,v 1.15 2008/05/30 16:04:40 grichine Exp $ 28 // GEANT4 tag $Name: geant4-09-02 -ref-02$28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 // -
trunk/source/processes/electromagnetic/standard/include/G4PAIySection.hh
r961 r991 26 26 // 27 27 // $Id: G4PAIySection.hh,v 1.1 2007/10/01 17:45:14 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-02 -ref-02$28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 // -
trunk/source/processes/electromagnetic/standard/include/G4PEEffectModel.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4PEEffectModel.hh,v 1. 7 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4PEEffectModel.hh,v 1.6 2007/05/22 17:34:36 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 41 41 // 42 42 // 06.02.2006 : added ComputeMeanFreePath() (mma) 43 // 20.02.2009 : move virtual inline to .cc, substitute44 // ComputeMeanFreePath() by CrossSectionPerVolume (VI)45 43 // 46 44 // Class Description: … … 72 70 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); 73 71 74 virtualG4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*,75 76 77 78 72 G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition*, 73 G4double kinEnergy, 74 G4double Z, 75 G4double A, 76 G4double, G4double); 79 77 80 virtual G4double CrossSectionPerVolume(const G4Material*, 81 const G4ParticleDefinition*, 82 G4double kineticEnergy, 83 G4double cutEnergy, 84 G4double maxEnergy); 78 G4double ComputeMeanFreePath( const G4ParticleDefinition*, 79 G4double kinEnergy, 80 const G4Material* material, 81 G4double, G4double); 85 82 86 83 virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*, … … 103 100 }; 104 101 102 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo..... 103 104 inline G4double G4PEEffectModel::ComputeCrossSectionPerAtom( 105 const G4ParticleDefinition*, 106 G4double energy, 107 G4double Z, G4double, 108 G4double, G4double) 109 { 110 G4double* SandiaCof = G4SandiaTable::GetSandiaCofPerAtom((G4int)Z, energy); 111 112 G4double energy2 = energy*energy, energy3 = energy*energy2, 113 energy4 = energy2*energy2; 114 115 return SandiaCof[0]/energy + SandiaCof[1]/energy2 + 116 SandiaCof[2]/energy3 + SandiaCof[3]/energy4; 117 } 118 119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 120 121 inline G4double G4PEEffectModel::ComputeMeanFreePath( 122 const G4ParticleDefinition*, 123 G4double energy, 124 const G4Material* material, 125 G4double, G4double) 126 { 127 G4double* SandiaCof = material->GetSandiaTable() 128 ->GetSandiaCofForMaterial(energy); 129 130 G4double energy2 = energy*energy, energy3 = energy*energy2, 131 energy4 = energy2*energy2; 132 133 G4double cross = SandiaCof[0]/energy + SandiaCof[1]/energy2 + 134 SandiaCof[2]/energy3 + SandiaCof[3]/energy4; 135 136 G4double mfp = DBL_MAX; 137 if (cross > 0.) mfp = 1./cross; 138 return mfp; 139 } 140 105 141 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 106 142 -
trunk/source/processes/electromagnetic/standard/include/G4PSTARStopping.hh
r961 r991 25 25 // 26 26 // $Id: G4PSTARStopping.hh,v 1.5 2008/11/13 12:04:37 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 29 29 #ifndef G4PSTARStopping_h -
trunk/source/processes/electromagnetic/standard/include/G4PhotoElectricEffect.hh
r961 r991 25 25 // 26 26 // 27 // $Id: G4PhotoElectricEffect.hh,v 1.2 5 2009/02/20 12:06:37vnivanch Exp $28 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // $Id: G4PhotoElectricEffect.hh,v 1.24 2007/05/23 08:47:34 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 // … … 91 91 92 92 // true for Gamma only. 93 virtualG4bool IsApplicable(const G4ParticleDefinition&);93 G4bool IsApplicable(const G4ParticleDefinition&); 94 94 95 95 // Print few lines of informations about the process: validity range, 96 v irtual void PrintInfo();96 void PrintInfo(); 97 97 98 98 protected: 99 99 100 v irtual void InitialiseProcess(const G4ParticleDefinition*);100 void InitialiseProcess(const G4ParticleDefinition*); 101 101 102 102 private: … … 105 105 }; 106 106 107 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 108 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 109 110 inline 111 G4bool G4PhotoElectricEffect::IsApplicable(const G4ParticleDefinition& p) 112 { 113 return (&p == G4Gamma::Gamma()); 114 } 115 107 116 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 108 117 -
trunk/source/processes/electromagnetic/standard/include/G4PolarizedComptonScattering.hh
r961 r991 26 26 // 27 27 // $Id: G4PolarizedComptonScattering.hh,v 1.9 2006/06/29 19:51:14 gunter Exp $ 28 // GEANT4 tag $Name: geant4-09-02 -ref-02$28 // GEANT4 tag $Name: geant4-09-02 $ 29 29 // 30 30 // --------- G4PolarizedComptonScattering physics process ---------------------- -
trunk/source/processes/electromagnetic/standard/include/G4UniversalFluctuation.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4UniversalFluctuation.hh,v 1. 8 2009/02/19 19:17:50vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4UniversalFluctuation.hh,v 1.6 2008/10/22 16:04:33 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 70 70 virtual ~G4UniversalFluctuation(); 71 71 72 virtualG4double SampleFluctuations(const G4Material*,73 74 75 76 72 G4double SampleFluctuations(const G4Material*, 73 const G4DynamicParticle*, 74 G4double&, 75 G4double&, 76 G4double&); 77 77 78 virtualG4double Dispersion( const G4Material*,79 80 81 78 G4double Dispersion( const G4Material*, 79 const G4DynamicParticle*, 80 G4double&, 81 G4double&); 82 82 83 // Initialisation before the run 84 virtual void InitialiseMe(const G4ParticleDefinition*); 83 void InitialiseMe(const G4ParticleDefinition*); 85 84 86 85 // Initialisation prestep 87 virtual void SetParticleAndCharge(const G4ParticleDefinition*, G4double q2); 86 inline void SetParticleAndCharge(const G4ParticleDefinition*, G4double q2); 87 88 protected: 88 89 89 90 private: … … 125 126 }; 126 127 128 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 129 130 inline void 131 G4UniversalFluctuation::SetParticleAndCharge(const G4ParticleDefinition* part, 132 G4double q2) 133 { 134 if(part != particle) { 135 particle = part; 136 particleMass = part->GetPDGMass(); 137 } 138 chargeSquare = q2; 139 } 140 127 141 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 128 142 -
trunk/source/processes/electromagnetic/standard/include/G4UrbanMscModel.hh
r961 r991 25 25 // 26 26 // $Id: G4UrbanMscModel.hh,v 1.33 2008/03/10 10:39:21 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4UrbanMscModel2.hh
r966 r991 25 25 // 26 26 // $Id: G4UrbanMscModel2.hh,v 1.11 2008/12/18 13:01:34 gunter Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4UrbanMscModel90.hh
r961 r991 25 25 // 26 26 // $Id: G4UrbanMscModel90.hh,v 1.4 2008/10/29 14:15:30 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4WaterStopping.hh
r961 r991 25 25 // 26 26 // $Id: G4WaterStopping.hh,v 1.6 2008/09/09 09:30:58 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 29 29 #ifndef G4WaterStopping_h -
trunk/source/processes/electromagnetic/standard/include/G4WentzelVIModel.hh
r966 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4WentzelVIModel.hh,v 1. 8 2009/02/19 19:17:15vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4WentzelVIModel.hh,v 1.7 2008/08/04 08:49:09 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 66 66 class G4LossTableManager; 67 67 class G4ParticleChangeForMSC; 68 //class G4SafetyHelper;68 class G4SafetyHelper; 69 69 class G4ParticleDefinition; 70 70 … … 133 133 G4ParticleChangeForMSC* fParticleChange; 134 134 135 //G4SafetyHelper* safetyHelper;135 G4SafetyHelper* safetyHelper; 136 136 G4PhysicsTable* theLambdaTable; 137 137 G4PhysicsTable* theLambda2Table; -
trunk/source/processes/electromagnetic/standard/include/G4eBremsstrahlung.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4eBremsstrahlung.hh,v 1.3 7 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4eBremsstrahlung.hh,v 1.36 2007/05/23 08:47:34 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 89 89 virtual ~G4eBremsstrahlung(); 90 90 91 virtualG4bool IsApplicable(const G4ParticleDefinition& p);91 G4bool IsApplicable(const G4ParticleDefinition& p); 92 92 93 93 // Print out of the class parameters … … 111 111 112 112 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 113 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 114 115 inline G4bool G4eBremsstrahlung::IsApplicable(const G4ParticleDefinition& p) 116 { 117 return (&p == G4Electron::Electron() || &p == G4Positron::Positron()); 118 } 119 120 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 113 121 114 122 #endif -
trunk/source/processes/electromagnetic/standard/include/G4eBremsstrahlungModel.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4eBremsstrahlungModel.hh,v 1.2 6 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4eBremsstrahlungModel.hh,v 1.25 2008/11/13 19:28:58 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 75 75 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); 76 76 77 virtualG4double MinEnergyCut(const G4ParticleDefinition*,78 77 G4double MinEnergyCut(const G4ParticleDefinition*, 78 const G4MaterialCutsCouple*); 79 79 80 80 virtual G4double ComputeDEDXPerVolume(const G4Material*, … … 103 103 protected: 104 104 105 inline G4double MaxSecondaryEnergy(const G4ParticleDefinition*, 106 G4double kineticEnergy); 107 105 108 const G4Element* SelectRandomAtom(const G4MaterialCutsCouple* couple); 106 109 … … 188 191 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 189 192 193 inline 194 G4double G4eBremsstrahlungModel::MaxSecondaryEnergy( 195 const G4ParticleDefinition*, 196 G4double kineticEnergy) 197 { 198 return kineticEnergy; 199 } 200 201 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 202 190 203 #endif -
trunk/source/processes/electromagnetic/standard/include/G4eBremsstrahlungRelModel.hh
r966 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4eBremsstrahlungRelModel.hh,v 1.1 1 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4eBremsstrahlungRelModel.hh,v 1.10 2008/11/14 09:25:19 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 71 71 virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); 72 72 73 virtualG4double MinEnergyCut(const G4ParticleDefinition*,74 73 G4double MinEnergyCut(const G4ParticleDefinition*, 74 const G4MaterialCutsCouple*); 75 75 76 76 virtual G4double ComputeDEDXPerVolume(const G4Material*, … … 97 97 inline G4double LPMconstant() const; 98 98 99 protected: 100 101 inline G4double MaxSecondaryEnergy(const G4ParticleDefinition*, 102 G4double kineticEnergy); 103 99 104 private: 100 105 … … 202 207 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 203 208 209 inline G4double 210 G4eBremsstrahlungRelModel::MaxSecondaryEnergy(const G4ParticleDefinition*, 211 G4double kineticEnergy) 212 { 213 return kineticEnergy; 214 } 215 216 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 217 204 218 205 219 inline G4double G4eBremsstrahlungRelModel::Phi1(G4double gg, G4double) -
trunk/source/processes/electromagnetic/standard/include/G4eCoulombScatteringModel.hh
r961 r991 25 25 // 26 26 // $Id: G4eCoulombScatteringModel.hh,v 1.36 2008/08/04 08:49:09 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4eIonisation.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4eIonisation.hh,v 1.3 6 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4eIonisation.hh,v 1.35 2007/05/23 08:47:34 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 88 88 virtual ~G4eIonisation(); 89 89 90 virtualG4bool IsApplicable(const G4ParticleDefinition& p);90 G4bool IsApplicable(const G4ParticleDefinition& p); 91 91 92 92 // Print out of the class parameters … … 98 98 const G4ParticleDefinition*); 99 99 100 virtualG4double MinPrimaryEnergy(const G4ParticleDefinition*,101 100 G4double MinPrimaryEnergy(const G4ParticleDefinition*, 101 const G4Material*, G4double cut); 102 102 103 103 private: … … 114 114 }; 115 115 116 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 118 119 inline G4double G4eIonisation::MinPrimaryEnergy(const G4ParticleDefinition*, 120 const G4Material*, 121 G4double cut) 122 { 123 G4double x = cut; 124 if(isElectron) x += cut; 125 return x; 126 } 127 128 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 129 130 inline G4bool G4eIonisation::IsApplicable(const G4ParticleDefinition& p) 131 { 132 return (&p == G4Electron::Electron() || &p == G4Positron::Positron()); 133 } 134 116 135 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 117 136 -
trunk/source/processes/electromagnetic/standard/include/G4eMultipleScattering.hh
r966 r991 25 25 // 26 26 // $Id: G4eMultipleScattering.hh,v 1.2 2008/03/11 12:03:43 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ----------------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4eeToTwoGammaModel.hh
r961 r991 25 25 // 26 26 // $Id: G4eeToTwoGammaModel.hh,v 1.14 2007/05/23 08:47:34 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4eplusAnnihilation.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4eplusAnnihilation.hh,v 1.2 4 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4eplusAnnihilation.hh,v 1.23 2007/05/23 08:47:34 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 73 73 virtual ~G4eplusAnnihilation(); 74 74 75 virtualG4bool IsApplicable(const G4ParticleDefinition& p);75 G4bool IsApplicable(const G4ParticleDefinition& p); 76 76 77 77 virtual G4VParticleChange* AtRestDoIt( … … 79 79 const G4Step& stepData); 80 80 81 virtualG4double AtRestGetPhysicalInteractionLength(81 G4double AtRestGetPhysicalInteractionLength( 82 82 const G4Track& track, 83 83 G4ForceCondition* condition … … 96 96 }; 97 97 98 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 99 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 100 101 inline G4bool G4eplusAnnihilation::IsApplicable(const G4ParticleDefinition& p) 102 { 103 return (&p == G4Positron::Positron()); 104 } 105 106 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 107 108 inline 109 G4double G4eplusAnnihilation::AtRestGetPhysicalInteractionLength( 110 const G4Track&, G4ForceCondition* condition) 111 { 112 *condition = NotForced; 113 return 0.0; 114 } 115 98 116 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 99 117 -
trunk/source/processes/electromagnetic/standard/include/G4hIonisation.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4hIonisation.hh,v 1.4 2 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4hIonisation.hh,v 1.41 2008/09/14 17:11:48 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 93 93 virtual ~G4hIonisation(); 94 94 95 virtualG4bool IsApplicable(const G4ParticleDefinition& p);95 G4bool IsApplicable(const G4ParticleDefinition& p); 96 96 97 virtualG4double MinPrimaryEnergy(const G4ParticleDefinition* p,98 97 G4double MinPrimaryEnergy(const G4ParticleDefinition* p, 98 const G4Material*, G4double cut); 99 99 100 100 // Print out of the class parameters … … 123 123 124 124 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 125 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 126 127 inline G4bool G4hIonisation::IsApplicable(const G4ParticleDefinition& p) 128 { 129 return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 10.0*MeV && 130 !p.IsShortLived()); 131 } 132 133 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 134 135 inline G4double G4hIonisation::MinPrimaryEnergy(const G4ParticleDefinition*, 136 const G4Material*, 137 G4double cut) 138 { 139 G4double x = 0.5*cut/electron_mass_c2; 140 G4double g = x*ratio + std::sqrt((1. + x)*(1. + x*ratio*ratio)); 141 return mass*(g - 1.0); 142 } 143 144 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 125 145 126 146 inline void G4hIonisation::ActivateNuclearStopping(G4bool val) -
trunk/source/processes/electromagnetic/standard/include/G4hMultipleScattering.hh
r961 r991 25 25 // 26 26 // $Id: G4hMultipleScattering.hh,v 1.6 2008/05/09 08:23:44 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ----------------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4ionGasIonisation.hh
r961 r991 25 25 // 26 26 // $Id: G4ionGasIonisation.hh,v 1.4 2008/09/12 16:26:34 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 -ref-02$27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- -
trunk/source/processes/electromagnetic/standard/include/G4ionIonisation.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4ionIonisation.hh,v 1.5 7 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4ionIonisation.hh,v 1.56 2008/09/14 17:11:48 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 85 85 virtual ~G4ionIonisation(); 86 86 87 virtualG4bool IsApplicable(const G4ParticleDefinition& p);87 inline G4bool IsApplicable(const G4ParticleDefinition& p); 88 88 89 89 // Print out of the class parameters … … 102 102 const G4ParticleDefinition*); 103 103 104 virtualG4double MinPrimaryEnergy(const G4ParticleDefinition* p,104 inline G4double MinPrimaryEnergy(const G4ParticleDefinition* p, 105 105 const G4Material*, G4double cut); 106 106 … … 127 127 128 128 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 129 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 130 131 inline G4bool G4ionIonisation::IsApplicable(const G4ParticleDefinition& p) 132 { 133 return (p.GetPDGCharge() != 0.0 && !p.IsShortLived() && 134 p.GetParticleType() == "nucleus"); 135 } 136 137 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 138 139 inline G4double G4ionIonisation::MinPrimaryEnergy( 140 const G4ParticleDefinition* p, const G4Material*, G4double cut) 141 { 142 return 143 p->GetPDGMass()*(std::sqrt(1. + 0.5*cut/CLHEP::electron_mass_c2) - 1.0); 144 } 145 129 146 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 130 147
Note: See TracChangeset
for help on using the changeset viewer.