63 G4cout <<
"\nDicomPhantomZSliceMerged::Checking "
64 << fSlices.size() <<
" fSlices..." <<
G4endl;
66 G4bool uniformSliceThickness =
true;
68 if(fSlices.size() > 1) {
69 if(fSlices.size() == 2) {
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;
112 if(ite0 == fSlices.begin()) {
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();
135 for(ite = fSlices.begin(); ite != fSlices.end(); ++ite) {
136 ite->second->DumpToFile();
static constexpr double mm
Definition of the DicomPhantomZSliceMerged class.
~DicomPhantomZSliceMerged()
G4GLOB_DLL std::ostream G4cout
DicomPhantomZSliceMerged()