Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
processes
hadronic
models
neutron_hp
include
G4NeutronHPFinalState.hh
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
//
27
// $Id$
28
//
29
// 080721 Create adjust_final_state method by T. Koi
30
// 080801 Introduce theNDLDataA,Z which has A and Z of NDL data by T. Koi
31
//
32
#ifndef G4NeutronHPFinalState_h
33
#define G4NeutronHPFinalState_h
34
35
#include "
G4Material.hh
"
36
#include "
G4FastVector.hh
"
37
#include "
G4HadFinalState.hh
"
38
#include "
G4NeutronHPNames.hh
"
39
#include "
G4NeutronHPVector.hh
"
40
#include "
G4HadProjectile.hh
"
41
42
class
G4NeutronHPFinalState
43
{
44
public
:
45
46
G4NeutronHPFinalState
()
47
{
48
hasFSData
=
true
;
49
hasXsec
=
true
;
50
hasAnyData
=
true
;
51
theBaseZ
= 0;
52
theBaseA
= 0;
53
theBaseM
= 0;
54
55
theNDLDataZ
= 0;
56
theNDLDataA
= 0;
57
58
adjustResult =
true
;
59
if
( getenv(
"G4NEUTRONHP_DO_NOT_ADJUST_FINAL_STATE"
) ) adjustResult =
false
;
60
61
};
62
63
virtual
~G4NeutronHPFinalState
(){};
64
65
//virtual void Init (G4double A, G4double Z, G4String & dirName, G4String & aFSType) = 0;
66
void
Init
(
G4double
A,
G4double
Z
,
G4String
& dirName,
G4String
& aFSType) {
G4int
M = 0;
Init
( A, Z, M, dirName, aFSType); };
67
virtual
void
Init
(
G4double
A,
G4double
Z
,
G4int
M,
G4String
& dirName,
G4String
& aFSType) =0;
68
virtual
G4HadFinalState
*
ApplyYourself
(
const
G4HadProjectile
& )
69
{
70
throw
G4HadronicException
(__FILE__, __LINE__,
"G4HadFinalState * ApplyYourself(const G4HadProjectile & theTrack) needs implementation"
);
71
return
0;
72
};
73
74
// of course this would better be Done templating G4NeutronHPChannel...,
75
// but due to peculiarities of the DEC compiler, this way it
76
// is easier to maintain.
77
virtual
G4NeutronHPFinalState
*
New
() = 0;
78
79
G4bool
HasXsec
() {
return
hasXsec
;};
80
G4bool
HasFSData
() {
return
hasFSData
;};
81
G4bool
HasAnyData
() {
return
hasAnyData
;};
82
83
virtual
G4double
GetXsec
(
G4double
) {
return
0; };
84
virtual
G4NeutronHPVector
*
GetXsec
() {
return
0; };
85
86
void
SetA_Z
(
G4double
anA,
G4double
aZ,
G4int
aM=0) {
theBaseA
= anA;
theBaseZ
= aZ;
theBaseM
=aM; };
87
G4double
GetZ
() {
return
theBaseZ
; };
88
G4double
GetN
() {
return
theBaseA
; };
89
G4int
GetM
() {
return
theBaseM
; };
90
91
protected
:
92
void
SetAZMs
(
G4double
anA,
G4double
aZ,
G4int
aM,
G4NeutronHPDataUsed
used)
93
{
theBaseA
= anA;
theBaseZ
= aZ;
theBaseM
=aM;
94
theNDLDataA
=(
G4int
)used.
GetA
();
theNDLDataZ
=(
G4int
)used.
GetZ
();
theNDLDataM
=used.
GetM
(); };
95
96
G4bool
hasXsec
;
97
G4bool
hasFSData
;
98
G4bool
hasAnyData
;
99
G4NeutronHPNames
theNames
;
100
101
G4HadFinalState
theResult
;
102
103
G4double
theBaseA
;
104
G4double
theBaseZ
;
105
G4int
theBaseM
;
106
107
108
//080721
109
protected
:
110
void
adjust_final_state
(
G4LorentzVector
);
111
G4int
theNDLDataZ
;
112
G4int
theNDLDataA
;
113
G4int
theNDLDataM
;
114
115
private
:
116
G4bool
adjustResult;
117
118
119
};
120
#endif
Generated on Sat May 25 2013 14:34:02 for Geant4 by
1.8.4