Skip to content

Commit

Permalink
Update matRad_TopasMCEngine.m
Browse files Browse the repository at this point in the history
  • Loading branch information
JenHardt committed Mar 1, 2024
1 parent fe86076 commit 43af419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doseCalc/+DoseEngines/matRad_TopasMCEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,7 @@ function writeStfFields(obj,ct,stf,w,baseData)
fprintf(fileID,num2str([dataTOPAS.energySpread]));
fprintf(fileID,'\n');

if isfield(stf.ray, 'collimation')
if isfield([stf.ray], 'collimation')
% Use field width for now
fprintf(fileID,'d:So/PencilBeam/BeamPositionSpreadX = %d mm\n', stf(1).ray.collimation.fieldWidth);
fprintf(fileID,'d:So/PencilBeam/BeamPositionSpreadY = %d mm\n', stf(1).ray.collimation.fieldWidth);
Expand Down Expand Up @@ -2106,7 +2106,7 @@ function writePatient(obj,ct,pln)
% Write material converter
switch obj.materialConverter.mode
case 'RSP' % Relative stopping power converter
rspHlut = matRad_loadHLUT(ct,pln);
rspHlut = matRad_loadHLUT(ct,obj.radiationMode);
min_HU = rspHlut(1,1);
max_HU = rspHlut(end,1);

Expand Down

0 comments on commit 43af419

Please sign in to comment.