G4ChipsHyperonInelasticXS.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 //
00027 // GEANT4 tag $Name: not supported by cvs2svn $
00028 //
00029 //
00030 // GEANT4 physics class: G4ChipsHyperonInelasticXS -- header file
00031 // Created: M.V. Kossov, CERN/ITEP(Moscow), 20-Dec-01
00032 // The last update: M.V. Kossov, CERN/ITEP (Moscow) 17-May-02
00033 //
00034 //
00035 // ****************************************************************************************
00036 // Short description: Cross-sections extracted (by W.Pokorski) from the CHIPS package for 
00037 // Hyperon-nuclear  interactions. Original author: M. Kossov
00038 // -------------------------------------------------------------------------------------
00039 //
00040 
00041 #ifndef G4ChipsHyperonInelasticXS_h
00042 #define G4ChipsHyperonInelasticXS_h 1
00043 
00044 #include "G4ParticleTable.hh"
00045 #include "G4NucleiProperties.hh"
00046 #include <vector>
00047 #include "G4VCrossSectionDataSet.hh"
00048 
00049 class G4ChipsHyperonInelasticXS : public G4VCrossSectionDataSet
00050 {
00051 
00052 public:
00053 
00054   G4ChipsHyperonInelasticXS();
00055 
00056   ~G4ChipsHyperonInelasticXS();
00057 
00058   static const char* Default_Name() {return "ChipsHyperonInelasticXS";}
00059 
00060   virtual G4bool IsIsoApplicable(const G4DynamicParticle* Pt, G4int Z, G4int A,    
00061                                  const G4Element* elm,
00062                                  const G4Material* mat );
00063 
00064   // At present momentum (pMom) in MeV/c, CS in mb (@@ Units)
00065   virtual G4double GetIsoCrossSection(const G4DynamicParticle*, G4int tgZ, G4int A,  
00066                                       const G4Isotope* iso = 0,
00067                                       const G4Element* elm = 0,
00068                                       const G4Material* mat = 0);
00069 
00070   virtual G4double GetChipsCrossSection(G4double momentum, G4int Z, G4int N, G4int pdg);
00071 
00072 private:
00073   G4double CalculateCrossSection(G4int F, G4int I, G4int PDG, G4int Z,
00074                                  G4int N, G4double Momentum);
00075 
00076   G4double CrossSectionLin(G4int targZ, G4int targN, G4double P);
00077   G4double CrossSectionLog(G4int targZ, G4int targN, G4double lP);
00078   G4double CrossSectionFormula(G4int targZ, G4int targN, G4double P, G4double lP);
00079   G4double EquLinearFit(G4double X, G4int N, G4double X0, G4double DX, G4double* Y);
00080 // Body
00081 private:
00082   G4double  lastSig; // Last value of the Cross Section
00083   G4double* lastLEN; // Pointer to the last array of LowEnergy cross sections
00084   G4double* lastHEN; // Pointer to the last array of HighEnergy cross sections
00085   G4double  lastE;   // Last used in the cross section Energy
00086   G4int     lastPDG; // The last projectile PDG
00087   G4int     lastN;   // The last N of calculated nucleus
00088   G4int     lastZ;   // The last Z of calculated nucleus
00089   G4double  lastP;   // Last used in the cross section Momentum
00090   G4double  lastTH;  // Last value of the Momentum Threshold
00091   G4double  lastCS;  // Last value of the Cross Section
00092   G4int     lastI;   // The last position in the DAMDB
00093   std::vector<G4double*>* LEN;  // Vector of pointers to LowEnProtonCrossSection
00094   std::vector<G4double*>* HEN;  // Vector of pointers to HighEnProtonCrossSection
00095 };
00096 
00097 #endif

Generated on Mon May 27 17:47:52 2013 for Geant4 by  doxygen 1.4.7