Import Geant4 10.6.0 source tree
This commit is contained in:
@@ -39,6 +39,7 @@ CPPFLAGS += -I$(G4BASE)/global/management/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/photon_evaporation/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/management/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/binary_cascade/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/im_r_matrix/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/cascade/cascade/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/body/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/cross_sections/include \
|
||||
|
||||
@@ -14,6 +14,17 @@ code and to keep track of all tags.
|
||||
* Please list in reverse chronological order (last date on top)
|
||||
---------------------------------------------------------------
|
||||
|
||||
06 November 2019 V.Ivanchenko (hadr-stopping-V10-05-02)
|
||||
--------------------------------------------------------------------
|
||||
- G4MuonMinusAtomicCapture - fixed trivial Coverity warning
|
||||
|
||||
01 Aug 2019 A. Ribon (hadr-stopping-V10-05-01)
|
||||
--------------------------------------------------------------------
|
||||
- G4HadronicAbsorptionFritofWithBinaryCascade : created a new class for
|
||||
handling anti-proton and anti-neutron annihilation at rest using
|
||||
Fritiof coupled with Binary cascade (instead of directly with
|
||||
Precompound, as in the class G4HadronicAbsorptionFritiof).
|
||||
|
||||
22 May 2019 A. Ribon (hadr-stopping-V10-05-00)
|
||||
--------------------------------------------------------------------
|
||||
- G4HadronicAbsorptionFritof : extended to neutral anti-hadrons:
|
||||
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: G4HadronicAbsorptionFritiofWithBinaryCascade
|
||||
//
|
||||
// Author: Alberto Ribon
|
||||
//
|
||||
// Date: July 2019
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Intermediate base class for hadronic absorption at rest using
|
||||
// Fritiof (FTF) coupled with Binary Cascade (BIC) for the nuclear
|
||||
// de-excitation.
|
||||
//
|
||||
// Note: it is applicable only for anti_proton and anti_neutron,
|
||||
// but not for light anti-ion because the propagate method
|
||||
// for nucleus-nucleus interaction:
|
||||
// G4VIntraNuclearTransportModel::Propagate()
|
||||
// is not implemented.
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4HadronicAbsorptionFritiofWithBinaryCascade_h
|
||||
#define G4HadronicAbsorptionFritiofWithBinaryCascade_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4HadronStoppingProcess.hh"
|
||||
|
||||
class G4ParticleDefinition;
|
||||
class G4LundStringFragmentation;
|
||||
class G4ExcitedStringDecay;
|
||||
|
||||
|
||||
class G4HadronicAbsorptionFritiofWithBinaryCascade : public G4HadronStoppingProcess {
|
||||
|
||||
public:
|
||||
G4HadronicAbsorptionFritiofWithBinaryCascade( G4ParticleDefinition* pdef = 0 );
|
||||
virtual ~G4HadronicAbsorptionFritiofWithBinaryCascade();
|
||||
|
||||
G4bool IsApplicable( const G4ParticleDefinition& );
|
||||
|
||||
void ProcessDescription( std::ostream& outFile ) const;
|
||||
|
||||
private:
|
||||
// hide assignment operator as private
|
||||
G4HadronicAbsorptionFritiofWithBinaryCascade& operator=( const G4HadronicAbsorptionFritiofWithBinaryCascade& );
|
||||
G4HadronicAbsorptionFritiofWithBinaryCascade( const G4HadronicAbsorptionFritiofWithBinaryCascade& );
|
||||
|
||||
G4ParticleDefinition* pdefApplicable;
|
||||
|
||||
G4LundStringFragmentation* theLund;
|
||||
G4ExcitedStringDecay* theStringDecay;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -42,6 +42,7 @@ include_directories(${CMAKE_SOURCE_DIR}/source/processes/hadronic/models/de_exci
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/processes/hadronic/models/de_excitation/photon_evaporation/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/processes/hadronic/models/de_excitation/util/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/processes/hadronic/models/binary_cascade/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/processes/hadronic/models/im_r_matrix/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/processes/hadronic/models/cascade/cascade/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/processes/hadronic/models/parton_string/diffraction/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/processes/hadronic/models/parton_string/hadronization/include)
|
||||
@@ -66,6 +67,7 @@ GEANT4_DEFINE_MODULE(NAME G4hadronic_stop
|
||||
G4ElementSelector.hh
|
||||
G4EmCaptureCascade.hh
|
||||
G4HadronicAbsorptionFritiof.hh
|
||||
G4HadronicAbsorptionFritiofWithBinaryCascade.hh
|
||||
G4HadronStoppingProcess.hh
|
||||
G4MuMinusCapturePrecompound.hh
|
||||
G4MuonMinusBoundDecay.hh
|
||||
@@ -81,6 +83,7 @@ GEANT4_DEFINE_MODULE(NAME G4hadronic_stop
|
||||
G4ElementSelector.cc
|
||||
G4EmCaptureCascade.cc
|
||||
G4HadronicAbsorptionFritiof.cc
|
||||
G4HadronicAbsorptionFritiofWithBinaryCascade.cc
|
||||
G4HadronStoppingProcess.cc
|
||||
G4MuMinusCapturePrecompound.cc
|
||||
G4MuonMinusBoundDecay.cc
|
||||
|
||||
+109
@@ -0,0 +1,109 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: G4HadronicAbsorptionFritiofWithBinaryCascade
|
||||
//
|
||||
// Author: Alberto Ribon
|
||||
//
|
||||
// Date: July 2019
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Intermediate class for hadronic absorption at rest using FTF/BIC.
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4HadronicAbsorptionFritiofWithBinaryCascade.hh"
|
||||
#include "G4PreCompoundModel.hh"
|
||||
#include "G4GeneratorPrecompoundInterface.hh"
|
||||
#include "G4FTFModel.hh"
|
||||
#include "G4LundStringFragmentation.hh"
|
||||
#include "G4ExcitedStringDecay.hh"
|
||||
#include "G4TheoFSGenerator.hh"
|
||||
#include "G4BinaryCascade.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTypes.hh"
|
||||
#include "G4HadronicInteractionRegistry.hh"
|
||||
#include "G4HadronicParameters.hh"
|
||||
|
||||
// Constructor
|
||||
G4HadronicAbsorptionFritiofWithBinaryCascade::
|
||||
G4HadronicAbsorptionFritiofWithBinaryCascade( G4ParticleDefinition* pdef )
|
||||
: G4HadronStoppingProcess( "hFritiofWithBinaryCascadeCaptureAtRest" ),
|
||||
pdefApplicable( pdef ) {
|
||||
|
||||
G4TheoFSGenerator* theModel = new G4TheoFSGenerator( "FTFB" );
|
||||
G4FTFModel* theStringModel = new G4FTFModel;
|
||||
theLund = new G4LundStringFragmentation;
|
||||
theStringDecay = new G4ExcitedStringDecay( theLund );
|
||||
theStringModel->SetFragmentationModel( theStringDecay );
|
||||
|
||||
G4BinaryCascade* theCascade = new G4BinaryCascade;
|
||||
|
||||
theModel->SetHighEnergyGenerator( theStringModel );
|
||||
theModel->SetTransport( theCascade );
|
||||
|
||||
G4double theMin = 0.0*GeV;
|
||||
G4double theMax = G4HadronicParameters::Instance()->GetMaxEnergy();
|
||||
theModel->SetMinEnergy( theMin );
|
||||
theModel->SetMaxEnergy( theMax );
|
||||
|
||||
RegisterMe( theModel );
|
||||
}
|
||||
|
||||
|
||||
G4HadronicAbsorptionFritiofWithBinaryCascade::~G4HadronicAbsorptionFritiofWithBinaryCascade() {
|
||||
delete theLund;
|
||||
delete theStringDecay;
|
||||
}
|
||||
|
||||
|
||||
// Applies to constructor-specified particle, or to all known cases
|
||||
G4bool G4HadronicAbsorptionFritiofWithBinaryCascade::
|
||||
IsApplicable( const G4ParticleDefinition& particle ) {
|
||||
// It is applicable only for anti_proton and anti_neutron, but not for
|
||||
// light anti-ion because the propagate method for nucleus-nucleus interaction:
|
||||
// G4VIntraNuclearTransportModel::Propagate()
|
||||
// is not implemented.
|
||||
return ( ( ( ! pdefApplicable ) &&
|
||||
( &particle == G4AntiProton::Definition() || &particle == G4AntiNeutron::Definition() ) )
|
||||
|| &particle == pdefApplicable );
|
||||
}
|
||||
|
||||
|
||||
// Documentation of purpose
|
||||
void G4HadronicAbsorptionFritiofWithBinaryCascade::
|
||||
ProcessDescription( std::ostream& os ) const {
|
||||
os << "Stopping and absorption of anti_proton and anti_neutron \n"
|
||||
<< "using Fritiof (FTF) string model coupled with Binary Cascade (BIC) model."
|
||||
<< std::endl;
|
||||
}
|
||||
@@ -62,14 +62,11 @@
|
||||
|
||||
G4MuonMinusAtomicCapture::G4MuonMinusAtomicCapture(const G4String& name)
|
||||
: G4VRestProcess(name, fHadronic),
|
||||
// : G4HadronicProcess(name, fHadronAtRest),// name, process type
|
||||
fElementSelector(new G4ElementSelector()),
|
||||
fEmCascade(new G4EmCaptureCascade()), // Owned by InteractionRegistry
|
||||
theTotalResult(new G4ParticleChange())
|
||||
theTotalResult(new G4ParticleChange()),
|
||||
result(nullptr)
|
||||
{
|
||||
// Modify G4VProcess flags to emulate G4VRest instead of G4VDiscrete
|
||||
// enableAtRestDoIt = true;
|
||||
// enablePostStepDoIt = false;
|
||||
SetProcessSubType(fMuAtomicCapture);
|
||||
G4HadronicProcessStore::Instance()->RegisterExtraProcess(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user