Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
@@ -0,0 +1,70 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
#ifndef G4LENDCombinedCrossSection_h
#define G4LENDCombinedCrossSection_h 1
// Class Description
// LEND is Geant4 interface for GIDI (General Interaction Data Interface)
// which gives a discription of nuclear and atomic reactions, such as
// Binary collision cross sections
// Particle number multiplicity distributions of reaction products
// Energy and angular distributions of reaction products
// Derived calculational constants
// GIDI is developped at Lawrence Livermore National Laboratory
// Class Description - End
// 170912 First implementation done by T. Koi (SLAC/EPP)
#include "G4LENDCrossSection.hh"
class G4LENDElasticCrossSection;
class G4LENDInelasticCrossSection;
class G4LENDCaptureCrossSection;
class G4LENDFissionCrossSection;
class G4HadProjectile;
class G4LENDCombinedCrossSection : public G4LENDCrossSection
{
public:
G4LENDCombinedCrossSection( G4ParticleDefinition* pd );
~G4LENDCombinedCrossSection(){;};
void BuildPhysicsTable( const G4ParticleDefinition& );
G4double GetIsoCrossSection( const G4DynamicParticle*, G4int /*Z*/, G4int /*A*/ ,
const G4Isotope* , const G4Element* , const G4Material* );
G4int SelectChannel( const G4DynamicParticle*, G4int /*Z*/, G4int /*A*/ ,
const G4Isotope* , const G4Element* , const G4Material* );
private:
G4LENDElasticCrossSection* elasticXS;
G4LENDInelasticCrossSection* inelasticXS;
G4LENDCaptureCrossSection* captureXS;
G4LENDFissionCrossSection* fissionXS;
};
#endif
@@ -0,0 +1,72 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
#ifndef G4LENDCombinedModel_h
#define G4LENDCombinedModel_h 1
// Class Description
// LEND is Geant4 interface for GIDI (General Interaction Data Interface)
// which gives a discription of nuclear and atomic reactions, such as
// Binary collision cross sections
// Particle number multiplicity distributions of reaction products
// Energy and angular distributions of reaction products
// Derived calculational constants
// GIDI is developped at Lawrence Livermore National Laboratory
// Class Description - End
// 170912 First implementation done by T. Koi (SLAC/EPP)
#include "G4LENDModel.hh"
class G4LENDCombinedCrossSection;
class G4LENDElastic;
class G4LENDInelastic;
class G4LENDCapture;
class G4LENDFission;
class G4LENDCombinedModel : public G4LENDModel
{
public:
G4LENDCombinedModel( G4ParticleDefinition* pd );
~G4LENDCombinedModel(){;};
void BuildPhysicsTable(const G4ParticleDefinition&);
G4HadFinalState* ApplyYourself( const G4HadProjectile& aTrack, G4Nucleus& aTargetNucleus );
G4bool HasData( const G4DynamicParticle* , G4int iZ , G4int iA , G4int iM,
const G4Isotope* , const G4Element* , const G4Material* );
private:
G4LENDCombinedCrossSection* crossSection;
G4LENDElastic* elastic;
G4LENDInelastic* inelastic;
G4LENDCapture* capture;
G4LENDFission* fission;
G4LENDModel* channels[4];
};
#endif
@@ -84,7 +84,7 @@ class G4LENDCrossSection : public G4VCrossSectionDataSet
void BuildPhysicsTable( const G4ParticleDefinition& );
void DumpPhysicsTable( const G4ParticleDefinition& );
void DumpLENDTargetInfo( G4bool force = false );
//TK110810
//G4double GetCrossSection( const G4DynamicParticle* , const G4Element* , G4double aT );
@@ -126,6 +126,7 @@ class G4LENDCrossSection : public G4VCrossSectionDataSet
//G4String name;
G4ParticleDefinition* proj;
void create_used_target_map();
G4GIDI_target* get_target_from_map( G4int nuclear_code );
virtual G4double getLENDCrossSection( G4GIDI_target* , G4double , G4double ) { return 0.0; };
// elow ehigh xs_elow xs_ehigh ke (<elow)
G4double GetUltraLowEnergyExtrapolatedXS( G4double , G4double , G4double , G4double , G4double );
@@ -49,7 +49,7 @@ class G4LENDFissionCrossSection : public G4LENDCrossSection
//G4LENDFissionCrossSection()
//{;};
G4LENDFissionCrossSection( G4ParticleDefinition* pd )
:G4LENDCrossSection("LENDEFissionCrossSection")
:G4LENDCrossSection("LENDFissionCrossSection")
{
proj = pd;
//name = "LEND Fission Cross Section for ";
@@ -50,7 +50,7 @@ class G4LENDInelasticCrossSection : public G4LENDCrossSection
G4LENDInelasticCrossSection()
{;};
G4LENDInelasticCrossSection( G4ParticleDefinition* pd )
:G4LENDCrossSection("LENDEInelasitcCrossSection")
:G4LENDCrossSection("LENDInelasitcCrossSection")
{
proj = pd;
//name = "LEND Inelastic Cross Section for ";
@@ -64,6 +64,7 @@ class G4LENDModel : public G4HadronicInteraction
void AllowAnyCandidateTarget(){ allow_any = true; recreate_used_target_map(); };
//Same argument to the CrossSectionDataSet
void BuildPhysicsTable( const G4ParticleDefinition& ){ recreate_used_target_map(); };
void DumpLENDTargetInfo( G4bool force = false );
private:
@@ -75,6 +76,9 @@ class G4LENDModel : public G4HadronicInteraction
void create_used_target_map();
void recreate_used_target_map();
G4GIDI_target* get_target_from_map( G4int nuclear_code );
G4HadFinalState* returnUnchanged( const G4HadProjectile& aTrack, G4HadFinalState* theResult );
G4ParticleDefinition* proj;
G4LENDManager* lend_manager;