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 // ---------------- G4QLowEnergy header ---------------- 00029 // by Mikhail Kossov, Aug 2007. 00030 // Header of G4QLowEnergy class (A+A) of the CHIPS Simulation Branch in GEANT4 00031 // ------------------------------------------------------------------------------- 00032 // This is a unique CHIPS class for the Ion-Ion Low Energy Inelastic Interactions 00033 // ------------------------------------------------------------------------------- 00034 // At present (Aug-07) it is not tested. 00035 // The normalization is based on the temporary G4QIonIonCrossSection class 00036 // ------------------------------------------------------------------------------- 00037 // Short description: This is a fast low energy algorithm for the 00038 // inelastic interactions of nucleons and nuclei (ions) with nuclei. 00039 // This is a fase-space algorithm, but not quark level. Provides 00040 // nuclear fragments upto alpha only. Never was tumed (but can be). 00041 // --------------------------------------------------------------- 00042 00043 #ifndef G4QLowEnergy_hh 00044 #define G4QLowEnergy_hh 00045 00046 // GEANT4 Headers 00047 #include "globals.hh" 00048 #include "G4ios.hh" 00049 #include "Randomize.hh" 00050 #include "G4VDiscreteProcess.hh" 00051 #include "G4Track.hh" 00052 #include "G4Step.hh" 00053 #include "G4ParticleTypes.hh" 00054 #include "G4ParticleTable.hh" 00055 #include "G4VParticleChange.hh" 00056 #include "G4ParticleDefinition.hh" 00057 #include "G4DynamicParticle.hh" 00058 #include "G4ThreeVector.hh" 00059 #include "G4LorentzVector.hh" 00060 00061 // CHIPS Headers 00062 #include "G4QNucleus.hh" 00063 #include "G4QIonIonCrossSection.hh" 00064 #include "G4QProtonNuclearCrossSection.hh" 00065 #include "G4QProtonElasticCrossSection.hh" 00066 #include "G4QNeutronElasticCrossSection.hh" 00067 #include "G4QIsotope.hh" 00068 #include "G4QCHIPSWorld.hh" 00069 #include "G4QHadronVector.hh" 00070 #include <vector> 00071 00072 class G4QLowEnergy : public G4VDiscreteProcess 00073 { 00074 public: 00075 00076 // Constructor 00077 G4QLowEnergy(const G4String& processName ="CHIPS_LowEnergyIonIonInelastic"); 00078 00079 // Destructor 00080 ~G4QLowEnergy(); 00081 00082 G4bool IsApplicable(const G4ParticleDefinition& particle); 00083 00084 G4double GetMeanFreePath(const G4Track& aTrack, G4double previousStepSize, 00085 G4ForceCondition* condition); 00086 // It returns the MeanFreePath of the process for the current track : 00087 // (energy, material) 00088 // The previousStepSize and G4ForceCondition* are not used. 00089 // This function overloads a virtual function of the base class. 00090 // It is invoked by the ProcessManager of the Particle. 00091 00092 00093 G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep); 00094 // It computes the final state of the process (at end of step), 00095 // returned as a ParticleChange object. 00096 // This function overloads a virtual function of the base class. 00097 // It is invoked by the ProcessManager of the Particle. 00098 00099 G4LorentzVector GetEnegryMomentumConservation(); 00100 00101 G4int GetNumberOfNeutronsInTarget(); 00102 00103 void SwitchOnEvaporation() {evaporate=true;} // Evaporation instead of gammas (default) 00104 00105 void SwitchOffEvaporation() {evaporate=false;} // Gammas instead of evaporation 00106 00107 private: 00108 00109 // Hide assignment operator as private 00110 G4QLowEnergy& operator=(const G4QLowEnergy &right); 00111 00112 // Copy constructor 00113 G4QLowEnergy(const G4QLowEnergy&); 00114 00115 // Calculate Cross-Section of the Diffraction Reaction (p is in GeV @@ units) 00116 G4double CalculateXS(G4double p, G4int Z, G4int N, G4int pPDG); 00117 00118 // BODY 00119 // Static Parameters -------------------------------------------------------------------- 00120 static G4int nPartCWorld; // The#of particles for hadronization (limit of A of fragm.) 00121 //--------------------------------- End of static parameters --------------------------- 00122 // Working parameters 00123 G4bool evaporate; 00124 G4VQCrossSection* theCS; 00125 G4LorentzVector EnMomConservation; // Residual of Energy/Momentum Cons. 00126 G4int nOfNeutrons; // #of neutrons in the target nucleus 00127 00128 // Modifires for the reaction 00129 G4double Time; // Time shift of the capture reaction 00130 G4double EnergyDeposition; // Energy deposited in the reaction 00131 static std::vector <G4int> ElementZ; // Z of the element(i) in theLastCalc 00132 static std::vector <G4double> ElProbInMat; // SumProbabilityElements in Material 00133 static std::vector <std::vector<G4int>*> ElIsoN; // N of isotope(j) of Element(i) 00134 static std::vector <std::vector<G4double>*> IsoProbInEl;// SumProbabIsotopes in Element i 00135 }; 00136 #endif