G4 adv example 'brachytherapy' root macro error

Hello.
I thank you in advance for any help.
I am trying to use Geant4’s advanced example “brachytherapy”. After running a simulation I can get the file “brachytherapy.root”.
Using Root I am able to use “macro.C” and “plot_primary.C” to generate the graphs.
(I load the file with ’ root brachytherapy.root’, then ‘.x macro.C’)
My problem is when I try to make the comparison between the generated data and the reference data.
In the ‘comparison’ folder is the ‘TG43_relative_dose.C’ which should be used to transform the file ‘brachytherapy.root’ to ‘geant4_dose.txt’ needed to do the comparison.

I am unable to use ‘TG43_relative_dose.C’.
I load the file with ’ root brachytherapy.root’, then ‘.L TG43_relative_dose.C’ and then ‘TG43_relative_dose(“iodine”, “gamma”)’.
I also tryed ‘Reade(“iodine”, “gamma”)’ and ‘Read’, in the first case I always get an error, in the second case the file is just written to the screen.
This is probably something trivial, but after many, many attempts I have not been able to figure out where I am going wrong.

root [0] 
Attaching file brachytherapy.root as _file0...
(TFile *) 0x5d03a188e530
root [1] .L TG43_relative_dose.C
root [2] TG43_relative_dose("iodine","gamma")
input_line_30:2:3: error: use of undeclared identifier 'TG43_relative_dose'
 (TG43_relative_dose("iodine", "gamma"))
  ^
Error in <HandleInterpreterException>: Error evaluating expression (TG43_relative_dose("iodine", "gamma"))
Execution of your code was aborted.

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