Skip to content

nuRiceLab/OpticalSims

Repository files navigation

GEANT4 with GDML + Opticks Simulation Example

Overview

This repository provides a hybrid CPU–GPU simulation environment integrating:

  • Geant4: Particle transport and detector simulation
  • Opticks: GPU-accelerated optical photon simulation

The workflow enables fast optical photon propagation on GPUs while retaining Geant4’s CPU-based handling of all other particles.


⚙️ Prerequisites

  • CUDA Toolkit 11.7 (Tested)
  • NVIDIA GPU with OptiX support (7.5) (Tested)
  • Geant4 (with GDML support enabled)
  • Opticks
  • ROOT (for output handling and visualization)

🛠️ Installation

1. Clone Repositories

git clone https://github.com/nuRiceLab/OpticalSims
cd OpticalSims

2. Compile

mkdir build && cd build && cmake -DWith_Opticks=true -DWITH_GEANT4_VIS=true ..
make -j2

3. Run in Interactive Mode

./gdml_det i GDML/dune10kt_v5_refactored_1x2x6_nowires.gdml g04.mac

dune10kt_v5_refactored_1x2x6_nowires.gdml

3. Run in Batch Mode

./gdml_det GDML/dune10kt_v5_refactored_1x2x6_nowires.gdml g04.mac

About

Optical simulations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages