[1197] | 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 | // |
---|
| 26 | // |
---|
| 27 | // $Id: G4VHadronElastic.hh,v 1.4 2009/09/23 14:37:44 vnivanch Exp $ |
---|
| 28 | // GEANT4 tag $Name: geant4-09-03-cand-01 $ |
---|
| 29 | // |
---|
| 30 | // Geant4 Header : G4VHadronElastic |
---|
| 31 | // |
---|
| 32 | // Author : V.Ivanchenko 29 June 2009 (redesign old elastic model) |
---|
| 33 | // |
---|
| 34 | // Modified: |
---|
| 35 | // |
---|
| 36 | // Class Description |
---|
| 37 | // Default model for elastic scattering; GHEISHA algorithm is used |
---|
| 38 | // Class Description - End |
---|
| 39 | |
---|
| 40 | #ifndef G4VHadronElastic_h |
---|
| 41 | #define G4VHadronElastic_h 1 |
---|
| 42 | |
---|
| 43 | #include "globals.hh" |
---|
| 44 | #include "G4HadronicInteraction.hh" |
---|
| 45 | #include "G4HadProjectile.hh" |
---|
| 46 | #include "G4Nucleus.hh" |
---|
| 47 | #include "G4NucleiProperties.hh" |
---|
| 48 | |
---|
| 49 | class G4ParticleDefinition; |
---|
| 50 | |
---|
| 51 | class G4VHadronElastic : public G4HadronicInteraction |
---|
| 52 | { |
---|
| 53 | public: |
---|
| 54 | |
---|
| 55 | G4VHadronElastic(const G4String& name = "hElasticLHEP"); |
---|
| 56 | |
---|
| 57 | virtual ~G4VHadronElastic(); |
---|
| 58 | |
---|
| 59 | // implementation of the G4HadronicInteraction interface |
---|
| 60 | virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & aTrack, |
---|
| 61 | G4Nucleus & targetNucleus); |
---|
| 62 | |
---|
| 63 | // sample momentum transfer using Lab. momentum |
---|
| 64 | virtual G4double SampleInvariantT(const G4ParticleDefinition* p, |
---|
| 65 | G4double plab, |
---|
| 66 | G4int Z, G4int A); |
---|
| 67 | |
---|
| 68 | inline void SetLowestEnergyLimit(G4double value); |
---|
| 69 | |
---|
| 70 | inline void ComputeMomentumCMS(const G4ParticleDefinition* p, |
---|
| 71 | G4double plab, G4int Z, G4int A); |
---|
| 72 | |
---|
| 73 | protected: |
---|
| 74 | |
---|
| 75 | G4double momentumCMS; |
---|
| 76 | |
---|
| 77 | private: |
---|
| 78 | |
---|
| 79 | G4ParticleDefinition* theProton; |
---|
| 80 | G4ParticleDefinition* theNeutron; |
---|
| 81 | G4ParticleDefinition* theDeuteron; |
---|
| 82 | G4ParticleDefinition* theAlpha; |
---|
| 83 | |
---|
| 84 | G4double lowestEnergyLimit; |
---|
| 85 | |
---|
| 86 | }; |
---|
| 87 | |
---|
| 88 | inline void G4VHadronElastic::SetLowestEnergyLimit(G4double value) |
---|
| 89 | { |
---|
| 90 | lowestEnergyLimit = value; |
---|
| 91 | } |
---|
| 92 | |
---|
| 93 | inline void |
---|
| 94 | G4VHadronElastic::ComputeMomentumCMS(const G4ParticleDefinition* p, |
---|
| 95 | G4double plab, G4int Z, G4int A) |
---|
| 96 | { |
---|
| 97 | G4double m1 = p->GetPDGMass(); |
---|
| 98 | G4double m12= m1*m1; |
---|
| 99 | G4double m2 = G4NucleiProperties::GetNuclearMass(A, Z); |
---|
| 100 | momentumCMS = plab*m2/std::sqrt(m12 + m2*m2 + 2.*m2*std::sqrt(m12 + plab*plab)); |
---|
| 101 | } |
---|
| 102 | |
---|
| 103 | #endif |
---|