| 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 | #ifndef G4FTFCrossSection_h
|
|---|
| 27 | #define G4FTFCrossSection_h 1
|
|---|
| 28 | //
|
|---|
| 29 | // $Id: G4FTFCrossSection.hh,v 1.2 2007/04/24 10:37:10 gunter Exp $
|
|---|
| 30 | // GEANT4 tag $Name: geant4-09-01-patch-02 $
|
|---|
| 31 | //
|
|---|
| 32 | #include "G4Proton.hh"
|
|---|
| 33 | class G4FTFCrossSection
|
|---|
| 34 | {
|
|---|
| 35 |
|
|---|
| 36 | public:
|
|---|
| 37 | G4FTFCrossSection(const G4ParticleDefinition * , G4double );
|
|---|
| 38 |
|
|---|
| 39 | ~G4FTFCrossSection();
|
|---|
| 40 |
|
|---|
| 41 | void SethNcmsEnergy(const G4double s);
|
|---|
| 42 | void SetTotalCrossSection(const G4double Xtotal);
|
|---|
| 43 | void SetElastisCrossSection(const G4double Xelastic);
|
|---|
| 44 | void SetInelasticCrossSection(const G4double Xinelastic);
|
|---|
| 45 | void SetSlope(const G4double Slope);
|
|---|
| 46 | void SetGamma0(const G4double Gamma0);
|
|---|
| 47 |
|
|---|
| 48 | G4double GetTotalCrossSection();
|
|---|
| 49 | G4double GetElasticCrossSection();
|
|---|
| 50 | G4double GetInelasticCrossSection();
|
|---|
| 51 |
|
|---|
| 52 | G4double GetSlope();
|
|---|
| 53 |
|
|---|
| 54 | G4double GetInelasticProbability(const G4double impactsquare);
|
|---|
| 55 |
|
|---|
| 56 | // private:
|
|---|
| 57 |
|
|---|
| 58 | G4FTFCrossSection();
|
|---|
| 59 |
|
|---|
| 60 | G4double GammaElastic(const G4double impactsquare) {return (FTFGamma0 * std::exp(-FTFSlope * impactsquare));};
|
|---|
| 61 |
|
|---|
| 62 | G4double FTFhNcmsEnergy; // Uzhi Initial hN CMS energy
|
|---|
| 63 | G4double FTFXtotal;
|
|---|
| 64 | G4double FTFXelastic;
|
|---|
| 65 | G4double FTFXinelastic;
|
|---|
| 66 | G4double FTFSlope;
|
|---|
| 67 | G4double FTFGamma0;
|
|---|
| 68 |
|
|---|
| 69 | };
|
|---|
| 70 |
|
|---|
| 71 | inline void G4FTFCrossSection::SethNcmsEnergy(const G4double s) {FTFhNcmsEnergy = s;}
|
|---|
| 72 | inline void G4FTFCrossSection::SetTotalCrossSection(const G4double Xtotal) {FTFXtotal = Xtotal;}
|
|---|
| 73 | inline void G4FTFCrossSection::SetElastisCrossSection(const G4double Xelastic) {FTFXelastic = Xelastic;}
|
|---|
| 74 | inline void G4FTFCrossSection::SetInelasticCrossSection(const G4double Xinelastic) {FTFXinelastic = Xinelastic;}
|
|---|
| 75 | inline void G4FTFCrossSection::SetSlope(const G4double Slope) {FTFSlope = 12.84/Slope;}
|
|---|
| 76 | inline void G4FTFCrossSection::SetGamma0(const G4double Gamma0) {FTFGamma0 = Gamma0;}
|
|---|
| 77 |
|
|---|
| 78 | inline G4double G4FTFCrossSection::GetTotalCrossSection() {return FTFXtotal;}
|
|---|
| 79 | inline G4double G4FTFCrossSection::GetElasticCrossSection() {return FTFXelastic;}
|
|---|
| 80 | inline G4double G4FTFCrossSection::GetInelasticCrossSection() {return FTFXinelastic;}
|
|---|
| 81 |
|
|---|
| 82 | inline G4double G4FTFCrossSection::GetSlope() {return FTFSlope;}
|
|---|
| 83 |
|
|---|
| 84 | inline G4double G4FTFCrossSection::GetInelasticProbability( const G4double impactsquare)
|
|---|
| 85 | {
|
|---|
| 86 | G4double Gamma = GammaElastic(impactsquare);
|
|---|
| 87 | return 2 * Gamma - Gamma *Gamma;
|
|---|
| 88 | }
|
|---|
| 89 |
|
|---|
| 90 | #endif
|
|---|