test with cli - topasmc/dicom-interface GitHub Wiki

3. Test with command line tool


The aim of this step is to check your treatment_machine, "RBE" is working in RTI context.

Compile your treatment machine with test/session/treatment_session.cpp.

$ cd /<your_sw_path>/rti.git/test/session/
$ cmake .

If you run with your plan, you will see the histories generated by RTI interface. --pph -1 option means that all beamlets produces only one history regardless of its conversion rule. This option is useful to do a quick check whether your implementation works.

Test direct class

./treatment_session --rti ../../treatment_machines/rbe/rtip_demo.dcm --bnumber 1 --pph -1 --output hist.txt

Test machine descrption file

./treatment_session --rti ../../treatment_machines/rbe/rtip_demo.dcm --bnumber 1 --pph -1 --machine pbs:../../treatment_machines/pbs/rbe_1p1.table --output hist.txt

If everything works good, you are ready to run TOPAS simulations with your new treatment machine.