Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-14 08:28:11

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 /// \file IonHIJINGPhysics.cc
0027 /// \brief Implementation of the IonHIJINGPhysics class
0028 
0029 //---------------------------------------------------------------------------
0030 //
0031 // Class:    IonHIJINGPhysics
0032 //
0033 // Author:   2012 Andrea Dotti
0034 //
0035 //
0036 // Modified:
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 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
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 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0077 
0078 IonHIJINGPhysics::~IonHIJINGPhysics() {}
0079 
0080 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
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   // Binary Cascade
0097   theIonBC = new G4BinaryLightIonReaction(thePreCompound);
0098   theIonBC->SetMinEnergy(0.0);
0099   theIonBC->SetMaxEnergy(4 * GeV);  // 4
0100 
0101   // FTFP
0102   theBuilder = new G4FTFBuilder("FTFP", thePreCompound);
0103   theFTFP = theBuilder->GetModel();
0104   theFTFP->SetMinEnergy(2 * GeV);
0105   theFTFP->SetMaxEnergy(emaxFTF);
0106 
0107   // HIJING
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 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
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 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0139 #endif  // HIJING