File indexing completed on 2026-09-14 08:28:11
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040 #ifdef G4_USE_HIJING
0041 # include "IonHIJINGPhysics.hh"
0042
0043 # include "G4Alpha.hh"
0044 # include "G4BinaryLightIonReaction.hh"
0045 # include "G4BuilderType.hh"
0046 # include "G4ComponentGGNuclNuclXsc.hh"
0047 # include "G4CrossSectionInelastic.hh"
0048 # include "G4Deuteron.hh"
0049 # include "G4ExcitationHandler.hh"
0050 # include "G4FTFBuilder.hh"
0051 # include "G4GenericIon.hh"
0052 # include "G4HIJING_Model.hh"
0053 # include "G4HadronInelasticProcess.hh"
0054 # include "G4HadronicInteraction.hh"
0055 # include "G4HadronicParameters.hh"
0056 # include "G4He3.hh"
0057 # include "G4ParticleDefinition.hh"
0058 # include "G4PreCompoundModel.hh"
0059 # include "G4ProcessManager.hh"
0060 # include "G4SystemOfUnits.hh"
0061 # include "G4Triton.hh"
0062 using namespace std;
0063
0064
0065
0066 IonHIJINGPhysics::IonHIJINGPhysics(G4int ver)
0067 : G4VHadronPhysics("ionInelasticHIJING"), fVerbose(ver), fWasActivated(false)
0068 {
0069 fModel = 0;
0070 SetPhysicsType(bIons);
0071 if (fVerbose > 1) {
0072 G4cout << "### IonHIJINGPhysics" << G4endl;
0073 }
0074 }
0075
0076
0077
0078 IonHIJINGPhysics::~IonHIJINGPhysics() {}
0079
0080
0081 void IonHIJINGPhysics::ConstructProcess()
0082 {
0083 if (fWasActivated) {
0084 return;
0085 }
0086 fWasActivated = true;
0087
0088 G4double emin = 0. * MeV;
0089 G4double emaxFTF = 25. * GeV;
0090 G4double eminHIJ = 12. * GeV;
0091 G4double emaxHIJ = G4HadronicParameters::Instance()->GetMaxEnergy();
0092
0093 G4ExcitationHandler* handler = new G4ExcitationHandler();
0094 G4PreCompoundModel* thePreCompound = new G4PreCompoundModel(handler);
0095
0096
0097 theIonBC = new G4BinaryLightIonReaction(thePreCompound);
0098 theIonBC->SetMinEnergy(0.0);
0099 theIonBC->SetMaxEnergy(4 * GeV);
0100
0101
0102 theBuilder = new G4FTFBuilder("FTFP", thePreCompound);
0103 theFTFP = theBuilder->GetModel();
0104 theFTFP->SetMinEnergy(2 * GeV);
0105 theFTFP->SetMaxEnergy(emaxFTF);
0106
0107
0108 fModel = new G4HIJING_Model();
0109 fModel->SetMinEnergy(eminHIJ);
0110 fModel->SetMaxEnergy(emaxHIJ);
0111
0112 theNuclNuclData = new G4CrossSectionInelastic(new G4ComponentGGNuclNuclXsc());
0113
0114 AddProcess("dInelastic", G4Deuteron::Deuteron(), false);
0115 AddProcess("tInelastic", G4Triton::Triton(), false);
0116 AddProcess("He3Inelastic", G4He3::He3(), true);
0117 AddProcess("alphaInelastic", G4Alpha::Alpha(), true);
0118 AddProcess("ionInelastic", G4GenericIon::GenericIon(), true);
0119
0120 if (fVerbose > 1) {
0121 G4cout << "IonHIJINGPhysics::ConstructProcess done! " << G4endl;
0122 }
0123 }
0124
0125
0126
0127 void IonHIJINGPhysics::AddProcess(const G4String& name, G4ParticleDefinition* part, G4bool isIon)
0128 {
0129 G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, part);
0130 G4ProcessManager* pManager = part->GetProcessManager();
0131 pManager->AddDiscreteProcess(hadi);
0132 hadi->AddDataSet(theNuclNuclData);
0133 hadi->RegisterMe(theIonBC);
0134 hadi->RegisterMe(theFTFP);
0135 hadi->RegisterMe(fModel);
0136 }
0137
0138
0139 #endif