Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
@@ -1,17 +0,0 @@
#------------------------------------------------------------------------------
# CMakeLists.txt
# Module : G4hadronic_coherent_elastic
# Package: Geant4.src.G4processes.G4hadronic.G4hadronic_models.G4hadronic_coherent_elastic
#
# CMakeLists.txt for building a single granular library.
#
# Generated on : 24/9/2010
#
#
#------------------------------------------------------------------------------
if(GEANT4_BUILD_GRANULAR_LIBS)
include(Geant4MacroLibraryTargets)
GEANT4_GRANULAR_LIBRARY_TARGET(COMPONENT sources.cmake)
endif()
@@ -22,9 +22,6 @@ CPPFLAGS += -I$(G4BASE)/global/management/include \
-I$(G4BASE)/processes/management/include \
-I$(G4BASE)/processes/hadronic/management/include/ \
-I$(G4BASE)/processes/hadronic/util/include/ \
-I$(G4BASE)/processes/hadronic/models/management/include/ \
-I$(G4BASE)/processes/hadronic/models/util/include/ \
-I$(G4BASE)/processes/hadronic/util/include \
-I$(G4BASE)/processes/hadronic/cross_sections/include/ \
-I$(G4BASE)/particles/management/include \
-I$(G4BASE)/particles/leptons/include \
@@ -14,6 +14,27 @@ code and to keep track of all tags.
* Please list in reverse chronological order (last date on top)
---------------------------------------------------------------
16 April 2021 - Ben Morgan (hadr-cohe-V10-07-03)
--------------------------------------------------
- Migrate build to modular CMake API
05 May 2021 - V.Ivanchenko (hadr-cohe-V10-07-02)
---------------------------------------------------------------
- G4LEHadronProtonElastic, G4ChargeExchangeProcess - removed unused
headers
13 April 2021 - A.Ribon (hadr-cohe-V10-07-01)
---------------------------------------------------------------
- GNUmakefile, sources.cmake : removed the subdirectories
hadronic/models/management and hadronic/models/util
(that have been now deleted, with their classes moved to
hadronic/util and hadronic/management).
08 March 2021 - A.Ribon (hadr-cohe-V10-07-00)
---------------------------------------------------------------
- G4ChargeExchangeProcess : replaced Gheisha elastic cross section
(that has been deleted) with G4ComponentGGHadronNucleusXsc.
22 July 2020 - V.Ivanchenko (hadr-cohe-V10-06-03)
---------------------------------------------------------------
- G4HadronElastic - added numerical protection against precision lost
@@ -35,44 +35,26 @@
#define G4LEHadronProtonElastic_h 1
#include "globals.hh"
#include "Randomize.hh"
#include "G4Element.hh"
#include "G4ElementVector.hh"
#include "G4ElementTable.hh"
#include "G4PhysicsTable.hh"
#include "G4PhysicsVector.hh"
#include "G4LPhysicsFreeVector.hh"
#include "G4Gamma.hh"
#include "G4Step.hh"
#include "G4TrackStatus.hh"
#include "G4HadronElastic.hh"
#ifdef NPDEBUG
#include <iostream>
#include <fstream>
#endif
class G4LEHadronProtonElastic : public G4HadronElastic
{
public:
G4LEHadronProtonElastic();
~G4LEHadronProtonElastic();
~G4LEHadronProtonElastic() override;
G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack,
G4Nucleus& targetNucleus);
G4Nucleus& targetNucleus) override;
// sample momentum transfer using Lab. momentum
G4double SampleInvariantT(const G4ParticleDefinition* p,
G4double plab, G4int Z, G4int A);
G4double plab, G4int Z, G4int A) override;
G4double RandCosThetaDipPen();
private:
};
#endif
@@ -1,88 +1,60 @@
#------------------------------------------------------------------------------
# sources.cmake
# Module : G4hadronic_coherent_elastic
# Package: Geant4.src.G4processes.G4hadronic.G4hadronic_models.G4hadronic_coherent_elastic
#
# Sources description for a library.
# Lists the sources and headers of the code explicitly.
# Lists include paths needed.
# Lists the internal granular and global dependencies of the library.
# Source specific properties should be added at the end.
#
# Generated on : 24/9/2010
#
#
#------------------------------------------------------------------------------
# - G4hadronic_coherent_elastic module build definition
#
# Define the Geant4 Module.
#
GEANT4_DEFINE_MODULE(NAME G4hadronic_coherent_elastic
HEADERS
G4AntiNuclElastic.hh
G4ChipsElasticModel.hh
G4ChargeExchange.hh
G4ChargeExchangeProcess.hh
G4DiffuseElastic.hh
G4DiffuseElasticV2.hh
G4ElasticHadrNucleusHE.hh
G4HadronElastic.hh
G4LEHadronProtonElastic.hh
G4LowEHadronElastic.hh
G4hhElastic.hh
G4LEnp.hh
G4LEnpData.hh
G4LEpp.hh
G4LEppData.hh
G4LMsdGenerator.hh
G4NeutrinoElectronNcModel.hh
G4NeutronElectronElModel.hh
G4NuclNuclDiffuseElastic.hh
SOURCES
G4AntiNuclElastic.cc
G4ChipsElasticModel.cc
G4ChargeExchange.cc
G4ChargeExchangeProcess.cc
G4DiffuseElastic.cc
G4DiffuseElasticV2.cc
G4ElasticHadrNucleusHE.cc
G4HadronElastic.cc
G4LEHadronProtonElastic.cc
G4LowEHadronElastic.cc
G4hhElastic.cc
G4LEnp.cc
G4LEpp.cc
G4LMsdGenerator.cc
G4NeutrinoElectronNcModel.cc
G4NeutronElectronElModel.cc
G4NuclNuclDiffuseElastic.cc
GRANULAR_DEPENDENCIES
G4baryons
G4bosons
G4cuts
G4geometrymng
G4globman
G4had_mod_man
G4hadronic_mgt
G4hadronic_util
G4hadronic_xsect
G4hepnumerics
G4ions
G4leptons
G4materials
G4mesons
G4partman
G4procman
G4track
G4volumes
GLOBAL_DEPENDENCIES
G4geometry
G4global
G4materials
G4particles
G4track
LINK_LIBRARIES
)
# List any source specific properties here
geant4_add_module(G4hadronic_coherent_elastic
PUBLIC_HEADERS
G4AntiNuclElastic.hh
G4ChipsElasticModel.hh
G4ChargeExchange.hh
G4ChargeExchangeProcess.hh
G4DiffuseElastic.hh
G4DiffuseElasticV2.hh
G4ElasticHadrNucleusHE.hh
G4HadronElastic.hh
G4LEHadronProtonElastic.hh
G4LowEHadronElastic.hh
G4hhElastic.hh
G4LEnp.hh
G4LEnpData.hh
G4LEpp.hh
G4LEppData.hh
G4LMsdGenerator.hh
G4NeutrinoElectronNcModel.hh
G4NeutronElectronElModel.hh
G4NuclNuclDiffuseElastic.hh
SOURCES
G4AntiNuclElastic.cc
G4ChipsElasticModel.cc
G4ChargeExchange.cc
G4ChargeExchangeProcess.cc
G4DiffuseElastic.cc
G4DiffuseElasticV2.cc
G4ElasticHadrNucleusHE.cc
G4HadronElastic.cc
G4LEHadronProtonElastic.cc
G4LowEHadronElastic.cc
G4hhElastic.cc
G4LEnp.cc
G4LEpp.cc
G4LMsdGenerator.cc
G4NeutrinoElectronNcModel.cc
G4NeutronElectronElModel.cc
G4NuclNuclDiffuseElastic.cc)
geant4_module_link_libraries(G4hadronic_coherent_elastic
PUBLIC
G4bosons
G4globman
G4hadronic_mgt
G4hadronic_util
G4hadronic_xsect
G4hepnumerics
G4heprandom
G4materials
G4partman
G4track
PRIVATE
G4baryons
G4cuts
G4ions
G4leptons)
@@ -43,7 +43,8 @@
#include "globals.hh"
#include "G4SystemOfUnits.hh"
#include "G4CrossSectionDataStore.hh"
#include "G4HadronElasticDataSet.hh"
#include "G4CrossSectionElastic.hh"
#include "G4ComponentGGHadronNucleusXsc.hh"
#include "G4Element.hh"
#include "G4ElementVector.hh"
#include "G4IsotopeVector.hh"
@@ -60,7 +61,7 @@ G4ChargeExchangeProcess::G4ChargeExchangeProcess(const G4String& procName)
thEnergy = 20.*MeV;
pPDG = 0;
verboseLevel= 1;
AddDataSet(new G4HadronElasticDataSet);
AddDataSet( new G4CrossSectionElastic( new G4ComponentGGHadronNucleusXsc ) );
theProton = G4Proton::Proton();
theNeutron = G4Neutron::Neutron();
theAProton = G4AntiProton::AntiProton();
@@ -122,7 +123,6 @@ BuildPhysicsTable(const G4ParticleDefinition& aParticleType)
factors = new G4PhysicsLinearVector(0.0,4.0*GeV,n);
for(size_t i=0; i<n; i++) {factors->PutValue(i,F[i]);}
}
//factors->SetSpline(true);
if(verboseLevel>1)
G4cout << "G4ChargeExchangeProcess for "