Import Geant4 11.3.1 source tree
This commit is contained in:
@@ -72,7 +72,6 @@ class G4EnergySplitter
|
||||
private:
|
||||
void GetStepLength(G4int stepNo, G4double& stepLength);
|
||||
|
||||
void GetPhantomParam(G4bool mustExist);
|
||||
G4bool IsPhantomVolume(G4VPhysicalVolume* pv);
|
||||
|
||||
G4EnergyLossForExtrapolator* theElossExt;
|
||||
|
||||
@@ -66,7 +66,10 @@ inline void G4EnergySplitter::SetNIterations(G4int niter)
|
||||
//-----------------------------------------------------------------------
|
||||
inline G4Material* G4EnergySplitter::GetVoxelMaterial(G4int stepNo)
|
||||
{
|
||||
if (thePhantomParam == nullptr) GetPhantomParam(true);
|
||||
if (thePhantomParam == nullptr) {
|
||||
G4Exception("G4EnergySplitter::GetVoxelMaterial()", "PhantomParamError",
|
||||
FatalException, "Phantom parameterisation not set -- SplitEnergyInVolumes() must be called first");
|
||||
}
|
||||
G4int voxelID;
|
||||
GetVoxelID(stepNo, voxelID);
|
||||
return thePhantomParam->GetMaterial(voxelID);
|
||||
|
||||
Reference in New Issue
Block a user