misc./Software

TOPAS user extension 사용하기

medical physicist 2023. 11. 29. 17:20

README.txt 에서 해당 부분만 발췌하면 아래와 같다:

Place your TOPAS extension code into a directory that is NOT inside of the topas directory

5c) Build your New TOPAS:
Place your TOPAS extension code into a directory that is NOT inside of the topas directory.
macOS:   we suggest /Applications/topas_extensions
Linux: we suggest ~/topas_extensions

Newest Macs with the M1 chip:
cd /Applications/topas
unzip Geant4Headers.zip
cmake -DTOPAS_EXTENSIONS_DIR=/Applications/topas_extensions -DCMAKE_OSX_ARCHITECTURES=x86_64
make

Other Macs:
cd /Applications/topas
unzip Geant4Headers.zip
cmake -DTOPAS_EXTENSIONS_DIR=/Applications/topas_extensions
make

Linux:
cd ~/topas
unzip Geant4Headers.zip
cmake -DTOPAS_EXTENSIONS_DIR=~/topas_extensions
make

SMC nozzle 관련된 user extension 들 사용할 때 참고.