GateContrib icon indicating copy to clipboard operation
GateContrib copied to clipboard

GateContrib-mastes-Benchmark-imaging-CT-classic - benchmarkCT.root File Works Normally, but benchmarkCT_000.dat Projection File Is Empty (All Zeros)

Open xie-pixel opened this issue 11 months ago • 0 comments

I hope this message finds you well! I'm encountering a confusing issue while running the Classic CT benchmark from the official GateContrib repository, and I’d greatly appreciate your insights.

Environment Details Gate version: 9.4.1 Geant4 version: 11.3.0 ROOT version: (e.g., 6.26/06) OS: Ubuntu 22.04 (running on VirtualBox) Benchmark source: GateContrib-master/imaging/CT/classic

Issue Description When I run this command(Gate benchmarkCT.mac) in the directory(/GateContrib-master/imaging/CT/classic/ )with the default output.mac , the simulation completes without obvious errors, but there’s a critical inconsistency: (1)The generated ROOT file (benchmarkCT.root) works perfectly: it contains valid Hits/Singles data (verified via ROOT browser), which confirms that particles are hitting the detector and the core simulation flow is functional. (2)However, the output projection file (benchmarkCT_000.dat, generated by the imageCT actor) is always empty—all values are zero when checked with MATLAB/Python, and the pixel count statistics show no non-zero entries.

The simulation output results of Gate are as follows:

entering [GateToImageCT::RecordBeginOfRun]

FrameID = 0 leaving [GateToImageCT::RecordBeginOfRun] WARNING: Scene "none" not found. /vis/scene/list to see scenes. entering [GateToImageCT::RecordEndOfRun] --> Image written to the raw file benchmarkCT_000.dat leaving [GateToImageCT::RecordEndOfRun] WARNING: command "/vis/viewer/update" could not be applied: no current viewer. [Acquisition-0] Slice 1 from 90 to 180 s [slice=90 s] entering [GateToImageCT::RecordBeginOfRun]

FrameID = 1 leaving [GateToImageCT::RecordBeginOfRun] WARNING: Scene "none" not found. /vis/scene/list to see scenes. entering [GateToImageCT::RecordEndOfRun] --> Image written to the raw file benchmarkCT_001.dat leaving [GateToImageCT::RecordEndOfRun] WARNING: command "/vis/viewer/update" could not be applied: no current viewer. User simulation time (sec) := 44.66 Real simulation time (sec) := 54.266 System simulation time (sec) := 0.26 [Core-0] End of macro benchmarkCT.mac GateOutputMgr deleting... Graphics systems deleted. Visualization Manager deleting...

This is output.mac ######## ROOT ######## /gate/output/root/enable /gate/output/root/setFileName benchmarkCT /gate/output/root/setRootHitFlag 0 /gate/output/root/setRootSinglesFlag 1 /gate/output/root/setRootNtupleFlag 0 /gate/output/verbose 2 ############ CT Image ############ /gate/output/imageCT/verbose 2 /gate/output/imageCT/enable /gate/output/imageCT/setFileName benchmarkCT /gate/random/setEngineName MersenneTwister /gate/output/imageCT/setStartSeed 567489

xie-pixel avatar Dec 19 '25 07:12 xie-pixel