| 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: G4HadronQElasticPhysics.cc,v 1.9 2010/06/03 14:28:32 vnivanch Exp $
|
|---|
| 27 | // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
|
|---|
| 28 | //
|
|---|
| 29 | //---------------------------------------------------------------------------
|
|---|
| 30 | //
|
|---|
| 31 | // ClassName: G4HadronQElasticPhysics
|
|---|
| 32 | //
|
|---|
| 33 | // Author: 17 Nov 2006 V.Ivanchenko
|
|---|
| 34 | //
|
|---|
| 35 | // Modified:
|
|---|
| 36 | // 03.06.2010 V.Ivanchenko cleanup constructors and ConstructProcess method
|
|---|
| 37 | //
|
|---|
| 38 | //----------------------------------------------------------------------------
|
|---|
| 39 | //
|
|---|
| 40 | // CHIPS x-sections and generator (G4QElastic) for n and p
|
|---|
| 41 | // LHEP x-section and generator for the rest
|
|---|
| 42 |
|
|---|
| 43 | #include "G4HadronQElasticPhysics.hh"
|
|---|
| 44 |
|
|---|
| 45 | #include "G4UHadronElasticProcess.hh"
|
|---|
| 46 | #include "G4HadronicInteraction.hh"
|
|---|
| 47 | #include "G4HadronElastic.hh"
|
|---|
| 48 | #include "G4QElastic.hh"
|
|---|
| 49 |
|
|---|
| 50 | #include "G4VQCrossSection.hh"
|
|---|
| 51 |
|
|---|
| 52 | #include "G4ParticleDefinition.hh"
|
|---|
| 53 | #include "G4ProcessManager.hh"
|
|---|
| 54 |
|
|---|
| 55 | #include "G4MesonConstructor.hh"
|
|---|
| 56 | #include "G4BaryonConstructor.hh"
|
|---|
| 57 | #include "G4IonConstructor.hh"
|
|---|
| 58 |
|
|---|
| 59 | G4HadronQElasticPhysics::G4HadronQElasticPhysics(G4int ver)
|
|---|
| 60 | : G4VPhysicsConstructor("hElasticCHIPS_LHEP"), verbose(ver),
|
|---|
| 61 | wasActivated(false)
|
|---|
| 62 | {
|
|---|
| 63 | if(verbose > 1) {
|
|---|
| 64 | G4cout << "### G4HadronQElasticPhysics: " << GetPhysicsName()
|
|---|
| 65 | << G4endl;
|
|---|
| 66 | }
|
|---|
| 67 | model = 0;
|
|---|
| 68 | }
|
|---|
| 69 |
|
|---|
| 70 | G4HadronQElasticPhysics::G4HadronQElasticPhysics(const G4String&, G4int ver)
|
|---|
| 71 | : G4VPhysicsConstructor("hElasticCHIPS_UELAST"), verbose(ver),
|
|---|
| 72 | wasActivated(false)
|
|---|
| 73 | {
|
|---|
| 74 | if(verbose > 1) {
|
|---|
| 75 | G4cout << "### G4HadronQElasticPhysics: " << GetPhysicsName()
|
|---|
| 76 | << G4endl;
|
|---|
| 77 | }
|
|---|
| 78 | model = 0;
|
|---|
| 79 | }
|
|---|
| 80 |
|
|---|
| 81 | G4HadronQElasticPhysics::~G4HadronQElasticPhysics()
|
|---|
| 82 | {
|
|---|
| 83 | delete model;
|
|---|
| 84 | }
|
|---|
| 85 |
|
|---|
| 86 | void G4HadronQElasticPhysics::ConstructParticle()
|
|---|
| 87 | {
|
|---|
| 88 | G4MesonConstructor pMesonConstructor;
|
|---|
| 89 | pMesonConstructor.ConstructParticle();
|
|---|
| 90 |
|
|---|
| 91 | G4BaryonConstructor pBaryonConstructor;
|
|---|
| 92 | pBaryonConstructor.ConstructParticle();
|
|---|
| 93 |
|
|---|
| 94 | // Construct light ions
|
|---|
| 95 | G4IonConstructor pConstructor;
|
|---|
| 96 | pConstructor.ConstructParticle();
|
|---|
| 97 | }
|
|---|
| 98 |
|
|---|
| 99 | void G4HadronQElasticPhysics::ConstructProcess()
|
|---|
| 100 | {
|
|---|
| 101 | if(wasActivated) { return; }
|
|---|
| 102 | wasActivated = true;
|
|---|
| 103 |
|
|---|
| 104 | G4double elimit = DBL_MAX;
|
|---|
| 105 |
|
|---|
| 106 | if(verbose > 1) {
|
|---|
| 107 | G4cout << "### HadronQElasticPhysics: use HE limit " << elimit << " MeV"
|
|---|
| 108 | << G4endl;
|
|---|
| 109 | }
|
|---|
| 110 | process = new G4QElastic();
|
|---|
| 111 |
|
|---|
| 112 | model = new G4HadronElastic();
|
|---|
| 113 | model->SetHEModelLowLimit(elimit);
|
|---|
| 114 | G4VQCrossSection* man = model->GetCS();
|
|---|
| 115 |
|
|---|
| 116 | theParticleIterator->reset();
|
|---|
| 117 | while( (*theParticleIterator)() )
|
|---|
| 118 | {
|
|---|
| 119 | G4ParticleDefinition* particle = theParticleIterator->value();
|
|---|
| 120 | G4String pname = particle->GetParticleName();
|
|---|
| 121 | if(pname == "anti_lambda" ||
|
|---|
| 122 | pname == "anti_neutron" ||
|
|---|
| 123 | pname == "anti_omega-" ||
|
|---|
| 124 | pname == "anti_proton" ||
|
|---|
| 125 | pname == "anti_sigma-" ||
|
|---|
| 126 | pname == "anti_sigma+" ||
|
|---|
| 127 | pname == "anti_xi-" ||
|
|---|
| 128 | pname == "anti_xi0" ||
|
|---|
| 129 | pname == "kaon-" ||
|
|---|
| 130 | pname == "kaon+" ||
|
|---|
| 131 | pname == "kaon0S" ||
|
|---|
| 132 | pname == "kaon0L" ||
|
|---|
| 133 | pname == "lambda" ||
|
|---|
| 134 | pname == "omega-" ||
|
|---|
| 135 | pname == "pi-" ||
|
|---|
| 136 | pname == "pi+" ||
|
|---|
| 137 | pname == "sigma-" ||
|
|---|
| 138 | pname == "sigma+" ||
|
|---|
| 139 | pname == "xi-" ||
|
|---|
| 140 | pname == "alpha" ||
|
|---|
| 141 | pname == "deuteron" ||
|
|---|
| 142 | pname == "triton") {
|
|---|
| 143 |
|
|---|
| 144 | G4ProcessManager* pmanager = particle->GetProcessManager();
|
|---|
| 145 | G4UHadronElasticProcess* hel = new G4UHadronElasticProcess("hElastic");
|
|---|
| 146 | hel->SetQElasticCrossSection(man);
|
|---|
| 147 | hel->RegisterMe(model);
|
|---|
| 148 | pmanager->AddDiscreteProcess(hel);
|
|---|
| 149 |
|
|---|
| 150 | } else if(pname == "neutron" || pname == "proton") {
|
|---|
| 151 |
|
|---|
| 152 | G4ProcessManager* pmanager = particle->GetProcessManager();
|
|---|
| 153 | pmanager->AddDiscreteProcess(process);
|
|---|
| 154 |
|
|---|
| 155 | if(verbose > 0)
|
|---|
| 156 | G4cout << "### QElastic added for "
|
|---|
| 157 | << particle->GetParticleName() << G4endl;
|
|---|
| 158 | }
|
|---|
| 159 | }
|
|---|
| 160 | }
|
|---|
| 161 |
|
|---|
| 162 |
|
|---|