42: fNoVoxelsX(0),fNoVoxelsY(0),fNoVoxelsZ(0),
43 fMinX(0),fMinY(0),fMinZ(0),
44 fMaxX(0),fMaxY(0),fMaxZ(0),
45 fFilename(fname),fSliceLocation(0)
136 G4cerr <<
"DicomPhantomZSliceHeader error adding two slice headers:\
137 !!! Different number of voxels: "
142 G4Exception(
"DicomPhantomZSliceHeader::DicomPhantomZSliceHeader",
143 "",FatalErrorInArgument,
"");
148 G4cerr <<
"DicomPhantomZSliceHeader error adding two slice headers:\
149 !!! Different extensions: "
155 G4Exception(
"DicomPhantomZSliceHeader::operator+",
"",
156 FatalErrorInArgument,
"");
162 G4cerr <<
"DicomPhantomZSliceHeader error adding two slice headers:\
163 !!! Different number of materials: " <<
fMaterialNames.size() <<
" =? "
164 << fMaterialNames2.size() << G4endl;
165 G4Exception(
"DicomPhantomZSliceHeader::operator+",
"",
166 FatalErrorInArgument,
"");
170 G4cerr <<
"DicomPhantomZSliceHeader error adding two slice headers:\
171 !!! Different material number " << ii <<
" : "
173 << fMaterialNames2[ii] << G4endl;
174 G4Exception(
"DicomPhantomZSliceHeader::operator+",
"",
175 FatalErrorInArgument,
"");
181 G4GeometryTolerance::GetInstance()->GetRadialTolerance() &&
183 G4GeometryTolerance::GetInstance()->GetRadialTolerance() ){
184 G4cerr <<
"DicomPhantomZSliceHeader error adding two slice headers:!!!\
185 Slices are not contiguous in Z "
189 G4Exception(
"DicomPhantomZSliceHeader::operator+",
"",
190 FatalErrorInArgument,
"");
253 G4String descript =
"DicomPhantomZSliceHeader::DumpToFile: could not open "
255 G4Exception(descript.c_str(),
"", FatalException,
"");
262 for(G4int i = 0; i < nMaterials; ++i) {
266 G4String descript =
"String : " + str1 +
" supposed to be integer";
267 G4Exception(
"DicomPhantomZSliceHeader::ReadDataFromFile - error in \
268 formatting: missing material index",
"", FatalException,descript.c_str());
270 G4int index = G4s2n<G4int>(str1);
271 if(index > nMaterials || index < 0) {
272 G4String descript =
"Index : " + str1;
273 G4Exception(
"DicomPhantomZSliceHeader::ReadDataFromFile - error:\
274 bad material index",
"", FatalException,descript.c_str());
281 G4double tmpMinX, tmpMinY, tmpMinZ;
282 G4double tmpMaxX, tmpMaxY, tmpMaxZ;
284 in >> tmpMinX >> tmpMaxX;
285 in >> tmpMinY >> tmpMaxY;
286 in >> tmpMinZ >> tmpMaxZ;