Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 90 of file G4InuclSpecialFunctions.hh.

Constructor & Destructor Documentation

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

Definition at line 51 of file paraMaker.cc.

52  : verboseLevel(vb), interp(new G4CascadeInterpolator<5>(Z1, false)) {;}
G4InuclSpecialFunctions::paraMaker::~paraMaker ( )

Definition at line 54 of file paraMaker.cc.

54  {
55  delete interp;
56 }

Member Function Documentation

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

Definition at line 63 of file paraMaker.cc.

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

Here is the caller graph for this function:

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

Definition at line 97 of file paraMaker.cc.

97  {
98  if (verboseLevel > 3) {
99  G4cout << " >>> G4InuclSpecialFunctions::paraMakerTruncated" << G4endl;
100  }
101 
102  // Set up buffers for output
103  G4double& AK2=parms.first;
104  G4double& CP2=parms.second;
105 
106  AK2 = interp->interpolate(Z, AP);
107  CP2 = interp->interpolate(Z, CP);
108 
109  return; // Buffer filled
110 }
G4GLOB_DLL std::ostream G4cout
G4double interpolate(const G4double x, const G4double(&yb)[nBins]) const
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76

Here is the caller graph for this function:


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