| 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: G4HadronHElasticPhysics.cc,v 1.4 2007/11/15 18:08:11 vnivanch Exp $
|
|---|
| 27 | // GEANT4 tag $Name: $
|
|---|
| 28 | //
|
|---|
| 29 | //---------------------------------------------------------------------------
|
|---|
| 30 | //
|
|---|
| 31 | // ClassName: G4HadronHElasticPhysics
|
|---|
| 32 | //
|
|---|
| 33 | // Author: 23 November 2006 V. Ivanchenko
|
|---|
| 34 | //
|
|---|
| 35 | // Modified:
|
|---|
| 36 | // 21.03.07 (V.Ivanchenko) Use G4BGGNucleonElasticXS and G4BGGPionElasticXS;
|
|---|
| 37 | // Reduce thresholds for HE and Q-models to zero
|
|---|
| 38 | //
|
|---|
| 39 | //----------------------------------------------------------------------------
|
|---|
| 40 | //
|
|---|
| 41 |
|
|---|
| 42 | #include "G4HadronHElasticPhysics.hh"
|
|---|
| 43 |
|
|---|
| 44 | #include "G4HadronicProcess.hh"
|
|---|
| 45 | #include "G4HadronElasticProcess.hh"
|
|---|
| 46 | #include "G4HadronicInteraction.hh"
|
|---|
| 47 | #include "G4LElastic.hh"
|
|---|
| 48 |
|
|---|
| 49 | #include "G4ParticleDefinition.hh"
|
|---|
| 50 | #include "G4ProcessManager.hh"
|
|---|
| 51 |
|
|---|
| 52 | #include "G4MesonConstructor.hh"
|
|---|
| 53 | #include "G4BaryonConstructor.hh"
|
|---|
| 54 | #include "G4IonConstructor.hh"
|
|---|
| 55 | #include "G4Neutron.hh"
|
|---|
| 56 |
|
|---|
| 57 | #include "G4HadronProcessStore.hh"
|
|---|
| 58 | #include "G4VQCrossSection.hh"
|
|---|
| 59 | #include "G4UElasticCrossSection.hh"
|
|---|
| 60 | #include "G4BGGNucleonElasticXS.hh"
|
|---|
| 61 | #include "G4BGGPionElasticXS.hh"
|
|---|
| 62 |
|
|---|
| 63 | G4HadronHElasticPhysics::G4HadronHElasticPhysics(G4int ver, G4bool hp)
|
|---|
| 64 | : G4VPhysicsConstructor("HElastic"), mname("HElastic"), verbose(ver),
|
|---|
| 65 | hpFlag(hp), wasActivated(false)
|
|---|
| 66 | {
|
|---|
| 67 | if(verbose > 1) G4cout << "### HadronHElasticPhysics" << G4endl;
|
|---|
| 68 | model = 0;
|
|---|
| 69 | neutronModel = 0;
|
|---|
| 70 | neutronHPModel = 0;
|
|---|
| 71 | }
|
|---|
| 72 |
|
|---|
| 73 | G4HadronHElasticPhysics::~G4HadronHElasticPhysics()
|
|---|
| 74 | {
|
|---|
| 75 | delete model;
|
|---|
| 76 | delete neutronModel;
|
|---|
| 77 | delete neutronHPModel;
|
|---|
| 78 | }
|
|---|
| 79 |
|
|---|
| 80 | void G4HadronHElasticPhysics::ConstructParticle()
|
|---|
| 81 | {
|
|---|
| 82 | // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
|
|---|
| 83 | G4MesonConstructor pMesonConstructor;
|
|---|
| 84 | pMesonConstructor.ConstructParticle();
|
|---|
| 85 |
|
|---|
| 86 | G4BaryonConstructor pBaryonConstructor;
|
|---|
| 87 | pBaryonConstructor.ConstructParticle();
|
|---|
| 88 |
|
|---|
| 89 | // Construct light ions
|
|---|
| 90 | G4IonConstructor pConstructor;
|
|---|
| 91 | pConstructor.ConstructParticle();
|
|---|
| 92 | }
|
|---|
| 93 |
|
|---|
| 94 | void G4HadronHElasticPhysics::ConstructProcess()
|
|---|
| 95 | {
|
|---|
| 96 | if(wasActivated) return;
|
|---|
| 97 | wasActivated = true;
|
|---|
| 98 |
|
|---|
| 99 | G4HadronProcessStore* store = G4HadronProcessStore::Instance();
|
|---|
| 100 |
|
|---|
| 101 | G4double elimit = 0.4*GeV;
|
|---|
| 102 | //G4double elimit = 0.0;
|
|---|
| 103 |
|
|---|
| 104 | if(verbose > 1)
|
|---|
| 105 | G4cout << "### HadronElasticPhysics Construct Processes with HE limit "
|
|---|
| 106 | << elimit << " MeV" << G4endl;
|
|---|
| 107 |
|
|---|
| 108 | G4HadronicProcess* hel = 0;
|
|---|
| 109 | G4VQCrossSection* man = 0;
|
|---|
| 110 |
|
|---|
| 111 | G4HadronElastic* he = new G4HadronElastic();
|
|---|
| 112 | he->SetHEModelLowLimit(elimit);
|
|---|
| 113 | he->SetQModelLowLimit(0.0);
|
|---|
| 114 | he->SetLowestEnergyLimit(0.0);
|
|---|
| 115 | model = he;
|
|---|
| 116 | man = he->GetCS();
|
|---|
| 117 |
|
|---|
| 118 | theParticleIterator->reset();
|
|---|
| 119 | while( (*theParticleIterator)() )
|
|---|
| 120 | {
|
|---|
| 121 | G4ParticleDefinition* particle = theParticleIterator->value();
|
|---|
| 122 | G4String pname = particle->GetParticleName();
|
|---|
| 123 | if(pname == "anti_lambda" ||
|
|---|
| 124 | pname == "anti_neutron" ||
|
|---|
| 125 | pname == "anti_omega-" ||
|
|---|
| 126 | pname == "anti_proton" ||
|
|---|
| 127 | pname == "anti_sigma-" ||
|
|---|
| 128 | pname == "anti_sigma+" ||
|
|---|
| 129 | pname == "anti_xi-" ||
|
|---|
| 130 | pname == "anti_xi0" ||
|
|---|
| 131 | pname == "kaon-" ||
|
|---|
| 132 | pname == "kaon+" ||
|
|---|
| 133 | pname == "kaon0S" ||
|
|---|
| 134 | pname == "kaon0L" ||
|
|---|
| 135 | pname == "lambda" ||
|
|---|
| 136 | pname == "omega-" ||
|
|---|
| 137 | pname == "pi-" ||
|
|---|
| 138 | pname == "pi+" ||
|
|---|
| 139 | pname == "proton" ||
|
|---|
| 140 | pname == "sigma-" ||
|
|---|
| 141 | pname == "sigma+" ||
|
|---|
| 142 | pname == "xi-" ||
|
|---|
| 143 | pname == "alpha" ||
|
|---|
| 144 | pname == "deuteron" ||
|
|---|
| 145 | pname == "triton") {
|
|---|
| 146 |
|
|---|
| 147 | G4ProcessManager* pmanager = particle->GetProcessManager();
|
|---|
| 148 | G4UHadronElasticProcess* h = new G4UHadronElasticProcess("hElastic");
|
|---|
| 149 | h->SetQElasticCrossSection(man);
|
|---|
| 150 | hel = h;
|
|---|
| 151 | if(pname == "proton") {
|
|---|
| 152 | hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
|
|---|
| 153 | } else if (pname == "pi+" || pname == "pi-") {
|
|---|
| 154 | hel->AddDataSet(new G4BGGPionElasticXS(particle));
|
|---|
| 155 | } else {
|
|---|
| 156 | hel->AddDataSet(new G4UElasticCrossSection(particle));
|
|---|
| 157 | }
|
|---|
| 158 | hel->RegisterMe(model);
|
|---|
| 159 | store->Register(hel,particle,model,mname);
|
|---|
| 160 | pmanager->AddDiscreteProcess(hel);
|
|---|
| 161 |
|
|---|
| 162 | // neutron case
|
|---|
| 163 | } else if(pname == "neutron") {
|
|---|
| 164 |
|
|---|
| 165 | G4ProcessManager* pmanager = particle->GetProcessManager();
|
|---|
| 166 | G4UHadronElasticProcess* h = new G4UHadronElasticProcess("hElastic");
|
|---|
| 167 | G4HadronElastic* nhe = new G4HadronElastic();
|
|---|
| 168 | nhe->SetHEModelLowLimit(elimit);
|
|---|
| 169 | neutronModel = nhe;
|
|---|
| 170 | h->SetQElasticCrossSection(nhe->GetCS());
|
|---|
| 171 | hel = h;
|
|---|
| 172 | hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
|
|---|
| 173 |
|
|---|
| 174 | if(hpFlag) {
|
|---|
| 175 | neutronModel->SetMinEnergy(19.5*MeV);
|
|---|
| 176 | neutronHPModel = new G4NeutronHPElastic();
|
|---|
| 177 | hel->RegisterMe(neutronHPModel);
|
|---|
| 178 | store->Register(hel,particle,neutronHPModel,"HP");
|
|---|
| 179 | hel->AddDataSet(new G4NeutronHPElasticData());
|
|---|
| 180 | }
|
|---|
| 181 |
|
|---|
| 182 | hel->RegisterMe(neutronModel);
|
|---|
| 183 | store->Register(hel,particle,neutronModel,mname);
|
|---|
| 184 | pmanager->AddDiscreteProcess(hel);
|
|---|
| 185 |
|
|---|
| 186 | if(verbose > 1)
|
|---|
| 187 | G4cout << "### HadronHElasticPhysics added for "
|
|---|
| 188 | << particle->GetParticleName() << G4endl;
|
|---|
| 189 | }
|
|---|
| 190 | }
|
|---|
| 191 | }
|
|---|
| 192 |
|
|---|
| 193 |
|
|---|