Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -4,6 +4,8 @@ See `CONTRIBUTING.rst` for details of **required** info/format for each entry,
|
||||
which **must** added in reverse chronological order (newest at the top). It must **not**
|
||||
be used as a substitute for writing good git commit messages!
|
||||
|
||||
## 2023-11-09 Yoshihide Sato (phys-ctor-ions-V11-11-01)
|
||||
- Add a physics constructor, G4LightIonQMDPhsysics for light ion qmd.
|
||||
|
||||
## 2021-12-10 Ben Morgan (phys-ctor-ions-V11-00-00)
|
||||
- Change to new Markdown History format
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4IonBinaryCascadeBuilder
|
||||
// Created from G4IonBinaryCascadePhysics
|
||||
//
|
||||
// Author: G.Folger
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef G4LightIonQMDPhysics_h
|
||||
#define G4LightIonQMDPhysics_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class G4HadronicInteraction;
|
||||
class G4BinaryLightIonReaction;
|
||||
class G4QMDReaction;
|
||||
class G4LightIonQMDReaction;
|
||||
class G4VCrossSectionDataSet;
|
||||
|
||||
class G4LightIonQMDPhysics : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
G4LightIonQMDPhysics(G4int verb = 0);
|
||||
G4LightIonQMDPhysics(const G4String& name, G4int ver = 0);
|
||||
~G4LightIonQMDPhysics() override;
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each particle type will be instantiated
|
||||
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
|
||||
void ConstructProcess() override;
|
||||
|
||||
private:
|
||||
|
||||
void AddProcess(const G4String&,
|
||||
G4ParticleDefinition*,
|
||||
G4BinaryLightIonReaction*,
|
||||
G4QMDReaction*,
|
||||
G4LightIonQMDReaction*,
|
||||
G4HadronicInteraction*,
|
||||
G4VCrossSectionDataSet*);
|
||||
|
||||
G4double eminQMD;
|
||||
G4double emaxQMD;
|
||||
G4double eminLIQMD;
|
||||
G4double emaxLIQMD;
|
||||
G4double overlap;
|
||||
|
||||
G4int verbose;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -9,13 +9,15 @@ geant4_add_module(G4phys_ctor_ions
|
||||
G4IonPhysicsPHP.hh
|
||||
G4IonPhysicsXS.hh
|
||||
G4IonQMDPhysics.hh
|
||||
G4LightIonQMDPhysics.hh
|
||||
SOURCES
|
||||
G4IonBinaryCascadePhysics.cc
|
||||
G4IonINCLXXPhysics.cc
|
||||
G4IonPhysics.cc
|
||||
G4IonPhysicsPHP.cc
|
||||
G4IonPhysicsXS.cc
|
||||
G4IonQMDPhysics.cc)
|
||||
G4IonQMDPhysics.cc
|
||||
G4LightIonQMDPhysics.cc)
|
||||
|
||||
geant4_module_link_libraries(G4phys_ctor_ions
|
||||
PUBLIC
|
||||
|
||||
@@ -0,0 +1,181 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4LightIonQMDPhysics
|
||||
// Created from G4IonBinaryCascadePhysics
|
||||
//
|
||||
// Author: G.Folger
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#include "G4LightIonQMDPhysics.hh"
|
||||
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
#include "G4Deuteron.hh"
|
||||
#include "G4Triton.hh"
|
||||
#include "G4He3.hh"
|
||||
#include "G4Alpha.hh"
|
||||
#include "G4GenericIon.hh"
|
||||
#include "G4IonConstructor.hh"
|
||||
|
||||
#include "G4HadronInelasticProcess.hh"
|
||||
#include "G4BinaryLightIonReaction.hh"
|
||||
#include "G4LightIonQMDReaction.hh"
|
||||
#include "G4QMDReaction.hh"
|
||||
|
||||
#include "G4PreCompoundModel.hh"
|
||||
#include "G4ExcitationHandler.hh"
|
||||
#include "G4FTFBuilder.hh"
|
||||
#include "G4HadronicInteraction.hh"
|
||||
#include "G4BuilderType.hh"
|
||||
|
||||
#include "G4ComponentGGNuclNuclXsc.hh"
|
||||
#include "G4CrossSectionInelastic.hh"
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
// Nuclei
|
||||
#include "G4IonConstructor.hh"
|
||||
#include "G4BuilderType.hh"
|
||||
#include "G4HadronicInteractionRegistry.hh"
|
||||
#include "G4HadronicParameters.hh"
|
||||
#include "G4DeexPrecoParameters.hh"
|
||||
#include "G4NuclearLevelData.hh"
|
||||
|
||||
#include "G4HadronicParameters.hh"
|
||||
|
||||
// factory
|
||||
#include "G4PhysicsConstructorFactory.hh"
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4LightIonQMDPhysics);
|
||||
|
||||
G4LightIonQMDPhysics::G4LightIonQMDPhysics(G4int ver)
|
||||
: G4LightIonQMDPhysics("LightIonQMD", ver)
|
||||
{}
|
||||
|
||||
G4LightIonQMDPhysics::G4LightIonQMDPhysics(const G4String& nname, G4int ver)
|
||||
: G4VPhysicsConstructor(nname), verbose(ver)
|
||||
{
|
||||
eminLIQMD = 30.*MeV;
|
||||
emaxLIQMD = 500.*MeV;
|
||||
eminQMD = 500.*MeV;
|
||||
emaxQMD = 10.*GeV;
|
||||
overlap = 10*MeV;
|
||||
SetPhysicsType(bIons);
|
||||
G4DeexPrecoParameters* param = G4NuclearLevelData::GetInstance()->GetParameters();
|
||||
param->SetDeexChannelsType(fCombined);
|
||||
if(verbose > 1) { G4cout << "### IonPhysics: " << nname << G4endl; }
|
||||
}
|
||||
|
||||
G4LightIonQMDPhysics::~G4LightIonQMDPhysics()
|
||||
{}
|
||||
|
||||
void G4LightIonQMDPhysics::ConstructProcess()
|
||||
{
|
||||
G4HadronicInteraction* p =
|
||||
G4HadronicInteractionRegistry::Instance()->FindModel("PRECO");
|
||||
G4PreCompoundModel* thePreCompound = static_cast<G4PreCompoundModel*>(p);
|
||||
if(!thePreCompound) { thePreCompound = new G4PreCompoundModel; }
|
||||
|
||||
G4BinaryLightIonReaction* theIonBC = new G4BinaryLightIonReaction(thePreCompound);
|
||||
theIonBC->SetMaxEnergy(eminLIQMD + overlap);
|
||||
|
||||
G4LightIonQMDReaction* theLIQMD = new G4LightIonQMDReaction();
|
||||
theLIQMD->SetMinEnergy(eminLIQMD);
|
||||
theLIQMD->SetMaxEnergy(emaxLIQMD + overlap);
|
||||
|
||||
G4double emax = G4HadronicParameters::Instance()->GetMaxEnergy();
|
||||
emaxQMD = G4HadronicParameters::Instance()->GetMaxEnergyTransitionFTF_Cascade();
|
||||
G4HadronicInteraction* theFTFP = nullptr;
|
||||
if(emax > emaxQMD) {
|
||||
G4FTFBuilder theFTFPBuilder("FTFP",thePreCompound);
|
||||
theFTFP = theFTFPBuilder.GetModel();
|
||||
theFTFP->SetMinEnergy(emaxQMD - overlap);
|
||||
theFTFP->SetMaxEnergy(emax);
|
||||
}
|
||||
|
||||
G4QMDReaction* theQMD = new G4QMDReaction();
|
||||
theQMD->SetMinEnergy(eminQMD);
|
||||
theQMD->SetMaxEnergy(emaxQMD);
|
||||
|
||||
G4VCrossSectionDataSet* theNuclNuclData =
|
||||
new G4CrossSectionInelastic( new G4ComponentGGNuclNuclXsc() );
|
||||
|
||||
AddProcess("protonInelastic", G4Proton::Proton(), theIonBC, theQMD, theLIQMD, theFTFP, theNuclNuclData);
|
||||
AddProcess("dInelastic", G4Deuteron::Deuteron(), theIonBC, theQMD, theLIQMD, theFTFP, theNuclNuclData);
|
||||
AddProcess("tInelastic", G4Triton::Triton(), theIonBC, theQMD, theLIQMD, theFTFP, theNuclNuclData);
|
||||
AddProcess("He3Inelastic", G4He3::He3(), theIonBC, theQMD, theLIQMD, theFTFP, theNuclNuclData);
|
||||
AddProcess("alphaInelastic", G4Alpha::Alpha(), theIonBC, theQMD, theLIQMD, theFTFP, theNuclNuclData);
|
||||
AddProcess("ionInelastic", G4GenericIon::GenericIon(), theIonBC, theQMD, theLIQMD, theFTFP, theNuclNuclData);
|
||||
}
|
||||
|
||||
void G4LightIonQMDPhysics::AddProcess(const G4String& name,
|
||||
G4ParticleDefinition* p,
|
||||
G4BinaryLightIonReaction* BIC,
|
||||
G4QMDReaction* QMD,
|
||||
G4LightIonQMDReaction* LIQMD,
|
||||
G4HadronicInteraction* FTFP,
|
||||
G4VCrossSectionDataSet* theNuclNuclData)
|
||||
{
|
||||
G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, p);
|
||||
G4ProcessManager* pManager = p->GetProcessManager();
|
||||
pManager->AddDiscreteProcess(hadi);
|
||||
|
||||
hadi->AddDataSet(theNuclNuclData);
|
||||
|
||||
hadi->RegisterMe(BIC);
|
||||
hadi->RegisterMe(LIQMD);
|
||||
hadi->RegisterMe(QMD);
|
||||
if(FTFP) { hadi->RegisterMe(FTFP); }
|
||||
|
||||
if(verbose > 1) {
|
||||
G4cout << "Register " << hadi->GetProcessName()
|
||||
<< " for " << p->GetParticleName() << G4endl
|
||||
<< " Binary Cascade for E(MeV)= 0 - "
|
||||
<< eminLIQMD+overlap;
|
||||
G4cout << " LIQMD for E(MeV)= " << eminLIQMD << " - " << emaxLIQMD+overlap;
|
||||
G4cout << " QMD for E(MeV)= " << eminQMD << " - " << emaxQMD;
|
||||
if(FTFP) {
|
||||
G4cout << " FTFP for E(MeV)= " << emaxQMD-overlap << " - " << FTFP->GetMaxEnergy();
|
||||
}
|
||||
G4cout << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
void G4LightIonQMDPhysics::ConstructParticle()
|
||||
{
|
||||
// Construct light ions
|
||||
G4IonConstructor pConstructor;
|
||||
pConstructor.ConstructParticle();
|
||||
}
|
||||
Reference in New Issue
Block a user