Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4NeutronLENDBuilder.cc
Go to the documentation of this file.
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 #include "G4NeutronLENDBuilder.hh"
27 #include "G4SystemOfUnits.hh"
28 #include "G4ParticleDefinition.hh"
29 #include "G4ParticleTable.hh"
30 #include "G4ProcessManager.hh"
31 
34 {
35  theLENDElastic = 0;
36  theLENDElasticCrossSection = 0;
37 
38  theLENDFission = 0;
39  theLENDFissionCrossSection = 0;
40 
41  theLENDCapture = 0;
42  theLENDCaptureCrossSection = 0;
43 
44  theLENDInelastic = 0;
45  theLENDInelasticCrossSection = 0;
46 
47  theMin = 0;
48  theIMin = theMin;
49  theMax = 20*MeV;
50  theIMax = theMax;
51  evaluation = eva;
52 
53 }
54 
57 {}
58 
61 {
62  if(theLENDElastic==0) theLENDElastic = new G4LENDElastic( G4Neutron::Neutron() );
63  theLENDElastic->SetMinEnergy(theMin);
64  theLENDElastic->SetMaxEnergy(theMax);
65 
66  if ( evaluation != "" ) theLENDElastic->ChangeDefaultEvaluation( evaluation );
67  //theLENDElastic->AllowNaturalAbundanceTarget();
68  theLENDElastic->AllowAnyCandidateTarget();
69  if(theLENDElasticCrossSection == 0) theLENDElasticCrossSection = new G4LENDElasticCrossSection( G4Neutron::Neutron() );
70  if ( evaluation != "" ) theLENDElasticCrossSection->ChangeDefaultEvaluation( evaluation );
71  //theLENDElasticCrossSection->AllowNaturalAbundanceTarget();
72  theLENDElasticCrossSection->AllowAnyCandidateTarget();
73  aP->AddDataSet(theLENDElasticCrossSection);
74  aP->RegisterMe(theLENDElastic);
75 }
76 
79 {
80  if(theLENDFission == 0) theLENDFission = new G4LENDFission( G4Neutron::Neutron() );
81  theLENDFission->SetMinEnergy(theMin);
82  theLENDFission->SetMaxEnergy(theMax);
83  if ( evaluation != "" ) theLENDFission->ChangeDefaultEvaluation( evaluation );
84  //theLENDFission->AllowNaturalAbundanceTarget();
85  theLENDFission->AllowAnyCandidateTarget();
86  if(theLENDFissionCrossSection==0) theLENDFissionCrossSection=new G4LENDFissionCrossSection( G4Neutron::Neutron() );
87  if ( evaluation != "" ) theLENDFissionCrossSection->ChangeDefaultEvaluation( evaluation );
88  //theLENDFissionCrossSection->AllowNaturalAbundanceTarget();
89  theLENDFissionCrossSection->AllowAnyCandidateTarget();
90  aP->AddDataSet(theLENDFissionCrossSection);
91  aP->RegisterMe(theLENDFission);
92 }
93 
96 {
97  if(theLENDCapture==0) theLENDCapture = new G4LENDCapture( G4Neutron::Neutron() );
98  theLENDCapture->SetMinEnergy(theMin);
99  theLENDCapture->SetMaxEnergy(theMax);
100  if ( evaluation != "" ) theLENDCapture->ChangeDefaultEvaluation( evaluation );
101  //theLENDCapture->AllowNaturalAbundanceTarget();
102  theLENDCapture->AllowAnyCandidateTarget();
103  if(theLENDCaptureCrossSection==0) theLENDCaptureCrossSection = new G4LENDCaptureCrossSection( G4Neutron::Neutron() );
104  if ( evaluation != "" ) theLENDCaptureCrossSection->ChangeDefaultEvaluation( evaluation );
105  //theLENDCaptureCrossSection->AllowNaturalAbundanceTarget();
106  theLENDCaptureCrossSection->AllowAnyCandidateTarget();
107  aP->AddDataSet(theLENDCaptureCrossSection);
108  aP->RegisterMe(theLENDCapture);
109 }
110 
113 {
114  if(theLENDInelastic==0) theLENDInelastic = new G4LENDInelastic( G4Neutron::Neutron() );
115  theLENDInelastic->SetMinEnergy(theIMin);
116  theLENDInelastic->SetMaxEnergy(theIMax);
117  if ( evaluation != "" ) theLENDInelastic->ChangeDefaultEvaluation( evaluation );
118  //theLENDInelastic->AllowNaturalAbundanceTarget();
119  theLENDInelastic->AllowAnyCandidateTarget();
120  if(theLENDInelasticCrossSection==0) theLENDInelasticCrossSection = new G4LENDInelasticCrossSection( G4Neutron::Neutron() );
121  if ( evaluation != "" ) theLENDInelasticCrossSection->ChangeDefaultEvaluation( evaluation );
122  //theLENDInelasticCrossSection->AllowNaturalAbundanceTarget();
123  theLENDInelasticCrossSection->AllowAnyCandidateTarget();
124  aP->AddDataSet(theLENDInelasticCrossSection);
125  aP->RegisterMe(theLENDInelastic);
126 }
void AllowAnyCandidateTarget()
Definition: G4LENDModel.hh:64
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void ChangeDefaultEvaluation(G4String name)
Definition: G4LENDModel.hh:62
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4NeutronLENDBuilder(G4String eva="")
void SetMaxEnergy(const G4double anEnergy)
static constexpr double MeV
Definition: G4SIunits.hh:214
virtual void Build(G4HadronElasticProcess *aP)
void ChangeDefaultEvaluation(G4String name_tmp)