Problem 1303

Summary: the new density is not correct in DicomDetectorConstruction.cc
Product: Examples/Extended Reporter: Fada Guan <guanfada>
Component: medical/DICOMAssignee: Pedro.Arce
Status: RESOLVED INVALID    
Severity: trivial    
Priority: P5    
Version: 9.5   
Hardware: All   
OS: All   

Description Fada Guan 2012-04-13 22:53:57 CEST
on line 372  in DicomDetectorConstruction.cc

densityBin = fDensityDiffs[mateID] * (G4int(density/fDensityDiffs[mateID])+0.5);

this new density calculated is not correct.

For example, the density of lungInhale should be lower than lungExhale.
However, the above conversion can result in a result that a new lungInhale material has the same density as a new lungExhale material.

part of the output information are:

Material : LungInhale__0.4499999881

Material : LungExhale__0.4499999881
Comment 1 Pedro.Arce 2012-08-23 13:55:26 CEST
I am not the author of this code, but I do not see any problem in it. My suspicion is that in your DICOM file you have two voxels assigned to different materials but the densities are the same (or close). Can you please check it?

Pedro
Comment 2 Pedro.Arce 2012-10-21 10:33:29 CEST
I am closing this problem, as I have received no answer to my request of more information.