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
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
I am closing this problem, as I have received no answer to my request of more information.