Skip to content

Commit

Permalink
Add option for TOPAS RSP conversion method
Browse files Browse the repository at this point in the history
  • Loading branch information
burigolucas committed Jan 30, 2021
1 parent dc86a85 commit d9a1199
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion MatRad_Config.m
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,11 @@ function setDefaultProperties(obj)

%obj.propMC.default_photon_engine = 'ompMC';
obj.propMC.default_proton_engine = 'MCsquare';
% Default settings for TOPAS
obj.propMC.topas_defaultNumBatches = 5;

obj.propMC.topas_materialConversion = 'RSP';
obj.propMC.topas_rsp_basematerial = 'G4_WATER';

obj.disableGUI = false;


Expand Down Expand Up @@ -205,7 +208,10 @@ function setDefaultPropertiesForTesting(obj)

%obj.propMC.default_photon_engine = 'ompMC';
obj.propMC.default_proton_engine = 'MCsquare';
% Default settings for TOPAS
obj.propMC.topas_defaultNumBatches = 5;
obj.propMC.topas_materialConversion = 'RSP';
obj.propMC.topas_rsp_basematerial = 'G4_WATER';

obj.disableGUI = true;
end
Expand Down
4 changes: 4 additions & 0 deletions matRad_calcParticleDoseMCtopas.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@

load([pln.radiationMode,'_',pln.machine]);
topasConfig = MatRad_TopasConfig();

topasConfig.materialConversion = matRad_cfg.propMC.topas_materialConversion;
topasConfig.rsp_basematerial = matRad_cfg.propMC.topas_rsp_basematerial;

topasBaseData = MatRad_TopasBaseData(machine,stf);%,TopasConfig);

%Collect weights
Expand Down

0 comments on commit d9a1199

Please sign in to comment.