Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4InuclSpecialFunctions::paraMaker Class Reference

#include <G4InuclSpecialFunctions.hh>

Public Member Functions

 paraMaker (G4int verbose=0)
 
 ~paraMaker ()
 
void getParams (G4double Z, std::pair< std::vector< G4double >, std::vector< G4double > > &parms)
 
void getTruncated (G4double Z, std::pair< G4double, G4double > &parms)
 

Detailed Description

Definition at line 89 of file G4InuclSpecialFunctions.hh.

Constructor & Destructor Documentation

◆ paraMaker()

G4InuclSpecialFunctions::paraMaker::paraMaker ( G4int verbose = 0)

Definition at line 50 of file paraMaker.cc.

51 : verboseLevel(vb), interp(new G4CascadeInterpolator<5>(Z1, false)) {;}

◆ ~paraMaker()

G4InuclSpecialFunctions::paraMaker::~paraMaker ( )

Definition at line 53 of file paraMaker.cc.

53 {
54 delete interp;
55}

Member Function Documentation

◆ getParams()

void G4InuclSpecialFunctions::paraMaker::getParams ( G4double Z,
std::pair< std::vector< G4double >, std::vector< G4double > > & parms )

Definition at line 61 of file paraMaker.cc.

63 {
64 if (verboseLevel > 3) {
65 G4cout << " >>> G4InuclSpecialFunctions::paraMaker" << G4endl;
66 }
67
68 // Set up input buffer for results
69 std::vector<G4double>& AK = parms.first;
70 AK.resize(6,0.);
71
72 std::vector<G4double>& CPA = parms.second;
73 CPA.resize(6,0.);
74
75 AK[0] = 0.0;
76 CPA[0] = 0.0;
77
78 AK[1] = interp->interpolate(Z, AP);
79 AK[5] = interp->interpolate(Z, AA);
80 CPA[1] = interp->interpolate(Z, CP);
81 CPA[5] = interp->interpolate(Z, CA);
82
83 AK[2] = AK[1] + 0.06;
84 AK[3] = AK[1] + 0.12;
85 AK[4] = AK[5] - 0.06;
86
87 CPA[2] = CPA[1] * 0.5;
88 CPA[3] = CPA[1] / 3.0;
89 CPA[4] = 4.0 * CPA[5] / 3.0;
90
91 return; // Buffer filled
92}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
G4double interpolate(const G4double x, const G4double(&yb)[nBins]) const

Referenced by G4EquilibriumEvaporator::deExcite().

◆ getTruncated()

void G4InuclSpecialFunctions::paraMaker::getTruncated ( G4double Z,
std::pair< G4double, G4double > & parms )

Definition at line 95 of file paraMaker.cc.

96 {
97 if (verboseLevel > 3) {
98 G4cout << " >>> G4InuclSpecialFunctions::paraMakerTruncated" << G4endl;
99 }
100
101 // Set up buffers for output
102 G4double& AK2=parms.first;
103 G4double& CP2=parms.second;
104
105 AK2 = interp->interpolate(Z, AP);
106 CP2 = interp->interpolate(Z, CP);
107
108 return; // Buffer filled
109}
double G4double
Definition G4Types.hh:83

Referenced by G4NonEquilibriumEvaporator::deExcite().


The documentation for this class was generated from the following files: