[819] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
[1315] | 26 | // $Id: G4BraggModel.hh,v 1.15 2010/05/27 10:08:58 vnivanch Exp $ |
---|
[1337] | 27 | // GEANT4 tag $Name: geant4-09-04-beta-01 $ |
---|
[819] | 28 | // |
---|
| 29 | // ------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // GEANT4 Class header file |
---|
| 32 | // |
---|
| 33 | // |
---|
| 34 | // File name: G4BraggModel |
---|
| 35 | // |
---|
| 36 | // Author: Vladimir Ivanchenko |
---|
| 37 | // |
---|
| 38 | // Creation date: 03.01.2002 |
---|
| 39 | // |
---|
| 40 | // Modifications: |
---|
| 41 | // 23-12-02 V.Ivanchenko change interface in order to moveto cut per region |
---|
| 42 | // 24-01-03 Make models region aware (V.Ivanchenko) |
---|
| 43 | // 13-02-03 Add name (V.Ivanchenko) |
---|
| 44 | // 12-11-03 Fix for GenericIons (V.Ivanchenko) |
---|
| 45 | // 11-04-05 Major optimisation of internal interfaces (V.Ivantchenko) |
---|
| 46 | // 15-02-06 ComputeCrossSectionPerElectron, ComputeCrossSectionPerAtom (mma) |
---|
[961] | 47 | // 25-04-06 Added stopping data from PSTAR (V.Ivanchenko) |
---|
| 48 | // 12-08-08 Added methods GetParticleCharge, GetChargeSquareRatio, |
---|
| 49 | // CorrectionsAlongStep needed for ions(V.Ivanchenko) |
---|
[819] | 50 | |
---|
| 51 | // |
---|
| 52 | // Class Description: |
---|
| 53 | // |
---|
| 54 | // Implementation of energy loss and delta-electron production |
---|
[961] | 55 | // by heavy slow charged particles using ICRU'49 and NIST evaluated data |
---|
| 56 | // for protons |
---|
[819] | 57 | |
---|
| 58 | // ------------------------------------------------------------------- |
---|
| 59 | // |
---|
| 60 | |
---|
| 61 | #ifndef G4BraggModel_h |
---|
| 62 | #define G4BraggModel_h 1 |
---|
| 63 | |
---|
| 64 | #include "G4VEmModel.hh" |
---|
| 65 | #include "G4PSTARStopping.hh" |
---|
| 66 | |
---|
| 67 | class G4ParticleChangeForLoss; |
---|
[961] | 68 | class G4EmCorrections; |
---|
[819] | 69 | |
---|
| 70 | class G4BraggModel : public G4VEmModel |
---|
| 71 | { |
---|
| 72 | |
---|
| 73 | public: |
---|
| 74 | |
---|
| 75 | G4BraggModel(const G4ParticleDefinition* p = 0, |
---|
| 76 | const G4String& nam = "Bragg"); |
---|
| 77 | |
---|
| 78 | virtual ~G4BraggModel(); |
---|
| 79 | |
---|
| 80 | virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); |
---|
| 81 | |
---|
[1055] | 82 | virtual G4double MinEnergyCut(const G4ParticleDefinition*, |
---|
| 83 | const G4MaterialCutsCouple*); |
---|
[819] | 84 | |
---|
| 85 | virtual G4double ComputeCrossSectionPerElectron( |
---|
| 86 | const G4ParticleDefinition*, |
---|
| 87 | G4double kineticEnergy, |
---|
| 88 | G4double cutEnergy, |
---|
| 89 | G4double maxEnergy); |
---|
| 90 | |
---|
| 91 | virtual G4double ComputeCrossSectionPerAtom( |
---|
| 92 | const G4ParticleDefinition*, |
---|
| 93 | G4double kineticEnergy, |
---|
| 94 | G4double Z, G4double A, |
---|
| 95 | G4double cutEnergy, |
---|
| 96 | G4double maxEnergy); |
---|
| 97 | |
---|
| 98 | virtual G4double CrossSectionPerVolume(const G4Material*, |
---|
| 99 | const G4ParticleDefinition*, |
---|
| 100 | G4double kineticEnergy, |
---|
| 101 | G4double cutEnergy, |
---|
| 102 | G4double maxEnergy); |
---|
| 103 | |
---|
| 104 | virtual G4double ComputeDEDXPerVolume(const G4Material*, |
---|
| 105 | const G4ParticleDefinition*, |
---|
| 106 | G4double kineticEnergy, |
---|
| 107 | G4double cutEnergy); |
---|
| 108 | |
---|
| 109 | virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*, |
---|
| 110 | const G4MaterialCutsCouple*, |
---|
| 111 | const G4DynamicParticle*, |
---|
| 112 | G4double tmin, |
---|
| 113 | G4double maxEnergy); |
---|
| 114 | |
---|
[961] | 115 | // Compute ion charge |
---|
| 116 | virtual G4double GetChargeSquareRatio(const G4ParticleDefinition*, |
---|
| 117 | const G4Material*, |
---|
| 118 | G4double kineticEnergy); |
---|
| 119 | |
---|
| 120 | virtual G4double GetParticleCharge(const G4ParticleDefinition* p, |
---|
| 121 | const G4Material* mat, |
---|
| 122 | G4double kineticEnergy); |
---|
| 123 | |
---|
[819] | 124 | protected: |
---|
| 125 | |
---|
[1055] | 126 | virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition*, |
---|
| 127 | G4double kinEnergy); |
---|
[819] | 128 | |
---|
[1315] | 129 | inline G4double GetChargeSquareRatio() const; |
---|
| 130 | |
---|
| 131 | inline void SetChargeSquareRatio(G4double val); |
---|
| 132 | |
---|
[819] | 133 | private: |
---|
| 134 | |
---|
[1055] | 135 | inline void SetParticle(const G4ParticleDefinition* p); |
---|
[819] | 136 | |
---|
| 137 | G4bool HasMaterial(const G4Material* material); |
---|
| 138 | |
---|
| 139 | G4double StoppingPower(const G4Material* material, |
---|
| 140 | G4double kineticEnergy); |
---|
| 141 | |
---|
| 142 | G4double ElectronicStoppingPower(G4double z, |
---|
| 143 | G4double kineticEnergy) const; |
---|
| 144 | |
---|
| 145 | void SetMoleculaNumber(G4int number) {iMolecula = number;}; |
---|
| 146 | |
---|
| 147 | G4double DEDX(const G4Material* material, G4double kineticEnergy); |
---|
| 148 | |
---|
| 149 | G4bool MolecIsInZiegler1988(const G4Material* material); |
---|
| 150 | |
---|
| 151 | G4double ChemicalFactor(G4double kineticEnergy, G4double eloss125) const; |
---|
| 152 | |
---|
| 153 | void SetExpStopPower125(G4double value) {expStopPower125 = value;}; |
---|
| 154 | |
---|
| 155 | // hide assignment operator |
---|
| 156 | G4BraggModel & operator=(const G4BraggModel &right); |
---|
| 157 | G4BraggModel(const G4BraggModel&); |
---|
| 158 | |
---|
[961] | 159 | |
---|
| 160 | G4EmCorrections* corr; |
---|
| 161 | |
---|
[819] | 162 | const G4ParticleDefinition* particle; |
---|
| 163 | G4ParticleDefinition* theElectron; |
---|
| 164 | G4ParticleChangeForLoss* fParticleChange; |
---|
| 165 | G4PSTARStopping pstar; |
---|
| 166 | |
---|
| 167 | G4double mass; |
---|
| 168 | G4double spin; |
---|
| 169 | G4double chargeSquare; |
---|
| 170 | G4double massRate; |
---|
| 171 | G4double ratio; |
---|
| 172 | G4double lowestKinEnergy; |
---|
| 173 | G4double protonMassAMU; |
---|
| 174 | G4double theZieglerFactor; |
---|
| 175 | G4double expStopPower125; // Experimental Stopping power at 125keV |
---|
| 176 | |
---|
| 177 | G4int iMolecula; // index in the molecula's table |
---|
| 178 | G4bool isIon; |
---|
[961] | 179 | G4bool isInitialised; |
---|
[819] | 180 | }; |
---|
| 181 | |
---|
| 182 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 183 | |
---|
| 184 | inline void G4BraggModel::SetParticle(const G4ParticleDefinition* p) |
---|
| 185 | { |
---|
| 186 | particle = p; |
---|
| 187 | mass = particle->GetPDGMass(); |
---|
| 188 | spin = particle->GetPDGSpin(); |
---|
| 189 | G4double q = particle->GetPDGCharge()/eplus; |
---|
| 190 | chargeSquare = q*q; |
---|
| 191 | massRate = mass/proton_mass_c2; |
---|
| 192 | ratio = electron_mass_c2/mass; |
---|
| 193 | } |
---|
| 194 | |
---|
[1315] | 195 | inline G4double G4BraggModel::GetChargeSquareRatio() const |
---|
| 196 | { |
---|
| 197 | return chargeSquare; |
---|
| 198 | } |
---|
| 199 | |
---|
| 200 | inline void G4BraggModel::SetChargeSquareRatio(G4double val) |
---|
| 201 | { |
---|
| 202 | chargeSquare = val; |
---|
| 203 | } |
---|
| 204 | |
---|
[819] | 205 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 206 | |
---|
| 207 | #endif |
---|