Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer << 3 // * DISCLAIMER * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th << 5 // * The following disclaimer summarizes all the specific disclaimers * 6 // * the Geant4 Collaboration. It is provided << 6 // * of contributors to this software. The specific disclaimers,which * 7 // * conditions of the Geant4 Software License << 7 // * govern, are listed with their locations in: * 8 // * LICENSE and available at http://cern.ch/ << 8 // * http://cern.ch/geant4/license * 9 // * include a list of copyright holders. << 10 // * 9 // * * 11 // * Neither the authors of this software syst 10 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 11 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 12 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 13 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file << 14 // * use. * 16 // * for the full disclaimer and the limitatio << 17 // * 15 // * * 18 // * This code implementation is the result << 16 // * This code implementation is the intellectual property of the * 19 // * technical work of the GEANT4 collaboratio << 17 // * GEANT4 collaboration. * 20 // * By using, copying, modifying or distri << 18 // * By copying, distributing or modifying the Program (or any work * 21 // * any work based on the software) you ag << 19 // * based on the Program) you indicate your acceptance of this * 22 // * use in resulting scientific publicati << 20 // * statement, and all its terms. * 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* 21 // ******************************************************************** 25 // 22 // 26 // 23 // 27 // ------------------------------------------- 24 // ------------------------------------------------------------------- 28 // 25 // 29 // GEANT4 Class file 26 // GEANT4 Class file 30 // 27 // 31 // 28 // 32 // File name: G4hNuclearStoppingModel 29 // File name: G4hNuclearStoppingModel 33 // 30 // 34 // Author: V.Ivanchenko (Vladimir.Ivanc 31 // Author: V.Ivanchenko (Vladimir.Ivanchenko@cern.ch) 35 // 32 // 36 // Creation date: 20 July 2000 33 // Creation date: 20 July 2000 37 // 34 // 38 // Modifications: 35 // Modifications: 39 // 20/07/2000 V.Ivanchenko First implementati 36 // 20/07/2000 V.Ivanchenko First implementation 40 // 37 // 41 // Class Description: 38 // Class Description: 42 // 39 // 43 // Low energy hadrons/ions ionisation paramete 40 // Low energy hadrons/ions ionisation parameterisation 44 // Further documentation available from http:/ 41 // Further documentation available from http://www.ge.infn.it/geant4/lowE/ 45 42 46 // ------------------------------------------- 43 // ------------------------------------------------------------------- 47 // 44 // 48 45 49 #ifndef G4hNuclearStoppingModel_h 46 #ifndef G4hNuclearStoppingModel_h 50 #define G4hNuclearStoppingModel_h 1 47 #define G4hNuclearStoppingModel_h 1 51 48 52 #include "globals.hh" 49 #include "globals.hh" 53 #include "G4VLowEnergyModel.hh" 50 #include "G4VLowEnergyModel.hh" 54 #include "G4VhNuclearStoppingPower.hh" 51 #include "G4VhNuclearStoppingPower.hh" 55 52 56 class G4ParticleDefinition; 53 class G4ParticleDefinition; 57 class G4Material; 54 class G4Material; 58 class G4DynamicParticle; 55 class G4DynamicParticle; 59 56 60 class G4hNuclearStoppingModel : public G4VLowE 57 class G4hNuclearStoppingModel : public G4VLowEnergyModel 61 { 58 { >> 59 62 public: 60 public: 63 61 64 explicit G4hNuclearStoppingModel(const G4Str << 62 G4hNuclearStoppingModel(const G4String& name); 65 63 66 ~G4hNuclearStoppingModel() ; 64 ~G4hNuclearStoppingModel() ; 67 65 68 G4double TheValue(const G4DynamicParticle* p 66 G4double TheValue(const G4DynamicParticle* particle, 69 const G4Material* material) over << 67 const G4Material* material); 70 68 71 G4double TheValue(const G4ParticleDefinition 69 G4double TheValue(const G4ParticleDefinition* aParticle, 72 const G4Material* material, 70 const G4Material* material, 73 G4double kineticEner << 71 G4double kineticEnergy); 74 72 75 G4double HighEnergyLimit(const G4ParticleDef << 73 G4double HighEnergyLimit(const G4ParticleDefinition* aParticle, 76 const G4Material* ) << 74 const G4Material* material) const 77 {return highEnergyLimit;}; << 75 {return highEnergyLimit;}; 78 76 79 G4double LowEnergyLimit(const G4ParticleDefi << 77 G4double LowEnergyLimit(const G4ParticleDefinition* aParticle, 80 const G4Material* ) << 78 const G4Material* material) const 81 {return lowEnergyLimit;}; << 79 {return lowEnergyLimit;}; 82 80 83 G4double HighEnergyLimit(const G4ParticleDef << 81 G4double HighEnergyLimit(const G4ParticleDefinition* aParticle) const 84 {return highEnergyLimit;}; << 82 {return highEnergyLimit;}; 85 83 86 G4double LowEnergyLimit(const G4ParticleDefi << 84 G4double LowEnergyLimit(const G4ParticleDefinition* aParticle) const 87 {return lowEnergyLimit;}; << 85 {return lowEnergyLimit;}; 88 86 89 G4bool IsInCharge(const G4DynamicParticle* , << 87 G4bool IsInCharge(const G4DynamicParticle* particle, 90 const G4Material* ) const override << 88 const G4Material* material) const 91 {return true;}; << 89 {return true;}; 92 << 90 93 G4bool IsInCharge(const G4ParticleDefinition << 91 G4bool IsInCharge(const G4ParticleDefinition* aParticle, 94 const G4Material* ) const override << 92 const G4Material* material) const 95 {return true;}; << 93 {return true;}; 96 94 97 void SetNuclearStoppingFluctuationsOn() 95 void SetNuclearStoppingFluctuationsOn() 98 {nStopingPowerTable->SetNuclearStoppingFluct << 96 {nStopingPowerTable->SetNuclearStoppingFluctuationsOn();}; 99 97 100 void SetNuclearStoppingFluctuationsOff() 98 void SetNuclearStoppingFluctuationsOff() 101 {nStopingPowerTable->SetNuclearStoppingFluct << 99 {nStopingPowerTable->SetNuclearStoppingFluctuationsOff();}; >> 100 102 101 103 G4hNuclearStoppingModel(G4hNuclearStoppingMo << 102 protected: 104 G4hNuclearStoppingModel & operator=(const G4 << 105 103 106 private: 104 private: >> 105 >> 106 // hide assignment operator >> 107 G4hNuclearStoppingModel(G4hNuclearStoppingModel &); >> 108 G4hNuclearStoppingModel & operator=(const G4hNuclearStoppingModel &right); >> 109 107 void InitializeMe(); 110 void InitializeMe(); 108 111 109 G4double StoppingPower(const G4Material* mat 112 G4double StoppingPower(const G4Material* material, 110 G4double kineti 113 G4double kineticEnergy, 111 G4double z1, 114 G4double z1, 112 G4double m1) co 115 G4double m1) const; 113 116 114 // Pointer to the parametrisation class 117 // Pointer to the parametrisation class 115 G4VhNuclearStoppingPower* nStopingPowerTable 118 G4VhNuclearStoppingPower* nStopingPowerTable; 116 G4String modelName; << 117 119 118 G4double factorPDG2AMU; // Factor to conv 120 G4double factorPDG2AMU; // Factor to convert PDG mass unit 119 // into AMU 121 // into AMU 120 122 121 G4double theZieglerFactor; // Factor to conv 123 G4double theZieglerFactor; // Factor to convert the Stopping Power 122 // unit [ev/(10^1 124 // unit [ev/(10^15 atoms/cm^2] 123 // into the Geant << 125 // into the Geant4 dE/dx unit >> 126 G4String modelName; 124 G4double lowEnergyLimit; 127 G4double lowEnergyLimit; 125 G4double highEnergyLimit; 128 G4double highEnergyLimit; 126 }; 129 }; 127 130 128 #endif 131 #endif 129 132