Geant4_10
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  delete theLENDElasticCrossSection;
59  delete theLENDFissionCrossSection;
60  delete theLENDCaptureCrossSection;
61  delete theLENDInelasticCrossSection;
62 }
63 
66 {
67  if(theLENDElastic==0) theLENDElastic = new G4LENDElastic( G4Neutron::Neutron() );
68  theLENDElastic->SetMinEnergy(theMin);
69  theLENDElastic->SetMaxEnergy(theMax);
70 
71  if ( evaluation != "" ) theLENDElastic->ChangeDefaultEvaluation( evaluation );
72  //theLENDElastic->AllowNaturalAbundanceTarget();
73  theLENDElastic->AllowAnyCandidateTarget();
74  if(theLENDElasticCrossSection == 0) theLENDElasticCrossSection = new G4LENDElasticCrossSection( G4Neutron::Neutron() );
75  if ( evaluation != "" ) theLENDElasticCrossSection->ChangeDefaultEvaluation( evaluation );
76  //theLENDElasticCrossSection->AllowNaturalAbundanceTarget();
77  theLENDElasticCrossSection->AllowAnyCandidateTarget();
78  aP->AddDataSet(theLENDElasticCrossSection);
79  aP->RegisterMe(theLENDElastic);
80 }
81 
84 {
85  if(theLENDFission == 0) theLENDFission = new G4LENDFission( G4Neutron::Neutron() );
86  theLENDFission->SetMinEnergy(theMin);
87  theLENDFission->SetMaxEnergy(theMax);
88  if ( evaluation != "" ) theLENDFission->ChangeDefaultEvaluation( evaluation );
89  //theLENDFission->AllowNaturalAbundanceTarget();
90  theLENDFission->AllowAnyCandidateTarget();
91  if(theLENDFissionCrossSection==0) theLENDFissionCrossSection=new G4LENDFissionCrossSection( G4Neutron::Neutron() );
92  if ( evaluation != "" ) theLENDFissionCrossSection->ChangeDefaultEvaluation( evaluation );
93  //theLENDFissionCrossSection->AllowNaturalAbundanceTarget();
94  theLENDFissionCrossSection->AllowAnyCandidateTarget();
95  aP->AddDataSet(theLENDFissionCrossSection);
96  aP->RegisterMe(theLENDFission);
97 }
98 
101 {
102  if(theLENDCapture==0) theLENDCapture = new G4LENDCapture( G4Neutron::Neutron() );
103  theLENDCapture->SetMinEnergy(theMin);
104  theLENDCapture->SetMaxEnergy(theMax);
105  if ( evaluation != "" ) theLENDCapture->ChangeDefaultEvaluation( evaluation );
106  //theLENDCapture->AllowNaturalAbundanceTarget();
107  theLENDCapture->AllowAnyCandidateTarget();
108  if(theLENDCaptureCrossSection==0) theLENDCaptureCrossSection = new G4LENDCaptureCrossSection( G4Neutron::Neutron() );
109  if ( evaluation != "" ) theLENDCaptureCrossSection->ChangeDefaultEvaluation( evaluation );
110  //theLENDCaptureCrossSection->AllowNaturalAbundanceTarget();
111  theLENDCaptureCrossSection->AllowAnyCandidateTarget();
112  aP->AddDataSet(theLENDCaptureCrossSection);
113  aP->RegisterMe(theLENDCapture);
114 }
115 
118 {
119  if(theLENDInelastic==0) theLENDInelastic = new G4LENDInelastic( G4Neutron::Neutron() );
120  theLENDInelastic->SetMinEnergy(theIMin);
121  theLENDInelastic->SetMaxEnergy(theIMax);
122  if ( evaluation != "" ) theLENDInelastic->ChangeDefaultEvaluation( evaluation );
123  //theLENDInelastic->AllowNaturalAbundanceTarget();
124  theLENDInelastic->AllowAnyCandidateTarget();
125  if(theLENDInelasticCrossSection==0) theLENDInelasticCrossSection = new G4LENDInelasticCrossSection( G4Neutron::Neutron() );
126  if ( evaluation != "" ) theLENDInelasticCrossSection->ChangeDefaultEvaluation( evaluation );
127  //theLENDInelasticCrossSection->AllowNaturalAbundanceTarget();
128  theLENDInelasticCrossSection->AllowAnyCandidateTarget();
129  aP->AddDataSet(theLENDInelasticCrossSection);
130  aP->RegisterMe(theLENDInelastic);
131 }
void AllowAnyCandidateTarget()
Definition: G4LENDModel.hh:62
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void ChangeDefaultEvaluation(G4String name)
Definition: G4LENDModel.hh:60
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
G4NeutronLENDBuilder(G4String eva="")
void SetMaxEnergy(const G4double anEnergy)
virtual void Build(G4HadronElasticProcess *aP)
void ChangeDefaultEvaluation(G4String name_tmp)