65 G4cout <<
"\nDicomPhantomZSliceMerged::Checking "
66 << fSlices.size() <<
" fSlices..." <<
G4endl;
68 G4bool uniformSliceThickness =
true;
70 if(fSlices.size() > 1) {
71 if(fSlices.size() == 2) {
82 if(uniformSliceThickness) {
88 std::map<G4double,DicomPhantomZSliceHeader*>::iterator ite0 = fSlices.begin();
89 std::map<G4double,DicomPhantomZSliceHeader*>::iterator ite1 = fSlices.begin();
90 std::map<G4double,DicomPhantomZSliceHeader*>::iterator ite2 = fSlices.begin();
94 for(; ite2 != fSlices.end(); ++ite0, ++ite1, ++ite2) {
102 G4double real_distance = real_max_distance + real_min_distance;
104 if(real_distance != stated_distance) {
105 unsigned int sliceNum = std::distance(fSlices.begin(),ite1);
106 G4cout <<
"\tDicomPhantomZSliceMerged::CheckSlices - \
107 Slice Distance Error in slice [" << sliceNum <<
"]: Real Distance = "
109 <<
" mm, Stated Distance = " << stated_distance/
mm <<
G4endl;
113 if(ite0 == fSlices.begin()) {
117 if(uniformSliceThickness) {
121 if(static_cast<unsigned int>(std::distance(fSlices.begin(), ite2)+1) ==
126 if(uniformSliceThickness) {
135 std::map<G4double,DicomPhantomZSliceHeader*>::iterator ite = fSlices.begin();
136 for(ite = fSlices.begin(); ite != fSlices.end(); ++ite) {
137 ite->second->DumpToFile();
Definition of the DicomPhantomZSliceMerged class.
~DicomPhantomZSliceMerged()
G4GLOB_DLL std::ostream G4cout
DicomPhantomZSliceMerged()