Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QNeutronHPBuilder.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
// $Id$
27
//
28
//---------------------------------------------------------------------------
29
//
30
// ClassName: G4QNeutronHPBuilder
31
//
32
// Author: April 2012 M. Kosov
33
//
34
// Modified:
35
//
36
//----------------------------------------------------------------------------
37
// Short description: for use in CHIPS_HP physics list (mix Q w/ HP at 20 MeV)
38
//----------------------------------------------------------------------------
39
//
40
#include "
G4QNeutronHPBuilder.hh
"
41
#include "
G4SystemOfUnits.hh
"
42
43
G4QNeutronHPBuilder::G4QNeutronHPBuilder
():
44
theNeutrons(0)
45
, theNeutronFission(0)
46
, theNeutronCapture(0)
47
, theCHIPSNGamma(0)
48
, theHPNeutron(0)
49
, wasActivated(false)
50
{
51
theNeutronInelastic =
new
G4NeutronInelasticProcess
;
52
theCHIPSInelastic =
new
G4QInelastic
;
53
const
G4ParticleDefinition
* proj =
G4Neutron::Neutron
();
54
const
G4String
& INprocessName =
"MixedHPQNeutronInelasticProcess"
;
55
theInProcessMixer=
new
G4QDiscProcessMixer
(INprocessName, proj);
56
const
G4String
& NGprocessName =
"MixedHPQNeutronGammaProcess"
;
57
theNgProcessMixer=
new
G4QDiscProcessMixer
(NGprocessName, proj);
58
const
G4String
& FIprocessName =
"MixedHPQNeutronFissionProcess"
;
59
theFiProcessMixer=
new
G4QDiscProcessMixer
(FIprocessName, proj);
60
}
61
62
G4QNeutronHPBuilder::~G4QNeutronHPBuilder
()
63
{
64
delete
theCHIPSInelastic;
65
delete
theCHIPSNGamma;
66
delete
theNeutronInelastic;
67
delete
theHPNeutron;
68
delete
theInProcessMixer;
69
delete
theNgProcessMixer;
70
delete
theFiProcessMixer;
71
}
72
73
void
G4QNeutronHPBuilder::Build
()
74
{
75
wasActivated =
true
;
76
// The model definition for neutrons (needed for HP implementation)
77
theNeutrons =
new
G4NeutronBuilder
;
78
theNeutrons->
RegisterMe
( theHPNeutron =
new
G4NeutronHPBuilder
);
79
// End of the model definition
80
std::vector<G4VNeutronBuilder *>::iterator i;
81
for
(i = theModelCollections.begin(); i != theModelCollections.end(); i++)
82
{
83
(*i)->Build(theNeutronInelastic);
84
(*i)->Build(theNeutronCapture);
85
(*i)->Build(theNeutronFission);
86
}
87
G4ProcessManager
* theProcMan =
G4Neutron::Neutron
()->
GetProcessManager
();
88
89
theInProcessMixer->
AddDiscreteProcess
(theCHIPSInelastic, 1.E8*megaelectronvolt);
90
theInProcessMixer->
AddDiscreteProcess
(theNeutronInelastic, 19.9*megaelectronvolt);
91
92
theNgProcessMixer->
AddDiscreteProcess
(theCHIPSNGamma, 1.E8*megaelectronvolt);
93
theNgProcessMixer->
AddDiscreteProcess
(theNeutronCapture, 19.9*megaelectronvolt);
94
95
//theFiProcessMixer->AddDiscreteProcess(theCHIPSFission, 1.E8*megaelectronvolt);
96
//theFiProcessMixer->AddDiscreteProcess(theNeutronFission, 19.9*megaelectronvolt);
97
98
theProcMan->
AddDiscreteProcess
(theInProcessMixer);
// Mix CHIPS+HP for inelastic
99
theProcMan->
AddDiscreteProcess
(theNgProcessMixer);
// Mix CHIPS+HP for (n,gamma)
100
theProcMan->
AddDiscreteProcess
(theNeutronFission);
// Only HP for fission
101
//theProcMan->AddDiscreteProcess(theFiProcessMixer); // Mix CHIPS+HP for fission
102
}
103
// 2009 by M. Kosov
G4QNeutronHPBuilder.hh
G4SystemOfUnits.hh
G4NeutronBuilder
Definition:
G4NeutronBuilder.hh:53
G4NeutronBuilder::RegisterMe
void RegisterMe(G4VNeutronBuilder *aB)
Definition:
G4NeutronBuilder.hh:60
G4NeutronHPBuilder
Definition:
G4NeutronHPBuilder.hh:47
G4NeutronInelasticProcess
Definition:
G4NeutronInelasticProcess.hh:45
G4Neutron::Neutron
static G4Neutron * Neutron()
Definition:
G4Neutron.cc:104
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:68
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
G4ProcessManager
Definition:
G4ProcessManager.hh:107
G4ProcessManager::AddDiscreteProcess
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4QDiscProcessMixer
Definition:
G4QDiscProcessMixer.hh:54
G4QDiscProcessMixer::AddDiscreteProcess
void AddDiscreteProcess(G4VDiscreteProcess *DP, G4double MaxE)
Definition:
G4QDiscProcessMixer.cc:65
G4QInelastic
Definition:
G4QInelastic.hh:123
G4QNeutronHPBuilder::Build
void Build()
Definition:
G4QNeutronHPBuilder.cc:73
G4QNeutronHPBuilder::~G4QNeutronHPBuilder
virtual ~G4QNeutronHPBuilder()
Definition:
G4QNeutronHPBuilder.cc:62
G4QNeutronHPBuilder::G4QNeutronHPBuilder
G4QNeutronHPBuilder()
Definition:
G4QNeutronHPBuilder.cc:43
G4String
Definition:
G4String.hh:105
geant4-v9.6.0
source
physics_lists
builders
src
G4QNeutronHPBuilder.cc
Generated by
1.9.6