28 #include "dcmtk/dcmdata/dcfilefo.h"
29 #include "dcmtk/dcmdata/dcdeftag.h"
30 #include "dcmtk/dcmdata/dcpixel.h"
31 #include "dcmtk/dcmdata/dcpxitem.h"
32 #include "dcmtk/dcmdata/dcpixseq.h"
42 std::vector<G4double> dataV;
44 for(
int ii=0; ii<nData; ++ii) {
48 if (dset->findAndGetFloat64(tagKey, data,ii).good() ) {
49 dataV.push_back(data);
50 }
else if (dset->findAndGetUint16(tagKey, datai,ii).good() ) {
51 dataV.push_back(datai);
53 G4cout <<
"ERROR (" << std::showbase
55 << std::setfill(
'0') << std::hex << std::setw(4) << tagKey.getGroup()
56 <<
"," << tagKey.getElement() <<
") "<< std::dec << ii << std::endl;
76 if (dset->findAndGetOFString(tagKey, data).good() ) {
78 G4cout <<
"ERROR (" << std::showbase
80 << std::setfill(
'0') << std::hex << std::setw(4) << tagKey.getGroup() <<
","
81 << tagKey.getElement() <<
") "<< std::dec << std::endl;