Skip to content

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

@xie-pixel

Description

@xie-pixel

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions