[Gate-users] Multi-System Digitizer

Miriam Dixon miriam.gatemc at gmail.com
Tue Jul 28 05:49:02 CEST 2020


Hello GATE-users,

I am trying to set up a four-head SPECT system by creating two 2-head
systems, SpectHead1 and SpectHead2, both using the built in SPECThead
system. I have found the online documentation outlining how to do this, but
I am getting an error I am not sure how to fix. The error does not occur if
I run the simulation only using SpectHead1 or only using SpectHead2, but
does occur if they are both included. This indicates there is something
wrong in how they interact within the simulation - does anyone have a
suggestion of what I could do to fix this?

The error message is:
*** Break *** segmentation violation

The lines below might hint at the cause of the crash.

#5  0x0000564fdfdac8ed in GateDeadTime::ProcessOnePulse(GatePulse const*,
GatePulseList&) ()

#6  0x0000564fe01d7594 in
GateVPulseProcessor::ProcessPulseList(GatePulseList const*) ()

#7  0x0000564fe0138f9d in GatePulseProcessorChain::ProcessPulseList() ()

#8  0x0000564fdfdc64ac in GateDigitizer::DigitizePulses() ()

#9  0x0000564fdfdc6875 in GateDigitizer::Digitize() ()

#10 0x0000564fdff4c545 in GateOutputMgr::RecordEndOfEvent(G4Event const*) ()

#11 0x0000564fdfd39a5b in GateEventAction::EndOfEventAction(G4Event const*)
()

#12 0x00007fdabbec3be2 in G4EventManager::DoProcessing(G4Event*) () at
/usr/share/geant4/geant4-install/lib/libG4event.so

#13 0x00007fdabc163585 in G4RunManager::ProcessOneEvent(int) () at
/usr/share/geant4/geant4-install/lib/libG4run.so

#14 0x00007fdabc16167b in G4RunManager::BeamOn(int, char const*, int) () at
/usr/share/geant4/geant4-install/lib/libG4run.so

#15 0x0000564fe01f8bf1 in GateApplicationMgr::StartDAQ() ()

#16 0x0000564fe01ffb50 in
GateApplicationMgrMessenger::SetNewValue(G4UIcommand*, G4String) ()

#17 0x00007fdab5e3e3bc in G4UIcommand::DoIt(G4String) () at
/usr/share/geant4/geant4-install/lib/libG4intercoms.so

#18 0x00007fdab5e5fc4c in G4UImanager::ApplyCommand(char const*) () at
/usr/share/geant4/geant4-install/lib/libG4intercoms.so

#19 0x00007fdab5e29c77 in G4UIbatch::ExecCommand(G4String const&) () at
/usr/share/geant4/geant4-install/lib/libG4intercoms.so

#20 0x00007fdab5e2bc9e in G4UIbatch::SessionStart() () at
/usr/share/geant4/geant4-install/lib/libG4intercoms.so

#21 0x00007fdab5e6114c in G4UImanager::ExecuteMacroFile(char const*) () at
/usr/share/geant4/geant4-install/lib/libG4intercoms.so

#22 0x00007fdab5e4b9cb in G4UIcontrolMessenger::SetNewValue(G4UIcommand*,
G4String) () at /usr/share/geant4/geant4-install/lib/libG4intercoms.so

#23 0x00007fdab5e3e3bc in G4UIcommand::DoIt(G4String) () at
/usr/share/geant4/geant4-install/lib/libG4intercoms.so

#24 0x00007fdab5e5fc4c in G4UImanager::ApplyCommand(char const*) () at
/usr/share/geant4/geant4-install/lib/libG4intercoms.so

#25 0x0000564fdfb48c16 in main ()


I have included an outline of how I created the two systems below, if that
helps identify the problem.


Cheers,

Miriam


Below is a brief outline of what I have done to create the two systems:
*## Detector System 1*
/gate/world/daughters/name SpectHead1
/gate/world/daughters/systemType    SPECThead
/gate/world/daughters/insert box
/gate/SpectHead1/geometry/setXLength 57.6 cm
/gate/SpectHead1/geometry/setYLength 44.6 cm
/gate/SpectHead1/geometry/setZLength 18 cm
/gate/SpectHead1/vis/setColor white
/gate/SpectHead1/setMaterial Air
/gate/SpectHead1/vis/forceWireframe
/gate/SpectHead1/repeaters/insert ring
/gate/SpectHead1/ring/setPoint1 0 0 0
/gate/SpectHead1/ring/setPoint2 0 1 0
/gate/SpectHead1/ring/enableAutoRotation
/gate/SpectHead1/ring/setFirstAngle 0 deg
/gate/SpectHead1/ring/setAngularSpan 76 deg
/gate/SpectHead1/ring/setRepeatNumber 2

*## Detector System 2*
/gate/world/daughters/name SpectHead2
/gate/world/daughters/systemType SPECThead
/gate/world/daughters/insert box
/gate/SpectHead2/geometry/setXLength 57.6 cm
/gate/SpectHead2/geometry/setYLength 44.6 cm
/gate/SpectHead2/geometry/setZLength 18 cm
/gate/SpectHead2/vis/setColor white
/gate/SpectHead2/setMaterial Air
/gate/SpectHead2/vis/forceWireframe
/gate/SpectHead2/repeaters/insert ring
/gate/SpectHead2/ring/setPoint1 0 0 0
/gate/SpectHead2/ring/setPoint2 0 1 0
/gate/SpectHead2/ring/enableAutoRotation
/gate/SpectHead2/ring/setFirstAngle 180 deg
/gate/SpectHead2/ring/setAngularSpan 76 deg
/gate/SpectHead2/ring/setRepeatNumber 2

*....further details about the head setup (can be provided if needed)....*

*## Digitizer System 1 *
/gate/digitizer/Singles/insert systemFilter
/gate/digitizer/Singles/systemFilter/selectSystem SpectHead1
/gate/digitizer/Singles/insert adder
/gate/digitizer/Singles/insert readout
/gate/digitizer/Singles/readout/setDepth 1
/gate/digitizer/Singles/insert spblurring
/gate/digitizer/Singles/spblurring/setSpresolution 3.97 mm
/gate/digitizer/Singles/spblurring/verbose 0
*##....further details about the digitizer (can be provided if needed)....*
/gate/digitizer/Singles/insert deadtime
/gate/digitizer/Singles/deadtime/setDeadTime 1650 ns
/gate/digitizer/Singles/deadtime/setMode paralysable
/gate/digitizer/Singles/deadtime/chooseDTVolume crystal_volume

*## Digitizer System 2*
/gate/digitizer/name    Singles2
/gate/digitizer/insert  singleChain
/gate/digitizer/Singles2/insert systemFilter
/gate/digitizer/Singles2/systemFilter/selectSystem SpectHead2
/gate/digitizer/Singles2/name adder2
/gate/digitizer/Singles2/insert adder
/gate/digitizer/Singles2/name readout2
/gate/digitizer/Singles2/insert readout
/gate/digitizer/Singles2/readout2/setDepth 1
/gate/digitizer/Singles2/name spblurring2
/gate/digitizer/Singles2/insert spblurring
/gate/digitizer/Singles2/spblurring2/setSpresolution 3.97 mm
/gate/digitizer/Singles2/spblurring2/verbose 0
*##....further details about the digitizer (can be provided if needed).... *
/gate/digitizer/Singles2/name deadtime2
/gate/digitizer/Singles2/insert deadtime
/gate/digitizer/Singles2/deadtime2/setDeadTime 1650 ns
/gate/digitizer/Singles2/deadtime2/setMode paralysable
/gate/digitizer/Singles2/deadtime2/chooseDTVolume crystal_volume2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200728/0ee5dd85/attachment.html>


More information about the Gate-users mailing list