// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // $Id: G4HadronElasticPhysicsHP.cc,v 1.3 2010/09/23 18:53:20 vnivanch Exp $ // GEANT4 tag $Name: phys-lists-V09-03-34 $ // //--------------------------------------------------------------------------- // // ClassName: G4HadronElasticPhysicsHP // // Author: 3 June 2010 V. Ivanchenko // // Modified: // //---------------------------------------------------------------------------- // // CHIPS for sampling scattering for p and n // HP model for n with E < 20 MeV // Glauber model for samplimg of high energy pi+- (E > 1GeV) // LHEP sampling model for the other particle // BBG cross sections for n, p and pi+- // HP cross sections for n n with E < 20 MeV // LHEP cross sections for other particles #include "G4HadronElasticPhysicsHP.hh" #include "G4ParticleDefinition.hh" #include "G4ProcessManager.hh" #include "G4MesonConstructor.hh" #include "G4BaryonConstructor.hh" #include "G4IonConstructor.hh" #include "G4Neutron.hh" #include "G4WHadronElasticProcess.hh" #include "G4VHadronElastic.hh" #include "G4CHIPSElastic.hh" #include "G4ElasticHadrNucleusHE.hh" #include "G4NeutronHPElastic.hh" #include "G4UElasticCrossSection.hh" #include "G4BGGNucleonElasticXS.hh" #include "G4BGGPionElasticXS.hh" #include "G4NeutronElasticXS.hh" #include "G4CHIPSElasticXS.hh" #include "G4NeutronHPElastic.hh" #include "G4NeutronHPElasticData.hh" G4HadronElasticPhysicsHP::G4HadronElasticPhysicsHP(G4int ver) : G4VPhysicsConstructor("hElasticWEL_CHIPS_HP"), verbose(ver), wasActivated(false) { if(verbose > 1) { G4cout << "### G4HadronElasticPhysicsHP: " << GetPhysicsName() << G4endl; } } G4HadronElasticPhysicsHP::~G4HadronElasticPhysicsHP() {} void G4HadronElasticPhysicsHP::ConstructParticle() { // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl; G4MesonConstructor pMesonConstructor; pMesonConstructor.ConstructParticle(); G4BaryonConstructor pBaryonConstructor; pBaryonConstructor.ConstructParticle(); // Construct light ions G4IonConstructor pConstructor; pConstructor.ConstructParticle(); } void G4HadronElasticPhysicsHP::ConstructProcess() { if(wasActivated) return; wasActivated = true; G4double elimit = 1.0*GeV; if(verbose > 1) { G4cout << "### HadronElasticPhysicsHP Construct Processes with HE limit " << elimit << " MeV" << G4endl; } G4VHadronElastic* plep0 = new G4VHadronElastic(); G4VHadronElastic* plep1 = new G4VHadronElastic(); plep1->SetMaxEnergy(elimit); G4CHIPSElastic* chipsp = new G4CHIPSElastic(); G4CHIPSElastic* chipsn = new G4CHIPSElastic(); G4ElasticHadrNucleusHE* he = new G4ElasticHadrNucleusHE(); he->SetMinEnergy(elimit); theParticleIterator->reset(); while( (*theParticleIterator)() ) { G4ParticleDefinition* particle = theParticleIterator->value(); G4String pname = particle->GetParticleName(); if(pname == "anti_lambda" || pname == "anti_neutron" || pname == "anti_omega-" || pname == "anti_proton" || pname == "anti_sigma-" || pname == "anti_sigma+" || pname == "anti_xi-" || pname == "anti_xi0" || pname == "kaon-" || pname == "kaon+" || pname == "kaon0S" || pname == "kaon0L" || pname == "lambda" || pname == "omega-" || pname == "pi-" || pname == "pi+" || pname == "proton" || pname == "sigma-" || pname == "sigma+" || pname == "xi-" || pname == "alpha" || pname == "deuteron" || pname == "triton") { G4ProcessManager* pmanager = particle->GetProcessManager(); G4WHadronElasticProcess* hel = new G4WHadronElasticProcess(); if(pname == "proton") { hel->AddDataSet(new G4BGGNucleonElasticXS(particle)); hel->AddDataSet(new G4CHIPSElasticXS()); hel->RegisterMe(chipsp); } else if (pname == "pi+" || pname == "pi-") { hel->AddDataSet(new G4BGGPionElasticXS(particle)); hel->RegisterMe(plep1); hel->RegisterMe(he); } else { hel->RegisterMe(plep0); } pmanager->AddDiscreteProcess(hel); if(verbose > 1) { G4cout << "### HadronElasticPhysicsHP: " << hel->GetProcessName() << " added for " << particle->GetParticleName() << G4endl; } // neutron case } else if(pname == "neutron") { G4ProcessManager* pmanager = particle->GetProcessManager(); G4WHadronElasticProcess* hel = new G4WHadronElasticProcess(); hel->AddDataSet(new G4BGGNucleonElasticXS(particle)); hel->AddDataSet(new G4CHIPSElasticXS()); hel->RegisterMe(chipsn); chipsn->SetMinEnergy(19.5*MeV); G4NeutronHPElastic* hp = new G4NeutronHPElastic(); hel->RegisterMe(hp); hel->AddDataSet(new G4NeutronHPElasticData()); pmanager->AddDiscreteProcess(hel); if(verbose > 1) { G4cout << "### HadronElasticPhysicsHP: " << hel->GetProcessName() << " added for " << particle->GetParticleName() << G4endl; } } } }