00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // $Id$ 00027 // 00028 // ---------------- G4QElastic header ---------------- 00029 // by Mikhail Kossov, December 2003. 00030 // Header of G4QElastic class (hadron+A) of the CHIPS Simulation Branch in GEANT4 00031 // ------------------------------------------------------------------------------- 00032 // This is a unique CHIPS class for the Hadron-Nuclear Elastic Scattering Prosesses 00033 // ------------------------------------------------------------------------------- 00034 // Short description: A process for CHIPS hadron-nucleus elastic scattering. 00035 // ------------------------------------------------------------------------------- 00036 00037 #ifndef G4QElastic_hh 00038 #define G4QElastic_hh 00039 00040 // GEANT4 Headers 00041 #include "globals.hh" 00042 #include "G4ios.hh" 00043 #include "Randomize.hh" 00044 #include "G4VDiscreteProcess.hh" 00045 #include "G4Track.hh" 00046 #include "G4Step.hh" 00047 #include "G4ParticleTypes.hh" 00048 #include "G4VParticleChange.hh" 00049 #include "G4ParticleDefinition.hh" 00050 #include "G4DynamicParticle.hh" 00051 #include "G4ThreeVector.hh" 00052 #include "G4LorentzVector.hh" 00053 00054 // CHIPS Headers 00055 #include "G4QPionPlusElasticCrossSection.hh" 00056 #include "G4QPionMinusElasticCrossSection.hh" 00057 #include "G4QKaonPlusElasticCrossSection.hh" 00058 #include "G4QKaonMinusElasticCrossSection.hh" 00059 #include "G4QHyperonElasticCrossSection.hh" 00060 #include "G4QHyperonPlusElasticCrossSection.hh" 00061 #include "G4QProtonElasticCrossSection.hh" 00062 #include "G4QNeutronElasticCrossSection.hh" 00063 #include "G4QAntiBaryonElasticCrossSection.hh" 00064 #include "G4QIsotope.hh" 00065 #include "G4QCHIPSWorld.hh" 00066 #include "G4QHadron.hh" 00067 #include <vector> 00068 00069 class G4QElastic : public G4VDiscreteProcess 00070 { 00071 public: 00072 00073 // Constructor 00074 G4QElastic(const G4String& processName ="CHIPSElasticScattering"); 00075 00076 // Destructor 00077 ~G4QElastic(); 00078 00079 G4bool IsApplicable(const G4ParticleDefinition& particle); 00080 00081 G4double GetMeanFreePath(const G4Track& aTrack, G4double previousStepSize, 00082 G4ForceCondition* condition); 00083 // It returns the MeanFreePath of the process for the current track : 00084 // (energy, material) 00085 // The previousStepSize and G4ForceCondition* are not used. 00086 // This function overloads a virtual function of the base class. 00087 // It is invoked by the ProcessManager of the Particle. 00088 00089 00090 G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep); 00091 // It computes the final state of the process (at end of step), 00092 // returned as a ParticleChange object. 00093 // This function overloads a virtual function of the base class. 00094 // It is invoked by the ProcessManager of the Particle. 00095 00096 00097 G4LorentzVector GetEnegryMomentumConservation(); 00098 00099 G4int GetNumberOfNeutronsInTarget(); 00100 00101 private: 00102 00103 // Hide assignment operator as private 00104 G4QElastic& operator=(const G4QElastic &right); 00105 00106 // Copy constructor 00107 G4QElastic(const G4QElastic&); 00108 00109 // Calculate XS/t: oxs=true - only CS; xst=true - calculate XS, xst=false(oxs=f/t) - t/tm 00110 G4double CalculateXSt(G4bool oxs, G4bool xst, G4double p, G4int Z, G4int N, G4int pPDG); 00111 00112 // BODY 00113 // Static Parameters -------------------------------------------------------------------- 00114 static G4int nPartCWorld; // The#of particles for hadronization (limit of A of fragm.) 00115 //--------------------------------- End of static parameters --------------------------- 00116 // Working parameters 00117 G4VQCrossSection* theCS; 00118 G4LorentzVector EnMomConservation; // Residual of Energy/Momentum Cons. 00119 G4int nOfNeutrons; // #of neutrons in the target nucleus 00120 00121 // Modifires for the reaction 00122 G4double Time; // Time shift of the capture reaction 00123 G4double EnergyDeposition; // Energy deposited in the reaction 00124 static std::vector <G4int> ElementZ; // Z of the element(i) in theLastCalc 00125 static std::vector <G4double> ElProbInMat; // SumProbabilityElements in Material 00126 static std::vector <std::vector<G4int>*> ElIsoN; // N of isotope(j) of Element(i) 00127 static std::vector <std::vector<G4double>*> IsoProbInEl;// SumProbabIsotopes in Element i 00128 }; 00129 #endif