00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // $Id$ 00027 // 00028 //--------------------------------------------------------------------------- 00029 // 00030 // ClassName: G4HadronElasticPhysicsLEND 00031 // 00032 // Author: 02 June 2011 Tatsumi Koi 00033 // 00034 // Modified: 00035 // 03.06.2011 V.Ivanchenko change design - now first default constructor 00036 // is called, LEND model and cross section are added on top 00037 // 00038 //---------------------------------------------------------------------------- 00039 // 00040 // LEND model for n with E < 20 MeV 00041 // LEND cross sections for n n with E < 20 MeV 00042 00043 #include "G4HadronElasticPhysicsLEND.hh" 00044 #include "G4SystemOfUnits.hh" 00045 #include "G4HadronElasticPhysics.hh" 00046 #include "G4Neutron.hh" 00047 #include "G4HadronicProcess.hh" 00048 #include "G4HadronElastic.hh" 00049 00050 #include "G4LENDElastic.hh" 00051 #include "G4LENDElasticCrossSection.hh" 00052 00053 // factory 00054 #include "G4PhysicsConstructorFactory.hh" 00055 // 00056 G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronElasticPhysicsLEND); 00057 00058 00059 G4HadronElasticPhysicsLEND::G4HadronElasticPhysicsLEND(G4int ver,G4String eva) 00060 : G4VPhysicsConstructor("hElasticWEL_CHIPS_LEND"), verbose(ver), 00061 wasActivated(false), 00062 evaluation(eva) 00063 { 00064 if(verbose > 1) { 00065 G4cout << "### G4HadronElasticPhysicsLEND: " << GetPhysicsName() 00066 << G4endl; 00067 } 00068 mainElasticBuilder = new G4HadronElasticPhysics(verbose); 00069 } 00070 00071 G4HadronElasticPhysicsLEND::~G4HadronElasticPhysicsLEND() 00072 { 00073 delete mainElasticBuilder; 00074 } 00075 00076 void G4HadronElasticPhysicsLEND::ConstructParticle() 00077 { 00078 // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl; 00079 mainElasticBuilder->ConstructParticle(); 00080 } 00081 00082 void G4HadronElasticPhysicsLEND::ConstructProcess() 00083 { 00084 if(wasActivated) return; 00085 wasActivated = true; 00086 00087 mainElasticBuilder->ConstructProcess(); 00088 00089 mainElasticBuilder->GetNeutronModel()->SetMinEnergy(19.5*MeV); 00090 00091 G4HadronicProcess* hel = mainElasticBuilder->GetNeutronProcess(); 00092 00093 G4LENDElastic* lend = new G4LENDElastic( G4Neutron::Neutron() ); 00094 if ( evaluation.size() > 0 ) lend->ChangeDefaultEvaluation( evaluation ); 00095 //lend->AllowNaturalAbundanceTarget(); 00096 lend->AllowAnyCandidateTarget(); 00097 hel->RegisterMe(lend); 00098 G4LENDElasticCrossSection* lend_XS = new G4LENDElasticCrossSection( G4Neutron::Neutron() ); 00099 if ( evaluation.size() > 0 ) lend_XS->ChangeDefaultEvaluation( evaluation ); 00100 //lend_XS->AllowNaturalAbundanceTarget(); 00101 lend_XS->AllowAnyCandidateTarget(); 00102 hel->AddDataSet( lend_XS ); 00103 00104 if(verbose > 1) { 00105 G4cout << "### HadronElasticPhysicsLEND is constructed" 00106 << G4endl; 00107 } 00108 } 00109 00110