About modification in B1 example

Hello
I did modifications in the B1 example to create 3 scoring Volumes but now i am getting dose values twice the value that was expected. I am expecting an error while defining SteppingAction. Please see the attachment and help me to find the error.
SteppingAction.cc (5.0 KB)

Dear Rohit Yadav,

The first 3 if statements should be without the else in front of them in order to get the scoring volumes in case they are not defined (depending on the geometry after 3 steps you should have all of them, but…).

In the last 3 if statements you should use the == condition instead of the !=
Additionally I would suggest that for these statements you use the else statement also.

1 Like

Thanks for the help. It worked.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.