G4PhotoNuclearCrossSection.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 // GEANT4 tag $Name: not supported by cvs2svn $
00027 //
00028 // GEANT4 physics class: G4PhotoNuclearCrossSection -- header file
00029 // Created: M.V. Kossov, CERN/ITEP(Moscow), 10-OCT-01
00030 // The last update: M.V. Kossov, CERN/ITEP (Moscow) 17-May-02
00031 
00032 #ifndef G4PhotoNuclearCrossSection_h
00033 #define G4PhotoNuclearCrossSection_h 1
00034 
00035 #include "G4VCrossSectionDataSet.hh"
00036 #include "G4DynamicParticle.hh"
00037 #include "G4Element.hh"
00038 #include "G4ParticleTable.hh"
00039 #include "G4NucleiProperties.hh"
00040 #include <vector>
00041 
00042 class G4PhotoNuclearCrossSection : public G4VCrossSectionDataSet
00043 {
00044   public:
00045 
00046     G4PhotoNuclearCrossSection(const G4String& name = "PhotoNuclearXS");
00047     virtual ~G4PhotoNuclearCrossSection();
00048 
00049     virtual void CrossSectionDescription(std::ostream&) const;
00050 
00051     virtual G4bool
00052     IsIsoApplicable(const G4DynamicParticle* particle, G4int /*Z*/, G4int /*A*/,
00053                     const G4Element*, const G4Material*);
00054 
00055     virtual G4double
00056     GetIsoCrossSection(const G4DynamicParticle*, G4int /*Z*/, G4int /*A*/,
00057                        const G4Isotope*, const G4Element*, const G4Material*);
00058 
00059   private:
00060 
00061     G4int GetFunctions(G4double a, G4double* y, G4double* z);
00062     G4double EquLinearFit(G4double X, G4int N, const G4double X0,
00063                           const G4double XD, const G4double* Y);
00064     G4double ThresholdEnergy(G4int Z, G4int N);
00065 
00066   // Body
00067   private:
00068 
00069     static G4int     lastN;   // The last N of calculated nucleus
00070     static G4int     lastZ;   // The last Z of calculated nucleus
00071     static G4double  lastSig; // Last value of the Cross Section
00072     static G4double* lastGDR; // Pointer to the last array of GDR cross sections
00073     static G4double* lastHEN; // Pointer to the last array of HEn cross sections
00074     static G4double  lastE;   // Last used in the cross section Energy
00075     static G4double  lastTH;  // Last value of the Energy Threshold (A-dependent)
00076     static G4double  lastSP;  // Last value of the ShadowingPomeron (A-dependent)
00077 
00078     // Vector of pointers to the GDRPhotonuclearCrossSection
00079     static std::vector <G4double*> GDR;
00080 
00081     // Vector of pointers to the HighEnPhotonuclearCrossSect
00082     static std::vector <G4double*> HEN;
00083 };
00084 
00085 #endif

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