[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: G4QElastic.hh,v 1.5 2009/02/23 09:49:24 mkossov Exp $ |
---|
| 27 | // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ |
---|
[819] | 28 | // |
---|
| 29 | // ---------------- G4QElastic header ---------------- |
---|
| 30 | // by Mikhail Kossov, December 2003. |
---|
| 31 | // Header of G4QElastic class (hadron+A) of the CHIPS Simulation Branch in GEANT4 |
---|
| 32 | // ------------------------------------------------------------------------------- |
---|
| 33 | // This is a unique CHIPS class for the Hadron-Nuclear Elastic Scattering Prosesses |
---|
| 34 | // ------------------------------------------------------------------------------- |
---|
| 35 | // At present (Jan-06) only proton-proton scattering is implemented The interaction with |
---|
| 36 | // nuclei are planned only. The scattering of nuclei on nuclei are possible... |
---|
| 37 | // The simulation is based on the CHIPS approximation of total elastic and differential |
---|
| 38 | // elastic cross sections from E=0 to the highest energyes. |
---|
| 39 | // ------------------------------------------------------------------------------- |
---|
[1055] | 40 | // Short description: At present this is a process for nucleon-nucleus |
---|
| 41 | // elastic scattering. Mesons and hyperons exist only for the Hydrogen |
---|
| 42 | // target (see G4QuasiFreeRatios). |
---|
| 43 | // --------------------------------------------------------------- |
---|
[819] | 44 | |
---|
| 45 | #ifndef G4QElastic_hh |
---|
| 46 | #define G4QElastic_hh |
---|
| 47 | |
---|
| 48 | // GEANT4 Headers |
---|
| 49 | #include "globals.hh" |
---|
| 50 | #include "G4ios.hh" |
---|
| 51 | #include "Randomize.hh" |
---|
| 52 | #include "G4VDiscreteProcess.hh" |
---|
| 53 | #include "G4Track.hh" |
---|
| 54 | #include "G4Step.hh" |
---|
| 55 | #include "G4ParticleTypes.hh" |
---|
| 56 | #include "G4VParticleChange.hh" |
---|
| 57 | #include "G4ParticleDefinition.hh" |
---|
| 58 | #include "G4DynamicParticle.hh" |
---|
| 59 | #include "G4NucleiPropertiesTable.hh" |
---|
| 60 | #include "G4ThreeVector.hh" |
---|
| 61 | #include "G4LorentzVector.hh" |
---|
[962] | 62 | #include "G4HadronicProcessType.hh" |
---|
[819] | 63 | |
---|
| 64 | // CHIPS Headers |
---|
| 65 | #include "G4QElasticCrossSection.hh" |
---|
| 66 | #include "G4QIsotope.hh" |
---|
| 67 | #include "G4QPDGToG4Particle.hh" |
---|
| 68 | #include "G4QCHIPSWorld.hh" |
---|
| 69 | #include "G4QHadron.hh" |
---|
| 70 | #include <vector> |
---|
| 71 | |
---|
| 72 | class G4QElastic : public G4VDiscreteProcess |
---|
| 73 | { |
---|
| 74 | public: |
---|
| 75 | |
---|
| 76 | // Constructor |
---|
| 77 | G4QElastic(const G4String& processName ="CHIPSElasticScattering"); |
---|
| 78 | |
---|
| 79 | // Destructor |
---|
| 80 | ~G4QElastic(); |
---|
| 81 | |
---|
| 82 | G4bool IsApplicable(const G4ParticleDefinition& particle); |
---|
| 83 | |
---|
| 84 | G4double GetMeanFreePath(const G4Track& aTrack, G4double previousStepSize, |
---|
| 85 | G4ForceCondition* condition); |
---|
| 86 | // It returns the MeanFreePath of the process for the current track : |
---|
| 87 | // (energy, material) |
---|
| 88 | // The previousStepSize and G4ForceCondition* are not used. |
---|
[1055] | 89 | // This function overloads a virtual function of the base class. |
---|
[819] | 90 | // It is invoked by the ProcessManager of the Particle. |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep); |
---|
| 94 | // It computes the final state of the process (at end of step), |
---|
[1055] | 95 | // returned as a ParticleChange object. |
---|
[819] | 96 | // This function overloads a virtual function of the base class. |
---|
| 97 | // It is invoked by the ProcessManager of the Particle. |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | G4LorentzVector GetEnegryMomentumConservation(); |
---|
| 101 | |
---|
| 102 | G4int GetNumberOfNeutronsInTarget(); |
---|
| 103 | |
---|
| 104 | private: |
---|
| 105 | |
---|
| 106 | // Hide assignment operator as private |
---|
| 107 | G4QElastic& operator=(const G4QElastic &right); |
---|
| 108 | |
---|
| 109 | // Copy constructor |
---|
| 110 | G4QElastic(const G4QElastic&); |
---|
| 111 | |
---|
| 112 | // Calculate XS/t: oxs=true - only CS; xst=true - calculate XS, xst=false(oxs=f/t) - t/tm |
---|
| 113 | G4double CalculateXSt(G4bool oxs, G4bool xst, G4double p, G4int Z, G4int N, G4int pPDG); |
---|
| 114 | |
---|
[1055] | 115 | // BODY |
---|
[819] | 116 | // Static Parameters -------------------------------------------------------------------- |
---|
| 117 | static G4int nPartCWorld; // The#of particles for hadronization (limit of A of fragm.) |
---|
| 118 | //--------------------------------- End of static parameters --------------------------- |
---|
| 119 | // Working parameters |
---|
| 120 | G4VQCrossSection* theCS; |
---|
| 121 | G4LorentzVector EnMomConservation; // Residual of Energy/Momentum Cons. |
---|
| 122 | G4int nOfNeutrons; // #of neutrons in the target nucleus |
---|
| 123 | |
---|
| 124 | // Modifires for the reaction |
---|
| 125 | G4double Time; // Time shift of the capture reaction |
---|
| 126 | G4double EnergyDeposition; // Energy deposited in the reaction |
---|
| 127 | static std::vector <G4int> ElementZ; // Z of the element(i) in theLastCalc |
---|
| 128 | static std::vector <G4double> ElProbInMat; // SumProbabilityElements in Material |
---|
| 129 | static std::vector <std::vector<G4int>*> ElIsoN; // N of isotope(j) of Element(i) |
---|
| 130 | static std::vector <std::vector<G4double>*> IsoProbInEl;// SumProbabIsotopes in Element i |
---|
| 131 | }; |
---|
| 132 | #endif |
---|