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 <<
"]: Real Distance = "
109 <<
" mm, Stated Distance = " << stated_distance/
mm <<
G4endl;
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();
137 ite->second->DumpToFile();
std::map< G4double, DicomPhantomZSliceHeader * > fSlices
Definition of the DicomPhantomZSliceMerged class.
~DicomPhantomZSliceMerged()
G4GLOB_DLL std::ostream G4cout
DicomPhantomZSliceMerged()