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 // ---------------- G4QDiffraction header ---------------- 00029 // by Mikhail Kossov, Aug 2007. 00030 // Header of G4QDiffraction class (hadron+A) of the CHIPS Simulation Branch in GEANT4 00031 // ------------------------------------------------------------------------------- 00032 // This is a unique CHIPS class for the Hadron-Nuclear Diffractive Interaction Prosesses 00033 // ------------------------------------------------------------------------------- 00034 // At present (Aug-07) it is based on the G4QDiffractionRatio class and is not tested. 00035 // The normalization is based on the temporary G4QProtonNuclearCrossSection class 00036 // ------------------------------------------------------------------------------- 00037 // Short description: This is a process, which describes the diffraction 00038 // excitation of the projectile and the nucleus. On nuclei in addition there 00039 // can be a coherent diffraction process for the projectile, but it is 00040 // comparably small. The most important part of the diffraction is the 00041 // progectile diffraction excitation, as in this interaction proton can lose 00042 // only a small part of its energy and make the shower longer. This is because 00043 // only 1-2 (n) pions are produce in the diffraction escitation, and the mean 00044 // kept energy of the nucleon is (1-n/7)=80%. For kaons the kept energy is much 00045 // smaller (1-n/3.5)=60%, and for pions it is less important (about 40%). 00046 // ---------------------------------------------------------------------------- 00047 00048 #ifndef G4QDiffraction_hh 00049 #define G4QDiffraction_hh 00050 00051 // GEANT4 Headers 00052 #include "globals.hh" 00053 #include "G4ios.hh" 00054 #include "Randomize.hh" 00055 #include "G4VDiscreteProcess.hh" 00056 #include "G4Track.hh" 00057 #include "G4Step.hh" 00058 #include "G4ParticleTypes.hh" 00059 #include "G4VParticleChange.hh" 00060 #include "G4ParticleDefinition.hh" 00061 #include "G4DynamicParticle.hh" 00062 #include "G4ThreeVector.hh" 00063 #include "G4LorentzVector.hh" 00064 00065 // CHIPS Headers 00066 #include "G4QDiffractionRatio.hh" 00067 #include "G4QProtonNuclearCrossSection.hh" 00068 #include "G4QIsotope.hh" 00069 #include "G4QCHIPSWorld.hh" 00070 #include "G4QHadronVector.hh" 00071 #include <vector> 00072 00073 class G4QDiffraction : public G4VDiscreteProcess 00074 { 00075 public: 00076 00077 // Constructor 00078 G4QDiffraction(const G4String& processName ="CHIPS_DiffractiveInteraction"); 00079 00080 // Destructor 00081 ~G4QDiffraction(); 00082 00083 G4bool IsApplicable(const G4ParticleDefinition& particle); 00084 00085 G4double GetMeanFreePath(const G4Track& aTrack, G4double previousStepSize, 00086 G4ForceCondition* condition); 00087 // It returns the MeanFreePath of the process for the current track : 00088 // (energy, material) 00089 // The previousStepSize and G4ForceCondition* are not used. 00090 // This function overloads a virtual function of the base class. 00091 // It is invoked by the ProcessManager of the Particle. 00092 00093 00094 G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep); 00095 // It computes the final state of the process (at end of step), 00096 // returned as a ParticleChange object. 00097 // This function overloads a virtual function of the base class. 00098 // It is invoked by the ProcessManager of the Particle. 00099 00100 00101 G4LorentzVector GetEnegryMomentumConservation(); 00102 00103 G4int GetNumberOfNeutronsInTarget(); 00104 00105 private: 00106 00107 // Hide assignment operator as private 00108 G4QDiffraction& operator=(const G4QDiffraction &right); 00109 00110 // Copy constructor 00111 G4QDiffraction(const G4QDiffraction&); 00112 00113 // Calculate Cross-Section of the Diffraction Reaction (p is in GeV @@ units) 00114 G4double CalculateXS(G4double p, G4int Z, G4int N, G4int pPDG); 00115 00116 // BODY 00117 // Static Parameters -------------------------------------------------------------------- 00118 static G4int nPartCWorld; // The#of particles for hadronization (limit of A of fragm.) 00119 //--------------------------------- End of static parameters --------------------------- 00120 // Working parameters 00121 G4VQCrossSection* theCS; 00122 G4LorentzVector EnMomConservation; // Residual of Energy/Momentum Cons. 00123 G4int nOfNeutrons; // #of neutrons in the target nucleus 00124 00125 // Modifires for the reaction 00126 G4double Time; // Time shift of the capture reaction 00127 G4double EnergyDeposition; // Energy deposited in the reaction 00128 static std::vector <G4int> ElementZ; // Z of the element(i) in theLastCalc 00129 static std::vector <G4double> ElProbInMat; // SumProbabilityElements in Material 00130 static std::vector <std::vector<G4int>*> ElIsoN; // N of isotope(j) of Element(i) 00131 static std::vector <std::vector<G4double>*> IsoProbInEl;// SumProbabIsotopes in Element i 00132 }; 00133 #endif