43 void G4LENDUsedTarget::searchTarget()
49 target = lend_manager->
GetLENDTarget( proj , wanted_Evaluation , wanted_Z , wanted_A , wanted_M );
56 actual_Evaluation = wanted_Evaluation;
61 if ( allow_nat ==
true || allow_anything ==
true )
69 actual_Evaluation = wanted_Evaluation;
79 if ( allow_anything ==
true )
85 while ( dZ < max_Z - min_Z )
87 iZ = wanted_Z + pZ*dZ;
92 while ( dA < max_A - min_A )
94 iA = wanted_A + pA*dA;
99 while ( dM < max_M - min_M )
102 iM = wanted_M + pM*dM;
104 if ( iZ < min_Z ) iZ = min_Z;
105 if ( iA < min_A ) iA = 0;
106 if ( iM < min_M ) iM = min_M;
108 if ( iZ > max_Z ) iZ = max_Z;
109 if ( iA > max_A ) iA = max_A;
110 if ( iM > max_M ) iM = max_M;
G4GIDI_target * GetLENDTarget(G4ParticleDefinition *, G4String, G4int iZ, G4int iA, G4int iM=0)
std::vector< G4String > IsLENDTargetAvailable(G4ParticleDefinition *, G4int iZ, G4int iA, G4int iM=0)
static G4LENDManager * GetInstance()