#include <G4DNACPA100LogLogInterpolation.hh>
◆ G4DNACPA100LogLogInterpolation()
G4DNACPA100LogLogInterpolation::G4DNACPA100LogLogInterpolation |
( |
| ) |
|
|
default |
◆ ~G4DNACPA100LogLogInterpolation()
G4DNACPA100LogLogInterpolation::~G4DNACPA100LogLogInterpolation |
( |
| ) |
|
|
overridedefault |
◆ Calculate() [1/2]
Implements G4VDataSetAlgorithm.
Definition at line 55 of file G4DNACPA100LogLogInterpolation.cc.
58{
59
60 auto nBins =
G4int(data.size() - 1);
61
63 if (x < points[0])
64 {
65 value = 0.;
66 }
67 else if (bin < nBins)
68 {
73
74 if ((d1 > 0.) && (d2 > 0.) && (e1 > 0.) && (e2 > 0.))
75 {
76
77
78
79
80
81 value = std::log10(d1)+(std::log10(d2/d1)/std::log10(e2/e1)*std::log10(x/e1));
82 value = std::pow(10.,value);
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98 }
99 else value = 0.;
100 }
101 else
102 {
103 value = data[nBins];
104 }
105 return value;
106}
◆ Calculate() [2/2]
Implements G4VDataSetAlgorithm.
Definition at line 112 of file G4DNACPA100LogLogInterpolation.cc.
117{
118 auto nBins =
G4int(data.size() - 1);
121 if (x < points[0])
122 {
123 value = 0.;
124 }
125 else if (bin < nBins)
126 {
128
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148 value = log_d2;
149 if (log_x == log_e1) value = log_d1;
150
151
152 value = std::pow(10.,value);
153 }
154 else
155 {
156 value = data[nBins];
157 }
158
159 return value;
160}
◆ Clone()
The documentation for this class was generated from the following files: