G4QIonIonElastic.hh

Go to the documentation of this file.
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 //      ---------------- G4QIonIonElastic header ----------------
00029 //                 by Mikhail Kossov, December 2006.
00030 //  Header of G4QIonIonElastic class (A+A) of the CHIPS Simulation Branch in GEANT4
00031 // -------------------------------------------------------------------------------
00032 // This is a unique CHIPS class for the Ion-Ion Elastic Scattering Prosesses
00033 // -------------------------------------------------------------------------------
00034 // @@ This class is on the testing level @@
00035 // -------------------------------------------------------------------------------
00036 // Short description: a simple process for the Ion-Ion elastic scattering.
00037 // For heavy by heavy ions it can reach 50% of the total cross-section.
00038 // -----------------------------------------------------------------------
00039 
00040 #ifndef G4QIonIonElastic_hh
00041 #define G4QIonIonElastic_hh
00042 
00043 // GEANT4 Headers
00044 #include "globals.hh"
00045 #include "G4ios.hh"
00046 #include "Randomize.hh" 
00047 #include "G4VDiscreteProcess.hh"
00048 #include "G4Track.hh"
00049 #include "G4Step.hh"
00050 #include "G4ParticleTypes.hh"
00051 #include "G4VParticleChange.hh"
00052 #include "G4ParticleDefinition.hh"
00053 #include "G4DynamicParticle.hh"
00054 #include "G4ThreeVector.hh"
00055 #include "G4LorentzVector.hh"
00056 
00057 // CHIPS Headers
00058 #include "G4QIonIonCrossSection.hh"
00059 #include "G4QProtonElasticCrossSection.hh"
00060 #include "G4QNeutronElasticCrossSection.hh"
00061 #include "G4QIsotope.hh"
00062 #include "G4QCHIPSWorld.hh"
00063 #include "G4QHadron.hh"
00064 #include <vector>
00065 
00066 class G4QIonIonElastic : public G4VDiscreteProcess
00067 {
00068 public:
00069 
00070   // Constructor
00071   G4QIonIonElastic(const G4String& processName ="CHIPS_IonIonElasticScattering");
00072 
00073   // Destructor
00074   ~G4QIonIonElastic();
00075 
00076   G4bool IsApplicable(const G4ParticleDefinition& particle);
00077 
00078   G4double GetMeanFreePath(const G4Track& aTrack, G4double previousStepSize,
00079                            G4ForceCondition* condition);
00080   // It returns the MeanFreePath of the process for the current track :
00081   // (energy, material)
00082   // The previousStepSize and G4ForceCondition* are not used.
00083   // This function overloads a virtual function of the base class.        
00084   // It is invoked by the ProcessManager of the Particle.
00085  
00086 
00087   G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep); 
00088   // It computes the final state of the process (at end of step),
00089   // returned as a ParticleChange object.       
00090   // This function overloads a virtual function of the base class.
00091   // It is invoked by the ProcessManager of the Particle.
00092 
00093 
00094   G4LorentzVector GetEnegryMomentumConservation(){return EnMomConservation;}
00095 
00096   G4int GetNumberOfNeutronsInTarget(){return nOfNeutrons;}
00097 
00098 private:
00099 
00100   // Hide assignment operator as private 
00101   G4QIonIonElastic& operator=(const G4QIonIonElastic &right);
00102 
00103   // Copy constructor
00104   G4QIonIonElastic(const G4QIonIonElastic&);
00105 
00106   // BODY
00107   // Static Parameters --------------------------------------------------------------------
00108   static G4int    nPartCWorld; // The#of particles for hadronization (limit of A of fragm.)
00109   //--------------------------------- End of static parameters ---------------------------
00110   // Working parameters
00111   G4VQCrossSection* theCS;
00112   G4LorentzVector EnMomConservation;                  // Residual of Energy/Momentum Cons.
00113   G4int nOfNeutrons;                                  // #of neutrons in the target nucleus
00114 
00115   // Modifires for the reaction
00116   G4double Time;                                      // Time shift of the capture reaction
00117   G4double EnergyDeposition;                          // Energy deposited in the reaction
00118   static std::vector <G4int> ElementZ;                // Z of the element(i) in theLastCalc
00119   static std::vector <G4double> ElProbInMat;          // SumProbabilityElements in Material
00120   static std::vector <std::vector<G4int>*> ElIsoN;    // N of isotope(j) of Element(i)
00121   static std::vector <std::vector<G4double>*> IsoProbInEl;// SumProbabIsotopes in Element i
00122 };
00123 #endif
00124 

Generated on Mon May 27 17:49:36 2013 for Geant4 by  doxygen 1.4.7