[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 | // |
---|
[1055] | 26 | // $Id: G4MollerBhabhaModel.hh,v 1.20 2009/02/20 12:06:37 vnivanch Exp $ |
---|
[1196] | 27 | // GEANT4 tag $Name: geant4-09-03-cand-01 $ |
---|
[819] | 28 | // |
---|
| 29 | // ------------------------------------------------------------------- |
---|
| 30 | // |
---|
| 31 | // GEANT4 Class header file |
---|
| 32 | // |
---|
| 33 | // |
---|
| 34 | // File name: G4MollerBhabhaModel |
---|
| 35 | // |
---|
| 36 | // Author: Vladimir Ivanchenko on base of Laszlo Urban code |
---|
| 37 | // |
---|
| 38 | // Creation date: 07.01.2002 |
---|
| 39 | // |
---|
| 40 | // Modifications: |
---|
| 41 | // |
---|
| 42 | // 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko) |
---|
| 43 | // 24-01-03 Make models region aware (V.Ivanchenko) |
---|
| 44 | // 13-02-03 Add name (V.Ivanchenko) |
---|
| 45 | // 06-02-06 ComputeCrossSectionPerElectron, ComputeCrossSectionPerAtom (mma) |
---|
| 46 | // 14-01-07 promote SetParticle() from private to protected (mma) |
---|
| 47 | |
---|
| 48 | // |
---|
| 49 | // Class Description: |
---|
| 50 | // |
---|
| 51 | // Implementation of energy loss process and delta-electrons production |
---|
| 52 | // of electrons and positrons |
---|
| 53 | |
---|
| 54 | // ------------------------------------------------------------------- |
---|
| 55 | // |
---|
| 56 | |
---|
| 57 | #ifndef G4MollerBhabhaModel_h |
---|
| 58 | #define G4MollerBhabhaModel_h 1 |
---|
| 59 | |
---|
| 60 | #include "G4VEmModel.hh" |
---|
| 61 | |
---|
| 62 | class G4ParticleChangeForLoss; |
---|
| 63 | |
---|
| 64 | class G4MollerBhabhaModel : public G4VEmModel |
---|
| 65 | { |
---|
| 66 | |
---|
| 67 | public: |
---|
| 68 | |
---|
| 69 | G4MollerBhabhaModel(const G4ParticleDefinition* p = 0, |
---|
| 70 | const G4String& nam = "MollerBhabha"); |
---|
| 71 | |
---|
| 72 | virtual ~G4MollerBhabhaModel(); |
---|
| 73 | |
---|
| 74 | virtual void Initialise(const G4ParticleDefinition*, const G4DataVector&); |
---|
| 75 | |
---|
[1055] | 76 | virtual G4double MinEnergyCut(const G4ParticleDefinition*, |
---|
| 77 | const G4MaterialCutsCouple*); |
---|
[819] | 78 | |
---|
| 79 | virtual G4double ComputeCrossSectionPerElectron( |
---|
| 80 | const G4ParticleDefinition*, |
---|
| 81 | G4double kineticEnergy, |
---|
| 82 | G4double cutEnergy, |
---|
| 83 | G4double maxEnergy); |
---|
| 84 | |
---|
| 85 | virtual G4double ComputeCrossSectionPerAtom( |
---|
| 86 | const G4ParticleDefinition*, |
---|
| 87 | G4double kineticEnergy, |
---|
| 88 | G4double Z, G4double A, |
---|
| 89 | G4double cutEnergy, |
---|
| 90 | G4double maxEnergy); |
---|
| 91 | |
---|
| 92 | virtual G4double CrossSectionPerVolume(const G4Material*, |
---|
| 93 | const G4ParticleDefinition*, |
---|
| 94 | G4double kineticEnergy, |
---|
| 95 | G4double cutEnergy, |
---|
| 96 | G4double maxEnergy); |
---|
| 97 | |
---|
| 98 | virtual G4double ComputeDEDXPerVolume(const G4Material*, |
---|
| 99 | const G4ParticleDefinition*, |
---|
| 100 | G4double kineticEnergy, |
---|
| 101 | G4double cutEnergy); |
---|
| 102 | |
---|
| 103 | virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*, |
---|
| 104 | const G4MaterialCutsCouple*, |
---|
| 105 | const G4DynamicParticle*, |
---|
| 106 | G4double tmin, |
---|
| 107 | G4double maxEnergy); |
---|
| 108 | |
---|
| 109 | protected: |
---|
| 110 | |
---|
[1055] | 111 | virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition*, |
---|
| 112 | G4double kinEnergy); |
---|
[819] | 113 | |
---|
[1055] | 114 | inline void SetParticle(const G4ParticleDefinition* p); |
---|
[819] | 115 | |
---|
| 116 | const G4ParticleDefinition* particle; |
---|
| 117 | G4ParticleDefinition* theElectron; |
---|
| 118 | G4ParticleChangeForLoss* fParticleChange; |
---|
| 119 | |
---|
| 120 | G4bool isElectron; |
---|
| 121 | G4double twoln10; |
---|
| 122 | G4double lowLimit; |
---|
| 123 | |
---|
| 124 | private: |
---|
| 125 | |
---|
| 126 | // hide assignment operator |
---|
| 127 | G4MollerBhabhaModel & operator=(const G4MollerBhabhaModel &right); |
---|
| 128 | G4MollerBhabhaModel(const G4MollerBhabhaModel&); |
---|
[1055] | 129 | |
---|
| 130 | G4bool isInitialised; |
---|
| 131 | |
---|
[819] | 132 | }; |
---|
| 133 | |
---|
| 134 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 135 | |
---|
[1055] | 136 | inline void G4MollerBhabhaModel::SetParticle(const G4ParticleDefinition* p) |
---|
[819] | 137 | { |
---|
[1055] | 138 | particle = p; |
---|
| 139 | if(p != theElectron) isElectron = false; |
---|
[819] | 140 | } |
---|
| 141 | |
---|
| 142 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 143 | |
---|
| 144 | #endif |
---|