102 geomMin = 1.e-6*CLHEP::mm;
103 lowestKinEnergy = 1*
eV;
106 polarAngleLimit = 0.0;
108 physStepLimit = gPathLength = tPathLength = 0.0;
113 fPositionChanged =
false;
141 modelManager->
AddEmModel(order, p, fm, region);
151 G4cout <<
"### G4VMultipleScattering::SetModel is obsolete method "
152 <<
"and will be removed for the next release." <<
G4endl;
155 G4int n = mscModels.size();
156 if(index >= n) {
for(
G4int i=n; i<=
index; ++i) {mscModels.push_back(0);} }
166 G4cout <<
"### G4VMultipleScattering::Model is obsolete method "
167 <<
"and will be removed for the next release." <<
G4endl;
171 if(index >= 0 && index <
G4int(mscModels.size())) { p = mscModels[
index]; }
179 G4int n = mscModels.size();
180 if(index >= n) {
for(
G4int i=n; i<=
index; ++i) { mscModels.push_back(0); } }
189 if(index >= 0 && index <
G4int(mscModels.size())) { p = mscModels[
index]; }
198 return modelManager->
GetModel(idx, ver);
206 if(!firstParticle) { firstParticle = &
part; }
219 G4cout <<
"### G4VMultipleScattering::PrepearPhysicsTable() for "
223 <<
" isIon= " << isIon
227 if(firstParticle == &part) {
233 for(
G4int i=0; i<numberOfModels; ++i) {
236 if(0 == i) { currentModel = msc; }
271 G4cout <<
"### G4VMultipleScattering::BuildPhysicsTable() for "
273 <<
" and particle " << num
282 num ==
"e+" || num ==
"mu+" ||
283 num ==
"mu-" || num ==
"proton"||
284 num ==
"pi+" || num ==
"pi-" ||
285 num ==
"kaon+" || num ==
"kaon-" ||
286 num ==
"alpha" || num ==
"anti_proton" ||
287 num ==
"GenericIon")))
298 G4cout <<
"### G4VMultipleScattering::BuildPhysicsTable() done for "
300 <<
" and particle " << num
330 if(1 == numberOfModels) {
332 if(eloss) { currentModel->
SetIonisation(fIonisation, currParticle); }
336 for(
G4int i=0; i<numberOfModels; ++i) {
355 physStepLimit = gPathLength = tPathLength = currentMinimalStep;
364 if(1 < numberOfModels) {
370 if(currentModel->
IsActive(ekin) && gPathLength >= geomMin
371 && ekin >= lowestKinEnergy) {
374 if (tPathLength < physStepLimit) {
377 }
else { isActive =
false; }
408 fPositionChanged =
false;
414 tPathLength = geomLength;
436 if (trueLength <= physStepLimit) {
437 tPathLength = trueLength;
439 tPathLength = physStepLimit - 0.5*geomMin;
443 if(tPathLength + geomMin < range && tPathLength > geomMin) {
446 G4double postSafety= preSafety - geomLength;
447 G4bool safetyRecomputed =
false;
448 if( postSafety < geomMin ) {
449 safetyRecomputed =
true;
462 fPositionChanged =
true;
466 if(r2 > postSafety*postSafety) {
467 if(!safetyRecomputed) {
471 if(r2 > postSafety*postSafety) { fac = 0.99*postSafety/std::sqrt(r2); }
474 fNewPosition += fac*displacement;
491 if(fPositionChanged) {
510 currentSafety, &selection);
543 if(part != firstParticle) {
return yes; }
545 const G4String ss[4] = {
"1",
"2",
"3",
"4"};
546 for(
G4int i=0; i<nmod; ++i) {
551 G4int j = std::min(i,3);
560 <<
" with a name <" << name <<
"> " <<
G4endl;
565 <<
" in the directory <" << directory
587 for(
G4int i=0; i<numberOfModels; ++i) {