[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 | // |
---|
[1196] | 26 | // $Id: G4BraggModel.hh,v 1.14 2009/11/10 19:25:47 vnivanch Exp $ |
---|
[1228] | 27 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
[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); |
---|
[1196] | 123 | /* |
---|
[961] | 124 | // add correction to energy loss and compute non-ionizing energy loss |
---|
| 125 | virtual void CorrectionsAlongStep(const G4MaterialCutsCouple*, |
---|
| 126 | const G4DynamicParticle*, |
---|
| 127 | G4double& eloss, |
---|
| 128 | G4double& niel, |
---|
| 129 | G4double length); |
---|
[1196] | 130 | */ |
---|
[961] | 131 | |
---|
[819] | 132 | protected: |
---|
| 133 | |
---|
[1055] | 134 | virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition*, |
---|
| 135 | G4double kinEnergy); |
---|
[819] | 136 | |
---|
| 137 | private: |
---|
| 138 | |
---|
[1055] | 139 | inline void SetParticle(const G4ParticleDefinition* p); |
---|
[819] | 140 | |
---|
| 141 | G4bool HasMaterial(const G4Material* material); |
---|
| 142 | |
---|
| 143 | G4double StoppingPower(const G4Material* material, |
---|
| 144 | G4double kineticEnergy); |
---|
| 145 | |
---|
| 146 | G4double ElectronicStoppingPower(G4double z, |
---|
| 147 | G4double kineticEnergy) const; |
---|
| 148 | |
---|
| 149 | void SetMoleculaNumber(G4int number) {iMolecula = number;}; |
---|
| 150 | |
---|
| 151 | G4double DEDX(const G4Material* material, G4double kineticEnergy); |
---|
| 152 | |
---|
| 153 | G4bool MolecIsInZiegler1988(const G4Material* material); |
---|
| 154 | |
---|
| 155 | G4double ChemicalFactor(G4double kineticEnergy, G4double eloss125) const; |
---|
| 156 | |
---|
| 157 | void SetExpStopPower125(G4double value) {expStopPower125 = value;}; |
---|
| 158 | |
---|
| 159 | // hide assignment operator |
---|
| 160 | G4BraggModel & operator=(const G4BraggModel &right); |
---|
| 161 | G4BraggModel(const G4BraggModel&); |
---|
| 162 | |
---|
[961] | 163 | |
---|
| 164 | G4EmCorrections* corr; |
---|
| 165 | |
---|
[819] | 166 | const G4ParticleDefinition* particle; |
---|
| 167 | G4ParticleDefinition* theElectron; |
---|
| 168 | G4ParticleChangeForLoss* fParticleChange; |
---|
| 169 | G4PSTARStopping pstar; |
---|
| 170 | |
---|
| 171 | G4double mass; |
---|
| 172 | G4double spin; |
---|
| 173 | G4double chargeSquare; |
---|
| 174 | G4double massRate; |
---|
| 175 | G4double ratio; |
---|
| 176 | G4double lowestKinEnergy; |
---|
| 177 | G4double protonMassAMU; |
---|
| 178 | G4double theZieglerFactor; |
---|
| 179 | G4double expStopPower125; // Experimental Stopping power at 125keV |
---|
| 180 | |
---|
| 181 | G4int iMolecula; // index in the molecula's table |
---|
| 182 | G4bool isIon; |
---|
[961] | 183 | G4bool isInitialised; |
---|
[819] | 184 | }; |
---|
| 185 | |
---|
| 186 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 187 | |
---|
| 188 | inline void G4BraggModel::SetParticle(const G4ParticleDefinition* p) |
---|
| 189 | { |
---|
| 190 | particle = p; |
---|
| 191 | mass = particle->GetPDGMass(); |
---|
| 192 | spin = particle->GetPDGSpin(); |
---|
| 193 | G4double q = particle->GetPDGCharge()/eplus; |
---|
| 194 | chargeSquare = q*q; |
---|
| 195 | massRate = mass/proton_mass_c2; |
---|
| 196 | ratio = electron_mass_c2/mass; |
---|
| 197 | } |
---|
| 198 | |
---|
| 199 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 200 | |
---|
| 201 | #endif |
---|