63 G4cout <<
"\nDicomPhantomZSliceMerged::Checking "
66 G4bool uniformSliceThickness =
true;
80 if(uniformSliceThickness) {
86 std::map<G4double,DicomPhantomZSliceHeader*>::iterator ite0 =
fSlices.begin();
87 std::map<G4double,DicomPhantomZSliceHeader*>::iterator ite1 =
fSlices.begin();
88 std::map<G4double,DicomPhantomZSliceHeader*>::iterator ite2 =
fSlices.begin();
92 for(; ite2 !=
fSlices.end(); ++ite0, ++ite1, ++ite2) {
100 G4double real_distance = real_max_distance + real_min_distance;
102 if(real_distance != stated_distance) {
103 unsigned int sliceNum = std::distance(
fSlices.begin(),ite1);
104 G4cout <<
"\tDicomPhantomZSliceMerged::CheckSlices - \
105 Slice Distance Error in slice [" << sliceNum
106 <<
"]: Real Distance = "
108 <<
" mm, Stated Distance = " << stated_distance/
mm <<
G4endl;
116 if(uniformSliceThickness) {
120 if(static_cast<unsigned int>(std::distance(
fSlices.begin(),ite2)+1)==
125 if(uniformSliceThickness) {
134 std::map<G4double,DicomPhantomZSliceHeader*>::iterator ite =
fSlices.begin();
136 ite->second->DumpToFile();
std::map< G4double, DicomPhantomZSliceHeader * > fSlices
Definition of the DicomPhantomZSliceMerged class.
~DicomPhantomZSliceMerged()
G4GLOB_DLL std::ostream G4cout
DicomPhantomZSliceMerged()