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