65 G4cout <<
"\nDicomPhantomZSliceMerged::Checking "
68 G4bool uniformSliceThickness =
true;
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
108 <<
"]: Real Distance = "
110 <<
" mm, Stated Distance = " << stated_distance/
mm <<
G4endl;
118 if(uniformSliceThickness) {
122 if(static_cast<unsigned int>(std::distance(
fSlices.begin(),ite2)+1)==
127 if(uniformSliceThickness) {
136 std::map<G4double,DicomPhantomZSliceHeader*>::iterator ite =
fSlices.begin();
138 ite->second->DumpToFile();
std::map< G4double, DicomPhantomZSliceHeader * > fSlices
Definition of the DicomPhantomZSliceMerged class.
~DicomPhantomZSliceMerged()
G4GLOB_DLL std::ostream G4cout
DicomPhantomZSliceMerged()