[825] | 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 | // |
---|
[1340] | 26 | // $Id: G4HadronHElasticPhysics.cc,v 1.10 2010/07/29 10:52:14 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: phys-lists-V09-03-34 $ |
---|
[825] | 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 |
---|
[1315] | 38 | // 03.06.2010 V.Ivanchenko cleanup constructors and ConstructProcess method |
---|
[825] | 39 | // |
---|
| 40 | //---------------------------------------------------------------------------- |
---|
| 41 | // |
---|
[1315] | 42 | // CHIPS for sampling scattering for p and n |
---|
| 43 | // Glauber model for samplimg of high energy pi+- (E > 1GeV) |
---|
| 44 | // LHEP sampling model for the other particle |
---|
| 45 | // BBG cross sections for p, n and pi+- |
---|
| 46 | // LHEP cross sections for other particles |
---|
[825] | 47 | |
---|
| 48 | #include "G4HadronHElasticPhysics.hh" |
---|
| 49 | |
---|
| 50 | #include "G4ParticleDefinition.hh" |
---|
| 51 | #include "G4ProcessManager.hh" |
---|
| 52 | |
---|
| 53 | #include "G4MesonConstructor.hh" |
---|
| 54 | #include "G4BaryonConstructor.hh" |
---|
| 55 | #include "G4IonConstructor.hh" |
---|
| 56 | #include "G4Neutron.hh" |
---|
| 57 | |
---|
[1203] | 58 | #include "G4WHadronElasticProcess.hh" |
---|
| 59 | #include "G4VHadronElastic.hh" |
---|
| 60 | #include "G4CHIPSElastic.hh" |
---|
| 61 | #include "G4ElasticHadrNucleusHE.hh" |
---|
[825] | 62 | #include "G4BGGNucleonElasticXS.hh" |
---|
| 63 | #include "G4BGGPionElasticXS.hh" |
---|
[1228] | 64 | #include "G4NeutronElasticXS.hh" |
---|
[825] | 65 | |
---|
[1315] | 66 | G4HadronHElasticPhysics::G4HadronHElasticPhysics(G4int ver) |
---|
| 67 | : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver), |
---|
| 68 | wasActivated(false) |
---|
[825] | 69 | { |
---|
[1340] | 70 | // if(verbose > 1) { |
---|
| 71 | G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName() |
---|
| 72 | << " is obsolete and soon will be removed" << G4endl; |
---|
[825] | 73 | } |
---|
| 74 | |
---|
[1315] | 75 | G4HadronHElasticPhysics::G4HadronHElasticPhysics(G4int ver, G4bool, |
---|
| 76 | const G4String&) |
---|
| 77 | : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver), |
---|
| 78 | wasActivated(false) |
---|
| 79 | { |
---|
| 80 | if(verbose > 1) { |
---|
| 81 | G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName() |
---|
| 82 | << G4endl; |
---|
| 83 | } |
---|
| 84 | } |
---|
| 85 | |
---|
[825] | 86 | G4HadronHElasticPhysics::~G4HadronHElasticPhysics() |
---|
[1203] | 87 | {} |
---|
[825] | 88 | |
---|
| 89 | void G4HadronHElasticPhysics::ConstructParticle() |
---|
| 90 | { |
---|
[1203] | 91 | // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl; |
---|
[825] | 92 | G4MesonConstructor pMesonConstructor; |
---|
| 93 | pMesonConstructor.ConstructParticle(); |
---|
| 94 | |
---|
| 95 | G4BaryonConstructor pBaryonConstructor; |
---|
| 96 | pBaryonConstructor.ConstructParticle(); |
---|
| 97 | |
---|
| 98 | // Construct light ions |
---|
| 99 | G4IonConstructor pConstructor; |
---|
| 100 | pConstructor.ConstructParticle(); |
---|
| 101 | } |
---|
| 102 | |
---|
| 103 | void G4HadronHElasticPhysics::ConstructProcess() |
---|
| 104 | { |
---|
[1315] | 105 | if(wasActivated) { return; } |
---|
[825] | 106 | wasActivated = true; |
---|
| 107 | |
---|
[1203] | 108 | G4double elimit = 1.0*GeV; |
---|
| 109 | if(verbose > 1) { |
---|
[825] | 110 | G4cout << "### HadronElasticPhysics Construct Processes with HE limit " |
---|
| 111 | << elimit << " MeV" << G4endl; |
---|
[1203] | 112 | } |
---|
[825] | 113 | |
---|
[1203] | 114 | G4VHadronElastic* plep0 = new G4VHadronElastic(); |
---|
| 115 | G4VHadronElastic* plep1 = new G4VHadronElastic(); |
---|
| 116 | plep1->SetMaxEnergy(elimit); |
---|
[825] | 117 | |
---|
[1203] | 118 | G4CHIPSElastic* chipsp = new G4CHIPSElastic(); |
---|
| 119 | G4CHIPSElastic* chipsn = new G4CHIPSElastic(); |
---|
[825] | 120 | |
---|
[1203] | 121 | G4ElasticHadrNucleusHE* he = new G4ElasticHadrNucleusHE(); |
---|
| 122 | he->SetMinEnergy(elimit); |
---|
| 123 | |
---|
[825] | 124 | theParticleIterator->reset(); |
---|
| 125 | while( (*theParticleIterator)() ) |
---|
| 126 | { |
---|
| 127 | G4ParticleDefinition* particle = theParticleIterator->value(); |
---|
| 128 | G4String pname = particle->GetParticleName(); |
---|
| 129 | if(pname == "anti_lambda" || |
---|
| 130 | pname == "anti_neutron" || |
---|
| 131 | pname == "anti_omega-" || |
---|
| 132 | pname == "anti_proton" || |
---|
| 133 | pname == "anti_sigma-" || |
---|
| 134 | pname == "anti_sigma+" || |
---|
| 135 | pname == "anti_xi-" || |
---|
| 136 | pname == "anti_xi0" || |
---|
| 137 | pname == "kaon-" || |
---|
| 138 | pname == "kaon+" || |
---|
| 139 | pname == "kaon0S" || |
---|
| 140 | pname == "kaon0L" || |
---|
| 141 | pname == "lambda" || |
---|
| 142 | pname == "omega-" || |
---|
| 143 | pname == "pi-" || |
---|
| 144 | pname == "pi+" || |
---|
| 145 | pname == "proton" || |
---|
| 146 | pname == "sigma-" || |
---|
| 147 | pname == "sigma+" || |
---|
| 148 | pname == "xi-" || |
---|
| 149 | pname == "alpha" || |
---|
| 150 | pname == "deuteron" || |
---|
| 151 | pname == "triton") { |
---|
| 152 | |
---|
| 153 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
[1203] | 154 | G4WHadronElasticProcess* hel = new G4WHadronElasticProcess(); |
---|
[825] | 155 | if(pname == "proton") { |
---|
| 156 | hel->AddDataSet(new G4BGGNucleonElasticXS(particle)); |
---|
[1203] | 157 | hel->RegisterMe(chipsp); |
---|
[825] | 158 | } else if (pname == "pi+" || pname == "pi-") { |
---|
| 159 | hel->AddDataSet(new G4BGGPionElasticXS(particle)); |
---|
[1203] | 160 | hel->RegisterMe(plep1); |
---|
| 161 | hel->RegisterMe(he); |
---|
[825] | 162 | } else { |
---|
[1203] | 163 | hel->RegisterMe(plep0); |
---|
[825] | 164 | } |
---|
| 165 | pmanager->AddDiscreteProcess(hel); |
---|
[1203] | 166 | if(verbose > 1) { |
---|
| 167 | G4cout << "### HadronHElasticPhysics: " << hel->GetProcessName() |
---|
| 168 | << " added for " << particle->GetParticleName() << G4endl; |
---|
| 169 | } |
---|
[825] | 170 | |
---|
| 171 | // neutron case |
---|
| 172 | } else if(pname == "neutron") { |
---|
| 173 | |
---|
| 174 | G4ProcessManager* pmanager = particle->GetProcessManager(); |
---|
[1203] | 175 | G4WHadronElasticProcess* hel = new G4WHadronElasticProcess(); |
---|
[1315] | 176 | hel->AddDataSet(new G4BGGNucleonElasticXS(particle)); |
---|
[1203] | 177 | hel->RegisterMe(chipsn); |
---|
[825] | 178 | |
---|
| 179 | pmanager->AddDiscreteProcess(hel); |
---|
| 180 | |
---|
[1203] | 181 | if(verbose > 1) { |
---|
| 182 | G4cout << "### HadronHElasticPhysics: " << hel->GetProcessName() |
---|
| 183 | << " added for " << particle->GetParticleName() << G4endl; |
---|
| 184 | } |
---|
[825] | 185 | } |
---|
| 186 | } |
---|
| 187 | } |
---|
| 188 | |
---|
| 189 | |
---|