Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matRad_calcDoseDirectMC(ct,stf,pln,cst,dij.bixelNum) #742

Open
12echi opened this issue Jul 2, 2024 · 1 comment
Open

matRad_calcDoseDirectMC(ct,stf,pln,cst,dij.bixelNum) #742

12echi opened this issue Jul 2, 2024 · 1 comment

Comments

@12echi
Copy link

12echi commented Jul 2, 2024

resultGUI = matRad_calcDoseDirectMC(ct,stf,pln,cst,dij.bixelNum)
Class matRad_MCsquareConfig has been loaded to pln.propMC!
81 switch pln.propMC.engine
文件: matRad_calcParticleDoseMCtopas.m 行: 149 列: 69
运算符的使用无效。

出错 matRad_calcDoseDirectMC (第 85 行)
dij = matRad_calcParticleDoseMCtopas(ct,stf,pln,cst,calcDoseDirect);

This problem occurs in the matRad_calcDoseDirectMC function after the breakpoint is switched from "pln.propMC.engine" to topas before selecting topas and MCsquare. Is it a topas path problem or other problems? How to solve it? Thank you very much

@wahln
Copy link
Contributor

wahln commented Jul 2, 2024

Which branch are you using exactly (i.e., what is the output of matRad_rc)?

The current version on dev / dev_varRBErobOpt introduces a new interface. To unify dose calculation under one call, you now use the functions dij = matRad_calcDoseInfluence(...) or resultGUI = matRad_calcDoseForward(...) .
Before calling these functions, you can set the dose engine by changing pln.propDoseCalc.engine, e.g., pln.propDoseCalc.engine = 'TOPAS'. Further, you can set parameters used for this engines in pln.propDoseCalc, e.g., to change the histories for forward calculation you say pln.propDoseCalc.numHistoriesDirect = 1e7.

You can check for the available dose calculation engines with:
DoseEngines.matRad_DoseEngineBase.getAvailableEngines().shortName
If you already have a pln with a radiationMode and a machine set, you can also pass this to the function
DoseEngines.matRad_DoseEngineBase.getAvailableEngines(pln).shortName
to only show engines available for this modality-machine combination.

The older functions like calcDoseDirect(MC) are still supported, but default to the implementations they called before. calcDoseDirectMC will always try to use MCsquare (as this is default behavior in the previous release), while calcDoseDirect will always use the pencil-beam implementations (SVD for photons, HongPB for particles).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants