Import Geant4 11.2.0.beta source tree
This commit is contained in:
@@ -1,74 +0,0 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# GNUmakefile for physics_lists/constructors/factory library.
|
||||
# Gunter Folger 10-Jan-2012.
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
name := G4phys_ctor_stopping
|
||||
|
||||
ifndef G4INSTALL
|
||||
G4INSTALL = ../../../..
|
||||
endif
|
||||
|
||||
include $(G4INSTALL)/config/architecture.gmk
|
||||
|
||||
|
||||
CPPFLAGS += -I$(G4BASE)/global/management/include \
|
||||
-I$(G4BASE)/global/HEPRandom/include \
|
||||
-I$(G4BASE)/global/HEPNumerics/include \
|
||||
-I$(G4BASE)/global/HEPGeometry/include \
|
||||
-I$(G4BASE)/geometry/volumes/include \
|
||||
-I$(G4BASE)/geometry/management/include \
|
||||
-I$(G4BASE)/geometry/magneticfield/include \
|
||||
-I$(G4BASE)/geometry/navigation/include \
|
||||
-I$(G4BASE)/intercoms/include \
|
||||
-I$(G4BASE)/track/include \
|
||||
-I$(G4BASE)/particles/shortlived/include \
|
||||
-I$(G4BASE)/particles/management/include \
|
||||
-I$(G4BASE)/particles/leptons/include \
|
||||
-I$(G4BASE)/particles/bosons/include \
|
||||
-I$(G4BASE)/particles/hadrons/mesons/include \
|
||||
-I$(G4BASE)/particles/hadrons/barions/include \
|
||||
-I$(G4BASE)/particles/hadrons/ions/include \
|
||||
-I$(G4BASE)/run/include \
|
||||
-I$(G4BASE)/physics_lists/builders/include \
|
||||
-I$(G4BASE)/physics_lists/util/include \
|
||||
-I$(G4BASE)/physics_lists/constructors/factory/include \
|
||||
-I$(G4BASE)/processes/management/include \
|
||||
-I$(G4BASE)/processes/transportation/include \
|
||||
-I$(G4BASE)/processes/decay/include \
|
||||
-I$(G4BASE)/processes/cuts/include \
|
||||
-I$(G4BASE)/processes/hadronic/cross_sections/include \
|
||||
-I$(G4BASE)/processes/hadronic/stopping/include \
|
||||
-I$(G4BASE)/processes/hadronic/management/include \
|
||||
-I$(G4BASE)/processes/hadronic/processes/include \
|
||||
-I$(G4BASE)/processes/hadronic/util/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/binary_cascade/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/cascade/cascade/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/qmd/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/coherent_elastic/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/evaporation/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/fermi_breakup/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/handler/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/management/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/multifragmentation/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/photon_evaporation/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/util/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/im_r_matrix/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/inclxx/utils/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/inclxx/incl_physics/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/inclxx/interface/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/lend/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/lepto_nuclear/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/particle_hp/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/parton_string/diffraction/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/parton_string/hadronization/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/parton_string/management/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/parton_string/qgsm/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/photolepton_hadron/muon_nuclear/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/pre_equilibrium/exciton_model/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/radioactive_decay/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/theo_high_energy/include \
|
||||
-I$(G4BASE)/processes/hadronic/util/include \
|
||||
-I$(G4BASE)/materials/include
|
||||
|
||||
include $(G4INSTALL)/config/common.gmk
|
||||
@@ -5,6 +5,11 @@ which **must** added in reverse chronological order (newest at the top). It must
|
||||
be used as a substitute for writing good git commit messages!
|
||||
|
||||
|
||||
## 2023-05-15 Alberto Ribon (phys-ctor-stopping-V11-01-00)
|
||||
- G4StoppingPhysicsWithINCLXX : new class, similar to G4StoppingPhysics,
|
||||
with the only difference that the INCLXX model (instead of FTFP) is
|
||||
utilized for the antiproton annihilation at rest.
|
||||
|
||||
## 2021-12-10 Ben Morgan (phys-ctor-stopping-V11-00-00)
|
||||
- Change to new Markdown History format
|
||||
|
||||
|
||||
@@ -17,3 +17,7 @@
|
||||
The same as G4StoppingPhysics, except that for anti-proton and anti-neutron
|
||||
annihilation at rest it uses Fritiof coupled with Binary Cascade.
|
||||
|
||||
G4StoppingPhysicsWithINCLXX
|
||||
---------------------------
|
||||
The same as G4StoppingPhysics, except that for anti-proton annihilation
|
||||
at rest it uses the INCLXX model.
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4StoppingPhysicsWithINCLXX
|
||||
//
|
||||
// Author: Alberto Ribon
|
||||
//
|
||||
// Date: May 2023
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// This class provides the nuclear capture at rest of negatively charged
|
||||
// particles, using: Bertini for pi-, K-, Sigma-, Xi-, and Omega-;
|
||||
// INCLXX for anti-proton;
|
||||
// Fritiof/Precompound for anti-neutron, anti-lambda,
|
||||
// anti-sigma0, anti-sigma+, anti-xi0 and anti-nuclei;
|
||||
// another model for mu-.
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#ifndef G4StoppingPhysicsWithINCLXX_h
|
||||
#define G4StoppingPhysicsWithINCLXX_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
|
||||
class G4StoppingPhysicsWithINCLXX : public G4VPhysicsConstructor {
|
||||
public:
|
||||
G4StoppingPhysicsWithINCLXX( G4int ver = 1 );
|
||||
G4StoppingPhysicsWithINCLXX( const G4String& name, G4int ver = 1,
|
||||
G4bool UseMuonMinusCapture = true );
|
||||
~G4StoppingPhysicsWithINCLXX() override;
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each particle type will be instantiated
|
||||
virtual void ConstructParticle() override;
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each physics process will be instantiated and
|
||||
// registered to the process manager of each particle type
|
||||
virtual void ConstructProcess() override;
|
||||
|
||||
void SetMuonMinusCapture(G4bool val) { useMuonMinusCapture = val; };
|
||||
|
||||
private:
|
||||
G4int verbose;
|
||||
G4bool useMuonMinusCapture;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -5,9 +5,11 @@ geant4_add_module(G4phys_ctor_stopping
|
||||
PUBLIC_HEADERS
|
||||
G4StoppingPhysics.hh
|
||||
G4StoppingPhysicsFritiofWithBinaryCascade.hh
|
||||
G4StoppingPhysicsWithINCLXX.hh
|
||||
SOURCES
|
||||
G4StoppingPhysics.cc
|
||||
G4StoppingPhysicsFritiofWithBinaryCascade.cc)
|
||||
G4StoppingPhysicsFritiofWithBinaryCascade.cc
|
||||
G4StoppingPhysicsWithINCLXX.cc)
|
||||
|
||||
geant4_module_link_libraries(G4phys_ctor_stopping
|
||||
PUBLIC
|
||||
|
||||
@@ -0,0 +1,177 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4StoppingPhysicsWithINCLXX
|
||||
//
|
||||
// Author: Alberto Ribon
|
||||
//
|
||||
// Date: May 2023
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4StoppingPhysicsWithINCLXX.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "G4HadronicAbsorptionBertini.hh"
|
||||
#include "G4HadronicAbsorptionFritiof.hh"
|
||||
#include "G4HadronicAbsorptionINCLXX.hh"
|
||||
#include "G4MuonMinusCapture.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
#include "G4LeptonConstructor.hh"
|
||||
#include "G4MesonConstructor.hh"
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4MuonMinus.hh"
|
||||
#include "G4PionMinus.hh"
|
||||
#include "G4BuilderType.hh"
|
||||
|
||||
// factory
|
||||
#include "G4PhysicsConstructorFactory.hh"
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4StoppingPhysicsWithINCLXX);
|
||||
|
||||
|
||||
G4StoppingPhysicsWithINCLXX::G4StoppingPhysicsWithINCLXX( G4int ver ) :
|
||||
G4StoppingPhysicsWithINCLXX( "stopping", ver ) {}
|
||||
|
||||
|
||||
G4StoppingPhysicsWithINCLXX::G4StoppingPhysicsWithINCLXX( const G4String& name, G4int ver,
|
||||
G4bool useMuCapture ) :
|
||||
G4VPhysicsConstructor( name ),
|
||||
verbose( ver ),
|
||||
useMuonMinusCapture( useMuCapture )
|
||||
{
|
||||
SetPhysicsType( bStopping );
|
||||
if ( verbose > 1 ) G4cout << "### G4StoppingPhysicsWithINCLXX" << G4endl;
|
||||
}
|
||||
|
||||
|
||||
G4StoppingPhysicsWithINCLXX::~G4StoppingPhysicsWithINCLXX() {}
|
||||
|
||||
|
||||
void G4StoppingPhysicsWithINCLXX::ConstructParticle() {
|
||||
// G4cout << "G4StoppingPhysicsWithINCLXX::ConstructParticle" << G4endl;
|
||||
G4LeptonConstructor pLeptonConstructor;
|
||||
pLeptonConstructor.ConstructParticle();
|
||||
|
||||
G4MesonConstructor pMesonConstructor;
|
||||
pMesonConstructor.ConstructParticle();
|
||||
|
||||
G4BaryonConstructor pBaryonConstructor;
|
||||
pBaryonConstructor.ConstructParticle();
|
||||
}
|
||||
|
||||
|
||||
void G4StoppingPhysicsWithINCLXX::ConstructProcess() {
|
||||
if ( verbose > 1 ) G4cout << "### G4StoppingPhysicsWithINCLXX::ConstructProcess " << G4endl;
|
||||
|
||||
G4MuonMinusCapture* muProcess = nullptr;
|
||||
if ( useMuonMinusCapture ) muProcess = new G4MuonMinusCapture;
|
||||
|
||||
G4HadronicAbsorptionBertini* hBertiniProcess = new G4HadronicAbsorptionBertini;
|
||||
G4HadronicAbsorptionFritiof* hFritiofProcess = new G4HadronicAbsorptionFritiof;
|
||||
G4HadronicAbsorptionINCLXX* hINCLXXProcess = new G4HadronicAbsorptionINCLXX;
|
||||
|
||||
const G4double mThreshold = 130.0*MeV;
|
||||
|
||||
// Add Stopping Process
|
||||
G4ParticleDefinition* particle = nullptr;
|
||||
G4ProcessManager* pmanager = nullptr;
|
||||
|
||||
auto myParticleIterator = GetParticleIterator();
|
||||
myParticleIterator->reset();
|
||||
|
||||
while ( (*myParticleIterator)() ) {
|
||||
|
||||
particle = myParticleIterator->value();
|
||||
pmanager = particle->GetProcessManager();
|
||||
|
||||
if ( useMuonMinusCapture && particle == G4MuonMinus::MuonMinus() ) {
|
||||
pmanager->AddRestProcess( muProcess );
|
||||
if ( verbose > 1 ) {
|
||||
G4cout << "### G4StoppingPhysicsWithINCLXX added G4MuonMinusCapture for "
|
||||
<< particle->GetParticleName() << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
if ( particle->GetPDGCharge() <= 0.0 &&
|
||||
particle->GetPDGMass() > mThreshold &&
|
||||
! particle->IsShortLived() ) {
|
||||
|
||||
// Use Fritiof/Precompound for: anti-neutron, anti-lambda,
|
||||
// anti-sigma0, anti-sigma+, anti-xi0 and anti-nuclei.
|
||||
if ( particle == G4AntiNeutron::Definition() ||
|
||||
particle == G4AntiLambda::Definition() ||
|
||||
particle == G4AntiSigmaZero::Definition() ||
|
||||
particle == G4AntiSigmaPlus::Definition() ||
|
||||
particle == G4AntiXiZero::Definition() ||
|
||||
particle->GetBaryonNumber() < -1 ) { // Anti-nuclei
|
||||
if ( hFritiofProcess->IsApplicable( *particle ) ) {
|
||||
pmanager->AddRestProcess( hFritiofProcess );
|
||||
if ( verbose > 1 ) {
|
||||
G4cout << "### G4HadronicAbsorptionFritiof added for "
|
||||
<< particle->GetParticleName() << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
// Use INCLXX/Precompound for antiproton
|
||||
} else if ( particle == G4AntiProton::Definition() ) {
|
||||
if ( hINCLXXProcess->IsApplicable( *particle ) ) {
|
||||
pmanager->AddRestProcess( hINCLXXProcess );
|
||||
if ( verbose > 1 ) {
|
||||
G4cout << "### G4HadronicAbsorptionINCLXX added for "
|
||||
<< particle->GetParticleName() << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
// Use Bertini for pi-, K-, Sigma-, Xi-, and Omega-
|
||||
} else if ( particle == G4PionMinus::Definition() ||
|
||||
particle == G4KaonMinus::Definition() ||
|
||||
particle == G4SigmaMinus::Definition() ||
|
||||
particle == G4XiMinus::Definition() ||
|
||||
particle == G4OmegaMinus::Definition() ) {
|
||||
if ( hBertiniProcess->IsApplicable( *particle ) ) {
|
||||
pmanager->AddRestProcess( hBertiniProcess );
|
||||
if ( verbose > 1 ) {
|
||||
G4cout << "### G4HadronicAbsorptionBertini added for "
|
||||
<< particle->GetParticleName() << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
if ( verbose > 1 ) {
|
||||
G4cout << "WARNING in G4StoppingPhysicsWithINCLXX::ConstructProcess: \
|
||||
not able to deal with nuclear stopping of "
|
||||
<< particle->GetParticleName() << G4endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // end of while loop
|
||||
}
|
||||
Reference in New Issue
Block a user