Import Geant4 10.4.0.beta source tree
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile 94088 2015-11-05 15:11:00Z gcosmo $
|
||||
# $Id: GNUmakefile 104019 2017-05-08 07:34:08Z gcosmo $
|
||||
# ---------------------------------------------------------------------------
|
||||
# GNUmakefile for physics_lists/constructors/electromagnetic library.
|
||||
# Gunter Folger 10-Jan-2012.
|
||||
@@ -41,6 +41,7 @@ CPPFLAGS += -I$(G4BASE)/global/management/include \
|
||||
-I$(G4BASE)/physics_lists/builders/include \
|
||||
-I$(G4BASE)/physics_lists/util/include \
|
||||
-I$(G4BASE)/physics_lists/constructors/factory/include \
|
||||
-I$(G4BASE)/physics_lists/constructors/hadron_inelastic/include \
|
||||
-I$(G4BASE)/processes/management/include \
|
||||
-I$(G4BASE)/processes/transportation/include \
|
||||
-I$(G4BASE)/processes/cuts/include \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History 101061 2016-11-04 13:07:09Z gcosmo $
|
||||
$Id: History 104019 2017-05-08 07:34:08Z gcosmo $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -14,6 +14,10 @@ introduced in the code and keeptrack of all tags.
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
04-May-2017, V.Ivanchenko (phys-ctor-helastic-V10-03-00)
|
||||
- G4ThermalNeutrons - new class for addition of thermal neutron
|
||||
scattering below 4 eV (backported from CMS simulation)
|
||||
|
||||
04-Nov-2016, Alberto Ribon (phys-ctor-helastic-V10-02-04)
|
||||
- Written first draft of the README
|
||||
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4ThermalNeutrons.hh 70995 2013-06-09 00:56:34Z adotti $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: G4ThermalNeutrons
|
||||
//
|
||||
// Author: 4 May 2017 V. Ivanchenko
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
// Addition of neutron thermal scattering on top of any PhysicsList
|
||||
|
||||
#ifndef G4ThermalNeutrons_h
|
||||
#define G4ThermalNeutrons_h
|
||||
|
||||
#include "G4VHadronPhysics.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4ThermalNeutrons : public G4VHadronPhysics {
|
||||
|
||||
public:
|
||||
G4ThermalNeutrons(G4int ver);
|
||||
virtual ~G4ThermalNeutrons();
|
||||
|
||||
virtual void ConstructProcess();
|
||||
|
||||
private:
|
||||
G4int verbose;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# Generated on : 10/01/2013
|
||||
#
|
||||
# $Id: sources.cmake 94088 2015-11-05 15:11:00Z gcosmo $
|
||||
# $Id: sources.cmake 104019 2017-05-08 07:34:08Z gcosmo $
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@@ -39,6 +39,7 @@ include_directories(${CMAKE_SOURCE_DIR}/source/run/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/physics_lists/builders/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/physics_lists/util/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/physics_lists/constructors/factory/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/physics_lists/constructors/hadron_inelastic/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/processes/management/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/processes/transportation/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/processes/cuts/include)
|
||||
@@ -70,6 +71,7 @@ GEANT4_DEFINE_MODULE(NAME G4phys_ctor_helastic
|
||||
G4HadronHElasticPhysics.hh
|
||||
G4IonElasticPhysics.hh
|
||||
G4HadronElasticPhysicsPHP.hh
|
||||
G4ThermalNeutrons.hh
|
||||
SOURCES
|
||||
G4ChargeExchangePhysics.cc
|
||||
G4HadronDElasticPhysics.cc
|
||||
@@ -80,6 +82,7 @@ GEANT4_DEFINE_MODULE(NAME G4phys_ctor_helastic
|
||||
G4HadronHElasticPhysics.cc
|
||||
G4IonElasticPhysics.cc
|
||||
G4HadronElasticPhysicsPHP.cc
|
||||
G4ThermalNeutrons.cc
|
||||
GRANULAR_DEPENDENCIES
|
||||
G4baryons
|
||||
G4bosons
|
||||
@@ -141,6 +144,7 @@ GEANT4_DEFINE_MODULE(NAME G4phys_ctor_helastic
|
||||
G4partman
|
||||
G4phys_builders
|
||||
G4phys_ctor_factory
|
||||
G4phys_ctor_hinelastic
|
||||
G4procman
|
||||
G4run
|
||||
G4shortlived
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4ThermalNeutrons.cc 70995 2013-06-09 00:56:34Z adotti $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: G4ThermalNeutrons
|
||||
//
|
||||
// Author: 4 May 2017 V. Ivanchenko
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#include "G4ThermalNeutrons.hh"
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
#include "G4HadronicProcess.hh"
|
||||
|
||||
#include "G4ParticleHPThermalScattering.hh"
|
||||
#include "G4ParticleHPThermalScatteringData.hh"
|
||||
|
||||
#include "G4BuilderType.hh"
|
||||
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
G4ThermalNeutrons::G4ThermalNeutrons(G4int ver) :
|
||||
G4VHadronPhysics("G4ThermalNeutrons"), verbose(ver) {
|
||||
}
|
||||
|
||||
G4ThermalNeutrons::~G4ThermalNeutrons() {}
|
||||
|
||||
void G4ThermalNeutrons::ConstructProcess() {
|
||||
|
||||
if(verbose > 0) {
|
||||
G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
|
||||
}
|
||||
G4Neutron* part = G4Neutron::Neutron();
|
||||
G4HadronicProcess* hpel = FindElasticProcess(part);
|
||||
if(!hpel) {
|
||||
G4cout << "### " << GetPhysicsName()
|
||||
<< " WARNING: Fail to add thermal neutron scattering" << G4endl;
|
||||
return;
|
||||
}
|
||||
|
||||
G4int ni = (hpel->GetHadronicInteractionList()).size();
|
||||
if(ni < 1) {
|
||||
G4cout << "### " << GetPhysicsName()
|
||||
<< " WARNING: Fail to add thermal neutron scattering - Nint= "
|
||||
<< ni << G4endl;
|
||||
return;
|
||||
}
|
||||
(hpel->GetHadronicInteractionList())[ni-1]->SetMinEnergy(4*CLHEP::eV);
|
||||
|
||||
hpel->RegisterMe(new G4ParticleHPThermalScattering());
|
||||
hpel->AddDataSet(new G4ParticleHPThermalScatteringData());
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user