1. 例子里先定义一个60度的"扇形":
/gate/crystal/geometry/setPhiStart 0 deg
/gate/crystal/geometry/setDeltaPhi 60 deg
然后再用repeater扩展成360度:
/gate/crystal/repeaters/insert ring
/gate/crystal/ring/setRepeatNumber 6
这样和直接定义360度(setDeltaPhi 360 deg)有没有区别?
2. 运行例子时 attach crystal 出错:
/vis/scene/notifyHandlers scene-0
/gate/systems/CPET/crystal/attach crystal
[crystal::IsValidAttachmentRequest]:
*** Break *** bus error/Users/cao/G4work/9199: No such file or directory.Attaching to process 9199. Reading symbols for shared libraries . done
Reading symbols for shared libraries ........................................................................................................... done
0x90032884 in wait4 ()
========== STACKS OF ALL THREADS ==========
Thread 1 (process 9199 thread 0xd03):
#0 0x90032884 in wait4 ()
#1 0x90053550 in system ()
#2 0x0213c018 in TUnixSystem::StackTrace ()
#3 0x0213fdd4 in TUnixSystem::DispatchSignals ()
#4 <signal handler called>
#5 0x003c8a04 in GateBoxCreatorComponent::IsValidAttachmentRequest () at /Applications/geant4.8.1.p01/source/global/management/include/G4ReferenceCountedHandle.hh:315
#6 0x001989cc in GateSystemComponent::SetInserter ()
#7 0x002f8174 in GateSystemComponentMessenger::SetNewValue ()
#8 0x0004adbc in G4UIcommand::DoIt ()
#9 0x00008468 in G4UImanager::ApplyCommand ()
#10 0x00050fbc in G4UIbatch::SessionStart ()
#11 0x000070dc in G4UImanager::ExecuteMacroFile ()
#12 0x0004f0a0 in G4UIcontrolMessenger::SetNewValue ()
#13 0x0004adbc in G4UIcommand::DoIt ()
#14 0x00008468 in G4UImanager::ApplyCommand ()
#15 0x0000f334 in G4UIterminal::ExecuteCommand ()
#16 0x00010470 in G4UIterminal::SessionStart ()
#17 0x00004e14 in main ()
搜索Gate-user找到类似的错误,但是也没有看到解决的办法:
I am trying to make a simulation of the scanner based on CPET system. In
order to define the CPET system, I am followng the GATE manual (version
3.0.0. from 27 July 2006). The problem is, that after the definition of
the CPET system, Gate crashes at the step:
/gate/systems/CPET/crystal/attach crystal
and gives the following error message:
---------------------------------------------
*** Break *** segmentation violation
Generating stack trace...
0x081df936 in
GateBoxCreatorComponent::IsValidAttachmentRequest(GateAutoplacedCreatorInserter*)
const + 0x46 from Gate
0x0826b040 in GateSystemComponent::SetInserter(GateVObjectInserter*) +
0x50 from Gate
0x0830492c in GateSystemComponentMessenger::SetNewValue(G4UIcommand*,
G4String) + 0x7c from Gate
0x088aac24 in G4UIcommand::DoIt(G4String) + 0xaa4 from Gate
0x088b4aa7 in G4UImanager::ApplyCommand(char const*) + 0x4f7 from Gate
0x088c1ed9 in G4UIbatch::SessionStart() + 0x199 from Gate
0x088b3451 in G4UImanager::ExecuteMacroFile(char const*) + 0x41 from Gate
0x088c31b6 in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) +
0xe6 from Gate
0x088aac24 in G4UIcommand::DoIt(G4String) + 0xaa4 from Gate
0x088b4aa7 in G4UImanager::ApplyCommand(char const*) + 0x4f7 from Gate
0x088c1ed9 in G4UIbatch::SessionStart() + 0x199 from Gate
0x088b3451 in G4UImanager::ExecuteMacroFile(char const*) + 0x41 from Gate
0x088c31b6 in G4UIcontrolMessenger::SetNewValue(G4UIcommand*, G4String) +
0xe6 from Gate
0x088aac24 in G4UIcommand::DoIt(G4String) + 0xaa4 from Gate
0x088b4aa7 in G4UImanager::ApplyCommand(char const*) + 0x4f7 from Gate
0x084236cc in G4UIterminal::ExecuteCommand(G4String) + 0x4c from Gate
0x08423d5a in G4UIterminal::SessionStart() + 0x5a from Gate
0x08186403 in main + 0x353 from Gate
0x017637e4 in __libc_start_main + 0xdc from /lib/libc.so.6
0x08184fb1 in TApplicationImp::ShowMembers(TMemberInspector&, char*) +
0xb5 from Gate
Abort
http://lists.healthgrid.org/archives/gate-users/2007-January/001631.html
-------------------------------------------