Geant4.10
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4.10.00.p01
examples
extended
hadronic
Hadr04
src
NeutronHPphysics.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
/// \file hadronic/Hadr04/src/NeutronHPphysics.cc
27
/// \brief Implementation of the NeutronHPphysics class
28
//
29
// $Id: NeutronHPphysics.cc 66587 2012-12-21 11:06:44Z ihrivnac $
30
//
31
32
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33
34
#include "
NeutronHPphysics.hh
"
35
36
#include "
NeutronHPMessenger.hh
"
37
38
#include "
G4ParticleDefinition.hh
"
39
#include "
G4ProcessManager.hh
"
40
41
// Processes
42
43
#include "
G4HadronElasticProcess.hh
"
44
#include "
G4NeutronHPElasticData.hh
"
45
#include "
G4NeutronHPThermalScatteringData.hh
"
46
#include "
G4NeutronHPElastic.hh
"
47
#include "
G4NeutronHPThermalScattering.hh
"
48
49
#include "
G4NeutronInelasticProcess.hh
"
50
#include "
G4NeutronHPInelasticData.hh
"
51
#include "
G4NeutronHPInelastic.hh
"
52
53
#include "
G4HadronCaptureProcess.hh
"
54
#include "
G4NeutronHPCaptureData.hh
"
55
#include "
G4NeutronHPCapture.hh
"
56
57
#include "
G4HadronFissionProcess.hh
"
58
#include "
G4NeutronHPFissionData.hh
"
59
#include "
G4NeutronHPFission.hh
"
60
61
#include "
G4SystemOfUnits.hh
"
62
63
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
64
65
NeutronHPphysics::NeutronHPphysics
(
const
G4String
&
name
)
66
:
G4VPhysicsConstructor
(name), fThermal(true), fNeutronMessenger(0)
67
{
68
fNeutronMessenger =
new
NeutronHPMessenger
(
this
);
69
}
70
71
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
72
73
NeutronHPphysics::~NeutronHPphysics
()
74
{
75
delete
fNeutronMessenger;
76
}
77
78
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
79
80
void
NeutronHPphysics::ConstructProcess
()
81
{
82
G4ProcessManager
* pManager =
G4Neutron::Neutron
()->
GetProcessManager
();
83
84
// process: elastic
85
//
86
G4HadronElasticProcess
* process1 =
new
G4HadronElasticProcess
();
87
pManager->
AddDiscreteProcess
(process1);
88
//
89
// cross section data set
90
G4NeutronHPElasticData
* dataSet1a =
new
G4NeutronHPElasticData
();
91
G4NeutronHPThermalScatteringData
* dataSet1b
92
=
new
G4NeutronHPThermalScatteringData
();
93
process1->
AddDataSet
(dataSet1a);
94
if
(fThermal) process1->
AddDataSet
(dataSet1b);
95
//
96
// models
97
G4NeutronHPElastic
* model1a =
new
G4NeutronHPElastic
();
98
G4NeutronHPThermalScattering
* model1b =
new
G4NeutronHPThermalScattering
();
99
if
(fThermal) model1a->
SetMinEnergy
(4*
eV
);
100
process1->
RegisterMe
(model1a);
101
if
(fThermal) process1->
RegisterMe
(model1b);
102
103
// process: inelastic
104
//
105
G4NeutronInelasticProcess
* process2 =
new
G4NeutronInelasticProcess
();
106
pManager->
AddDiscreteProcess
(process2);
107
//
108
// cross section data set
109
G4NeutronHPInelasticData
* dataSet2 =
new
G4NeutronHPInelasticData
();
110
process2->
AddDataSet
(dataSet2);
111
//
112
// models
113
G4NeutronHPInelastic
* model2 =
new
G4NeutronHPInelastic
();
114
process2->
RegisterMe
(model2);
115
116
// process: nCapture
117
//
118
G4HadronCaptureProcess
* process3 =
new
G4HadronCaptureProcess
();
119
pManager->
AddDiscreteProcess
(process3);
120
//
121
// cross section data set
122
G4NeutronHPCaptureData
* dataSet3 =
new
G4NeutronHPCaptureData
();
123
process3->
AddDataSet
(dataSet3);
124
//
125
// models
126
G4NeutronHPCapture
* model3 =
new
G4NeutronHPCapture
();
127
process3->
RegisterMe
(model3);
128
129
// process: nFission
130
//
131
G4HadronFissionProcess
* process4 =
new
G4HadronFissionProcess
();
132
pManager->
AddDiscreteProcess
(process4);
133
//
134
// cross section data set
135
G4NeutronHPFissionData
* dataSet4 =
new
G4NeutronHPFissionData
();
136
process4->
AddDataSet
(dataSet4);
137
//
138
// models
139
G4NeutronHPFission
* model4 =
new
G4NeutronHPFission
();
140
process4->
RegisterMe
(model4);
141
}
142
143
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4NeutronHPThermalScattering.hh
NeutronHPMessenger
Definition:
NeutronHPMessenger.hh:46
G4HadronFissionProcess
Definition:
G4HadronFissionProcess.hh:53
G4NeutronHPInelastic.hh
NeutronHPphysics::NeutronHPphysics
NeutronHPphysics(const G4String &name="neutron")
Definition:
NeutronHPphysics.cc:65
G4NeutronHPThermalScattering
Definition:
G4NeutronHPThermalScattering.hh:64
G4NeutronHPCaptureData
Definition:
G4NeutronHPCaptureData.hh:49
G4HadronElasticProcess
Definition:
G4HadronElasticProcess.hh:49
NeutronHPphysics::ConstructProcess
virtual void ConstructProcess()
Definition:
NeutronHPphysics.cc:80
G4ProcessManager::AddDiscreteProcess
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4NeutronHPInelasticData
Definition:
G4NeutronHPInelasticData.hh:49
name
const XML_Char * name
Definition:
include/expat.h:151
NeutronHPphysics::~NeutronHPphysics
~NeutronHPphysics()
Definition:
NeutronHPphysics.cc:73
G4NeutronHPCaptureData.hh
G4NeutronInelasticProcess.hh
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
G4HadronCaptureProcess
Definition:
G4HadronCaptureProcess.hh:52
G4HadronFissionProcess.hh
G4HadronicProcess::RegisterMe
void RegisterMe(G4HadronicInteraction *a)
Definition:
G4HadronicProcess.cc:142
G4NeutronHPFission.hh
G4HadronicInteraction::SetMinEnergy
void SetMinEnergy(G4double anEnergy)
Definition:
G4HadronicInteraction.hh:90
G4NeutronHPElasticData
Definition:
G4NeutronHPElasticData.hh:49
G4HadronicProcess::AddDataSet
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
Definition:
G4HadronicProcess.hh:117
G4NeutronHPElastic.hh
G4NeutronHPFission
Definition:
G4NeutronHPFission.hh:52
NeutronHPMessenger.hh
G4NeutronHPCapture
Definition:
G4NeutronHPCapture.hh:47
python.hepunit.eV
eV
Definition:
hepunit.py:118
G4ProcessManager.hh
G4ParticleDefinition.hh
G4Neutron::Neutron
static G4Neutron * Neutron()
Definition:
G4Neutron.cc:104
G4NeutronHPFissionData.hh
G4NeutronHPThermalScatteringData.hh
G4NeutronHPElasticData.hh
G4NeutronHPFissionData
Definition:
G4NeutronHPFissionData.hh:47
G4NeutronInelasticProcess
Definition:
G4NeutronInelasticProcess.hh:44
NeutronHPphysics.hh
Definition of the NeutronHPphysics class.
G4ProcessManager
Definition:
G4ProcessManager.hh:106
G4NeutronHPInelastic
Definition:
G4NeutronHPInelastic.hh:86
G4NeutronHPCapture.hh
G4SystemOfUnits.hh
G4NeutronHPInelasticData.hh
G4NeutronHPElastic
Definition:
G4NeutronHPElastic.hh:47
G4HadronElasticProcess.hh
G4NeutronHPThermalScatteringData
Definition:
G4NeutronHPThermalScatteringData.hh:58
G4VPhysicsConstructor
Definition:
G4VPhysicsConstructor.hh:121
G4HadronCaptureProcess.hh
G4String
Definition:
examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4String.hh:45
Generated on Wed Apr 30 2014 15:55:19 for Geant4.10 by
1.8.7