| 1 | //
|
|---|
| 2 | // ********************************************************************
|
|---|
| 3 | // * License and Disclaimer *
|
|---|
| 4 | // * *
|
|---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of *
|
|---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and *
|
|---|
| 7 | // * conditions of the Geant4 Software License, included in the file *
|
|---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These *
|
|---|
| 9 | // * include a list of copyright holders. *
|
|---|
| 10 | // * *
|
|---|
| 11 | // * Neither the authors of this software system, nor their employing *
|
|---|
| 12 | // * institutes,nor the agencies providing financial support for this *
|
|---|
| 13 | // * work make any representation or warranty, express or implied, *
|
|---|
| 14 | // * regarding this software system or assume any liability for its *
|
|---|
| 15 | // * use. Please see the license in the file LICENSE and URL above *
|
|---|
| 16 | // * for the full disclaimer and the limitation of liability. *
|
|---|
| 17 | // * *
|
|---|
| 18 | // * This code implementation is the result of the scientific and *
|
|---|
| 19 | // * technical work of the GEANT4 collaboration. *
|
|---|
| 20 | // * By using, copying, modifying or distributing the software (or *
|
|---|
| 21 | // * any work based on the software) you agree to acknowledge its *
|
|---|
| 22 | // * use in resulting scientific publications, and indicate your *
|
|---|
| 23 | // * acceptance of all terms of the Geant4 Software license. *
|
|---|
| 24 | // ********************************************************************
|
|---|
| 25 | //
|
|---|
| 26 | // $Id: G4IonQMDPhysics.cc,v 1.4 2010/09/30 21:23:05 gunter Exp $
|
|---|
| 27 | // GEANT4 tag $Name: phys-lists-V09-03-34 $
|
|---|
| 28 | //
|
|---|
| 29 | //---------------------------------------------------------------------------
|
|---|
| 30 | //
|
|---|
| 31 | // ClassName: G4IonQMDPhysics
|
|---|
| 32 | // Created from G4IonBinaryCascadePhysics
|
|---|
| 33 | //
|
|---|
| 34 | // Author: G.Folger
|
|---|
| 35 | //
|
|---|
| 36 | // Modified:
|
|---|
| 37 | //
|
|---|
| 38 | //----------------------------------------------------------------------------
|
|---|
| 39 | //
|
|---|
| 40 |
|
|---|
| 41 | #include "G4IonQMDPhysics.hh"
|
|---|
| 42 |
|
|---|
| 43 | #include "G4DeuteronInelasticProcess.hh"
|
|---|
| 44 | #include "G4TritonInelasticProcess.hh"
|
|---|
| 45 | #include "G4AlphaInelasticProcess.hh"
|
|---|
| 46 | #include "G4HadronInelasticProcess.hh"
|
|---|
| 47 |
|
|---|
| 48 | #include "G4BinaryLightIonReaction.hh"
|
|---|
| 49 | #include "G4QMDReaction.hh"
|
|---|
| 50 |
|
|---|
| 51 | #include "G4TripathiCrossSection.hh"
|
|---|
| 52 | #include "G4TripathiLightCrossSection.hh"
|
|---|
| 53 | #include "G4IonsShenCrossSection.hh"
|
|---|
| 54 |
|
|---|
| 55 | #include "G4ParticleDefinition.hh"
|
|---|
| 56 | #include "G4ParticleTable.hh"
|
|---|
| 57 | #include "G4ProcessManager.hh"
|
|---|
| 58 |
|
|---|
| 59 | // Nuclei
|
|---|
| 60 | #include "G4IonConstructor.hh"
|
|---|
| 61 |
|
|---|
| 62 | G4IonQMDPhysics::G4IonQMDPhysics(G4int ver)
|
|---|
| 63 | : G4VPhysicsConstructor("IonQMD"), verbose(ver), wasActivated(false)
|
|---|
| 64 | {
|
|---|
| 65 | eminBIC = 0.*MeV;
|
|---|
| 66 | eminQMD = 100.*MeV;
|
|---|
| 67 | emaxQMD = 10.*GeV;
|
|---|
| 68 | emaxLHEP = 1.*TeV;
|
|---|
| 69 | overlap = 10*MeV;
|
|---|
| 70 | if(verbose > 1) G4cout << "### G4IonQMDPhysics" << G4endl;
|
|---|
| 71 | }
|
|---|
| 72 |
|
|---|
| 73 | G4IonQMDPhysics::G4IonQMDPhysics(const G4String& name,
|
|---|
| 74 | G4int ver)
|
|---|
| 75 | : G4VPhysicsConstructor(name), verbose(ver), wasActivated(false)
|
|---|
| 76 | {
|
|---|
| 77 | eminBIC = 0.*MeV;
|
|---|
| 78 | eminQMD = 100.*MeV;
|
|---|
| 79 | emaxQMD = 10.*GeV;
|
|---|
| 80 | emaxLHEP = 1.*TeV;
|
|---|
| 81 | overlap = 10*MeV;
|
|---|
| 82 | if(verbose > 1) G4cout << "### G4IonQMDPhysics" << G4endl;
|
|---|
| 83 | }
|
|---|
| 84 |
|
|---|
| 85 | G4IonQMDPhysics::~G4IonQMDPhysics()
|
|---|
| 86 | {
|
|---|
| 87 | if(wasActivated) {
|
|---|
| 88 | delete fTripathi;
|
|---|
| 89 | delete fTripathiLight;
|
|---|
| 90 | delete fShen;
|
|---|
| 91 | delete fLEDModel;
|
|---|
| 92 | delete fLETModel;
|
|---|
| 93 | delete fLEAModel;
|
|---|
| 94 | G4int i;
|
|---|
| 95 | G4int n = p_list.size();
|
|---|
| 96 | for(i=0; i<n; i++) {delete p_list[i];}
|
|---|
| 97 | n = model_list.size();
|
|---|
| 98 | for(i=0; i<n; i++) {delete model_list[i];}
|
|---|
| 99 | }
|
|---|
| 100 | }
|
|---|
| 101 |
|
|---|
| 102 | void G4IonQMDPhysics::ConstructProcess()
|
|---|
| 103 | {
|
|---|
| 104 | if(wasActivated) return;
|
|---|
| 105 | wasActivated = true;
|
|---|
| 106 |
|
|---|
| 107 | G4BinaryLightIonReaction* fBC= new G4BinaryLightIonReaction();
|
|---|
| 108 | model_list.push_back(fBC);
|
|---|
| 109 | G4QMDReaction* fQMD= new G4QMDReaction();
|
|---|
| 110 | model_list.push_back(fQMD);
|
|---|
| 111 |
|
|---|
| 112 | fShen = new G4IonsShenCrossSection;
|
|---|
| 113 | fTripathi = new G4TripathiCrossSection;
|
|---|
| 114 | fTripathiLight = new G4TripathiLightCrossSection;
|
|---|
| 115 |
|
|---|
| 116 | fLEDModel = new G4LEDeuteronInelastic();
|
|---|
| 117 | fLETModel = new G4LETritonInelastic();
|
|---|
| 118 | fLEAModel = new G4LEAlphaInelastic();
|
|---|
| 119 |
|
|---|
| 120 | AddProcess("dInelastic", G4Deuteron::Deuteron(), fBC, fQMD, fLEDModel );
|
|---|
| 121 | AddProcess("tInelastic",G4Triton::Triton(), fBC, fQMD, fLETModel );
|
|---|
| 122 | AddProcess("He3Inelastic",G4He3::He3(), fBC, fQMD, 0 );
|
|---|
| 123 | AddProcess("alphaInelastic", G4Alpha::Alpha(), fBC, fQMD, fLEAModel );
|
|---|
| 124 | AddProcess("ionInelastic",G4GenericIon::GenericIon(), fBC, fQMD, 0);
|
|---|
| 125 |
|
|---|
| 126 | }
|
|---|
| 127 |
|
|---|
| 128 | void G4IonQMDPhysics::AddProcess(const G4String& name,
|
|---|
| 129 | G4ParticleDefinition* p,
|
|---|
| 130 | G4BinaryLightIonReaction* BIC,
|
|---|
| 131 | G4QMDReaction* QMD,
|
|---|
| 132 | G4HadronicInteraction* LHEP)
|
|---|
| 133 | {
|
|---|
| 134 | G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, p);
|
|---|
| 135 | p_list.push_back(hadi);
|
|---|
| 136 | G4ProcessManager* pManager = p->GetProcessManager();
|
|---|
| 137 | pManager->AddDiscreteProcess(hadi);
|
|---|
| 138 |
|
|---|
| 139 | hadi->AddDataSet(fShen);
|
|---|
| 140 | hadi->AddDataSet(fTripathi);
|
|---|
| 141 | hadi->AddDataSet(fTripathiLight);
|
|---|
| 142 |
|
|---|
| 143 | BIC->SetMinEnergy(eminBIC);
|
|---|
| 144 | BIC->SetMaxEnergy(emaxQMD); //reset when QMD is present
|
|---|
| 145 | hadi->RegisterMe(BIC);
|
|---|
| 146 |
|
|---|
| 147 | if(QMD) {
|
|---|
| 148 | QMD->SetMinEnergy(eminQMD);
|
|---|
| 149 | BIC->SetMaxEnergy(eminQMD+overlap);
|
|---|
| 150 | QMD->SetMaxEnergy(emaxQMD);
|
|---|
| 151 | hadi->RegisterMe(QMD);
|
|---|
| 152 | }
|
|---|
| 153 |
|
|---|
| 154 | if(LHEP) {
|
|---|
| 155 | LHEP->SetMinEnergy(emaxQMD - overlap);
|
|---|
| 156 | LHEP->SetMaxEnergy(emaxLHEP);
|
|---|
| 157 | hadi->RegisterMe(LHEP);
|
|---|
| 158 | }
|
|---|
| 159 | if(verbose > 1) {
|
|---|
| 160 | G4cout << "Register " << hadi->GetProcessName()
|
|---|
| 161 | << " for " << p->GetParticleName() << G4endl
|
|---|
| 162 | << " Binary Cascade for E(MeV)= " << eminBIC << " - "
|
|---|
| 163 | << (QMD==0 ? emaxQMD : (eminQMD-overlap)) ;
|
|---|
| 164 | if(QMD) {
|
|---|
| 165 | G4cout << G4endl <<" QMD for E(MeV)= " << eminQMD << " - " << emaxQMD;
|
|---|
| 166 | }
|
|---|
| 167 | if(LHEP) {
|
|---|
| 168 | G4cout << G4endl<< " LHEP for E(MeV)= " << emaxQMD-overlap << " - " << emaxLHEP;
|
|---|
| 169 | }
|
|---|
| 170 | G4cout << G4endl;
|
|---|
| 171 | }
|
|---|
| 172 | }
|
|---|
| 173 |
|
|---|
| 174 | void G4IonQMDPhysics::ConstructParticle()
|
|---|
| 175 | {
|
|---|
| 176 | // Construct light ions
|
|---|
| 177 | G4IonConstructor pConstructor;
|
|---|
| 178 | pConstructor.ConstructParticle();
|
|---|
| 179 | }
|
|---|