61{
62 G4cout << "\nDicomPhantomZSliceMerged::Checking "
63 <<
fSlices.size() <<
" fSlices..." << G4endl;
64
65 G4bool uniformSliceThickness = true;
66
71
73
77
78
79 if(uniformSliceThickness) {
82 }
83 }
84 } else {
88 ++ite1;
89 ++ite2; ++ite2;
90
91 for(; ite2 !=
fSlices.end(); ++ite0, ++ite1, ++ite2)
92 {
100 G4double real_distance = real_max_distance + real_min_distance;
102 if(real_distance != stated_distance) {
103 uintmax_t sliceNum = std::distance(
fSlices.begin(),ite1);
104 G4cout << "\tDicomPhantomZSliceMerged::CheckSlices - \
105 Slice Distance Error in slice [" << sliceNum
106 << "]: Real Distance = "
107 << real_distance/mm
108 << " mm, Stated Distance = " << stated_distance/mm << G4endl;
111
114
115
116 if(uniformSliceThickness) {
118
119 }
120 if(
static_cast<unsigned int>(std::distance(
fSlices.begin(),ite2)+1)==
123
124
125 if(uniformSliceThickness) {
127 }
128 }
129 }
130 }
131 }
132 G4cout << G4endl;
133
135 ite->second->DumpToFile();
136 }
137
138}