#include <G4InterpolationManager.hh>
Definition at line 37 of file G4InterpolationManager.hh.
G4InterpolationManager::G4InterpolationManager |
( |
| ) |
|
|
inline |
G4InterpolationManager::~G4InterpolationManager |
( |
| ) |
|
|
inline |
Definition at line 55 of file G4InterpolationManager.hh.
57 if(start!=0)
delete [] start;
58 if(range!=0)
delete [] range;
59 if(scheme!=0)
delete [] scheme;
Definition at line 90 of file G4InterpolationManager.cc.
94 G4cout <<
"G4InterpolationManager::AppendScheme - "<<aPoint<<
" "<<nEntries<<
G4endl;
95 throw G4HadronicException(__FILE__, __LINE__,
"Wrong usage of G4InterpolationManager::AppendScheme");
105 else if(aScheme==scheme[nRanges-1])
118 for(i=0; i<nRanges-1; i++)
120 buffer[i] = start[i];
121 buffer1[i] = range[i];
122 buff2[i] = scheme[i];
130 start[nRanges-1] = start[nRanges-2]+range[nRanges-2];
131 range[nRanges-1] = 1;
132 scheme[nRanges-1] = aScheme;
G4GLOB_DLL std::ostream G4cout
void G4InterpolationManager::CleanUp |
( |
| ) |
|
|
inline |
Definition at line 148 of file G4InterpolationManager.hh.
G4double G4ParticleHPJENDLHEData::G4double result
G4InterpolationScheme GetScheme(G4int index) const
void G4InterpolationManager::Init |
( |
std::istream & |
aDataFile | ) |
|
|
inline |
Definition at line 101 of file G4InterpolationManager.hh.
106 aDataFile >> nRanges;
107 start =
new G4int[nRanges];
108 range =
new G4int[nRanges];
112 for(
G4int i=0; i<nRanges; i++)
121 if(i!=0) start[i] = range[i-1];
126 nEntries = start[nRanges-1]+range[nRanges-1];
G4InterpolationScheme MakeScheme(G4int it)
Definition at line 62 of file G4InterpolationManager.hh.
66 nRanges = aManager.nRanges;
67 nEntries = aManager.nEntries;
68 if(scheme!=0)
delete [] scheme;
69 if(start!=0)
delete [] start;
70 if(range!=0)
delete [] range;
72 start =
new G4int[nRanges];
73 range =
new G4int[nRanges];
74 for(
G4int i=0; i<nRanges; i++)
76 scheme[i]=aManager.scheme[i];
77 start[i]=aManager.start[i];
78 range[i]=aManager.range[i];
The documentation for this class was generated from the following files: