Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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
43{
44public:
45
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
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;
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;};
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:
93 { theBaseA = anA; theBaseZ = aZ; theBaseM=aM;
94 theNDLDataA=(G4int)used.GetA(); theNDLDataZ=(G4int)used.GetZ(); theNDLDataM=used.GetM(); };
95
100
102
106
107
108//080721
109 protected:
114
115 private:
116 G4bool adjustResult;
117
118
119};
120#endif
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
virtual G4double GetXsec(G4double)
virtual G4NeutronHPFinalState * New()=0
virtual void Init(G4double A, G4double Z, G4int M, G4String &dirName, G4String &aFSType)=0
virtual G4NeutronHPVector * GetXsec()
void SetAZMs(G4double anA, G4double aZ, G4int aM, G4NeutronHPDataUsed used)
void Init(G4double A, G4double Z, G4String &dirName, G4String &aFSType)
void SetA_Z(G4double anA, G4double aZ, G4int aM=0)
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &)
void adjust_final_state(G4LorentzVector)