G4QIonIonCrossSection.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 // Short description: CHIPS cross-sectons for Ion-Ion interactions
00027 // ---------------------------------------------------------------
00028 //
00029 //
00030 // GEANT4 tag $Name: not supported by cvs2svn $
00031 //
00032 //
00033 // GEANT4 physics class: G4QIonIonCrossSection -- header file
00034 // Created: M.V. Kossov, CERN/ITEP(Moscow), 19-Aug-07
00035 // The last update: M.V. Kossov, CERN/ITEP (Moscow) 19-Aug-07
00036 //-----------------------------------------------------------------------------------------
00037 // In this class, just as an experiment the real PDG codes (not CHIPS) are used
00038 //-----------------------------------------------------------------------------------------
00039 //
00040 // ****************************************************************************************
00041 // ********* This HEADER is temporary moved from the chips/interface directory *********
00042 // ******* DO NOT MAKE ANY CHANGE! With time it'll move back to photolepton...(M.K.) ******
00043 // ****************************************************************************************
00044 
00045 #ifndef G4QIonIonCrossSection_h
00046 #define G4QIonIonCrossSection_h 1
00047 
00048 #include "G4ParticleTable.hh"
00049 #include "G4NucleiProperties.hh"
00050 #include <vector>
00051 #include "G4VQCrossSection.hh"
00052 #include "G4QPDGCode.hh"
00053 #include "G4QProtonElasticCrossSection.hh"
00054 #include "G4QNeutronElasticCrossSection.hh"
00055 #include "G4QProtonNuclearCrossSection.hh"
00056 #include "G4QNeutronNuclearCrossSection.hh"
00057 
00058 
00059 class G4QIonIonCrossSection : public G4VQCrossSection
00060 {
00061 protected:
00062 
00063   G4QIonIonCrossSection()  {}
00064 
00065 public:
00066 
00067   ~G4QIonIonCrossSection() {}
00068 
00069   static G4VQCrossSection* GetPointer(); // Gives a pointer to this singletone
00070 
00071   // At present momentum (pMom) must be in GeV(@@ Units),fCS=true:Inelastic, =false:Elastic
00072   virtual G4double GetCrossSection(G4bool fCS, G4double pMom, G4int Z, G4int N, G4int PDG);
00073 
00074   // Momentum=p/A (MeV/c)
00075   G4double CalculateCrossSection(G4bool fCS, G4int F, G4int I, G4int PDG,
00076                                  G4int tZ, G4int tN, G4double Momentum);
00077 
00078   G4double ThresholdMomentum(G4int pZ, G4int pN, G4int tZ, G4int tN);// P-Threshold(MeV/c)
00079 
00080 private:
00081   G4int    GetFunctions(G4int pZ, G4int pN, G4int tZ, G4int tN,
00082                         G4double* LI, G4double* HI,  // Inelastic
00083                         G4double* LE, G4double* HE); // Elastic
00084 
00085   G4double CalculateTotal(G4double pA, G4double tA, G4double Momentum);
00086   G4double CalculateElTot(G4double pA, G4double tA, G4double Momentum);
00087   // Momentum=p/A (MeV/c), first=InelasticCS, second=elasticCS (mb)
00088   std::pair<G4double,G4double> CalculateXS(G4int pZ,G4int pN,G4int tZ,G4int tN,G4double P);
00089 
00090 // Body
00091 private:
00092   static G4double* lastLENI;// Pointer to the last array of LowEnergy Inel cross sections
00093   static G4double* lastHENI;// Pointer to the last array of HighEnergy Inel cross sections
00094   static G4double* lastLENE;// Pointer to the last array of LowEnergy Elast cross sections
00095   static G4double* lastHENE;// Pointer to the last array of HighEnergy Elast cross sections
00096   static G4double  lastE;   // Last used in the cross section Energy
00097   static G4int     lastPDG; // The last projectile PDG
00098   static G4int     lastN;   // The last N of calculated nucleus
00099   static G4int     lastZ;   // The last Z of calculated nucleus
00100   static G4double  lastP;   // Last used in the cross section Momentum
00101   static G4double  lastTH;  // Last value of the Momentum Threshold
00102   static G4double  lastICS; // Last value of the Inelastic Cross Section
00103   static G4double  lastECS; // Last value of the Elastic Cross Section
00104   static G4int     lastI;   // The last position in the DAMDB
00105 };
00106 
00107 #endif

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