Skip to content
Discussion options

You must be logged in to vote

All dose calculation algorithms in matRad are now implemented in separate classes. The TOPAS Engine is, for example, here:
https://github.com/e0404/matRad/blob/a5b8762da006ff78702f7d4065bb0bf7c110047d/doseCalc/%2BDoseEngines/matRad_TopasMCEngine.m

Everything that is a defined property in this class can be set via pln.propDoseCalc and will then be used for dose calculation. The following sequence of parameters

pln.propDoseCalc.engine = 'TOPAS';
pln.propDoseCalc.externalCalculation = true;
pln.propDoseCalc.numHistoriesDirect = 1e6;
resultGUI_MC = matRad_calcDoseDirect(ct,stf,pln,cst,resultGUI.w);

Will write the TOPAS parameter files into the MCrun folder. There will be an error thrown after…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Yuri-HubL
Comment options

@wahln
Comment options

@Yuri-HubL
Comment options

@wahln
Comment options

Answer selected by Yuri-HubL
@Yuri-HubL
Comment options

@wahln
Comment options

@Yuri-HubL
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants