178{
179 if(verbose>1) {
180 G4cout <<
"### G4TablesForExtrapolator::Initialisation" <<
G4endl;
181 }
182 currentParticle = nullptr;
183 mass = charge2 = 0.0;
184
188
189 G4int i0 = couples.size();
190 if(0 == i0) {
191 couples.reserve(nmat);
192 cuts.reserve(nmat);
193 }
194 for(
G4int i=i0; i<nmat; ++i) {
197 }
198
200
201 dedxElectron = PrepareTable(dedxElectron);
202 dedxPositron = PrepareTable(dedxPositron);
203 dedxMuon = PrepareTable(dedxMuon);
204 dedxProton = PrepareTable(dedxProton);
205 rangeElectron = PrepareTable(rangeElectron);
206 rangePositron = PrepareTable(rangePositron);
207 rangeMuon = PrepareTable(rangeMuon);
208 rangeProton = PrepareTable(rangeProton);
209 invRangeElectron = PrepareTable(invRangeElectron);
210 invRangePositron = PrepareTable(invRangePositron);
211 invRangeMuon = PrepareTable(invRangeMuon);
212 invRangeProton = PrepareTable(invRangeProton);
213 mscElectron = PrepareTable(mscElectron);
214
217
218 if(verbose>1) {
219 G4cout <<
"### G4TablesForExtrapolator Builds electron tables"
221 }
222 ComputeElectronDEDX(electron, dedxElectron);
225
226 if(verbose>1) {
227 G4cout <<
"### G4TablesForExtrapolator Builds positron tables"
229 }
230 ComputeElectronDEDX(positron, dedxPositron);
233
234 if(verbose>1) {
235 G4cout <<
"### G4TablesForExtrapolator Builds muon tables" <<
G4endl;
236 }
237 ComputeMuonDEDX(muonPlus, dedxMuon);
240
241
242
243
244
245
246
247
248 if(verbose>1) {
249 G4cout <<
"### G4TablesForExtrapolator Builds proton tables"
251 }
252 ComputeProtonDEDX(proton, dedxProton);
255
256 ComputeTrasportXS(electron, mscElectron);
257}
std::vector< G4Material * > G4MaterialTable
G4GLOB_DLL std::ostream G4cout
static G4EmParameters * Instance()
void BuildInverseRangeTable(const G4PhysicsTable *rangeTable, G4PhysicsTable *invRangeTable, G4bool useBM=false)
void BuildRangeTable(const G4PhysicsTable *dedxTable, G4PhysicsTable *rangeTable, G4bool useBM=false)
void InitialiseBaseMaterials(const G4PhysicsTable *table=nullptr)
static size_t GetNumberOfMaterials()
static G4MaterialTable * GetMaterialTable()