27 #include "dcmtk/dcmrt/seq/drtcos.h"
37 OFVector<Float64> fvfloat;
39 G4cout <<
" DicomBeamCompensator::DicomBeamCompensator " <<
G4endl;
40 cond = bcompItem.getCompensatorNumber(fint);
41 theCompensatorNumber = fint;
44 cond = bcompItem.getCompensatorColumns(fint);
45 theCompensatorColumns = fint;
46 cond = bcompItem.getCompensatorRows(fint);
47 theCompensatorRows = fint;
50 cond = bcompItem.getCompensatorPixelSpacing(fvfloat);
51 theCompensatorPixelSpacing = fvfloat;
53 cond = bcompItem.getCompensatorPosition(fvfloat);
54 theCompensatorPosition = fvfloat;
56 cond = bcompItem.getCompensatorTransmissionData(fvfloat);
57 if( cond.good() ) theCompensatorTransmissionData = fvfloat;
58 cond = bcompItem.getCompensatorThicknessData(fvfloat);
59 if( cond.good() ) theCompensatorThicknessData = fvfloat;
61 cond = bcompItem.getCompensatorTrayID(fstr);
62 cond = bcompItem.getCompensatorType(fstr);
64 cond = bcompItem.getMaterialID(fstr);
65 if( cond.good() ) theMaterialID = fstr;
66 cond = bcompItem.getSourceToCompensatorDistance(fvfloat);
67 if( cond.good() ) theSourceToCompensatorDistance = fvfloat;
68 cond = bcompItem.getSourceToCompensatorTrayDistance(ffloat);
69 theSourceToCompensatorTrayDistance = ffloat;
71 cond = bcompItem.getCompensatorDescription(fstr);
72 cond = bcompItem.getCompensatorDivergence(fstr);
73 cond = bcompItem.getCompensatorID(fstr);
74 cond = bcompItem.getCompensatorMountingPosition(fstr);
75 cond = bcompItem.getAccessoryCode(fstr);
89 fout << name <<
"PixelSpacing_1 " << theCompensatorPixelSpacing[0] <<
G4endl;
90 fout << name <<
"PixelSpacing_2 " << theCompensatorPixelSpacing[1] <<
G4endl;
92 fout << name <<
"POSX " << theCompensatorPosition[0] <<
G4endl;
93 fout << name <<
"POSY " << theCompensatorPosition[1] <<
G4endl;
95 fout << name <<
"SourceToCompensatorTrayDistance " << theSourceToCompensatorTrayDistance <<
G4endl;
97 for(
size_t ii = 0; ii < theSourceToCompensatorDistance.size(); ii++ ) {
98 int iCol = ii%theCompensatorColumns;
99 int iRow = ii/theCompensatorColumns;
static G4String ConvertToString(G4bool boolVal)
void DumpToFile(std::ofstream &out)
void Print(std::ostream &out)
G4GLOB_DLL std::ostream G4cout
DicomBeamCompensator(DRTCompensatorSequence::Item bcompItem)