<div dir="ltr">Hello, Gate users!<div><br></div><div>I use virtual Gate. I am simulating CT system. I've written several mac-files based on the example_CT. I am trying to run the main macro but an error appears:</div><div><br></div><div><div>[G4] </div><div>[G4] *************************************************************</div><div>[G4] Geant4 version Name: geant4-09-02-patch-03 (29-January-2010)</div><div>[G4] Copyright : Geant4 Collaboration</div><div>[G4] Reference : NIM A 506 (2003), 250-303</div><div>[G4] WWW : <a href="http://cern.ch/geant4">http://cern.ch/geant4</a></div><div>[G4] *************************************************************</div><div>[G4] </div><div>[Core-0] Initialization of geometry</div><div>[Core-0] Initialization of physics</div><div>[Core-0] Initialization of actors</div><div>[Core-0] </div><div>[Core-0] **********************************************************************</div><div>[Core-0] GATE version name: gate_v6.0_p01 </div><div>[Core-0] Copyright : OpenGATE Collaboration </div><div>[Core-0] Reference : Phys. Med. Biol. 49 (2004) 4543-4561 </div><div>[Core-0] WWW : <a href="http://www.opengatecollaboration.org/">http://www.opengatecollaboration.org/</a> </div><div>[Core-0] **********************************************************************</div><div>[Core-0] </div><div>[Core-0] Starting macro benchmarkCT.mac</div><div>[G4] Got standard cmap</div><div>[G4] Window name: viewer-0 (OpenGLStoredX)</div><div>[G4] /tracking/storeTrajectory 1</div><div>[G4] ABSLENGTH</div><div>[G4] MPV[0]: (1.84e-06, 50000)</div><div>[G4] MPV[1]: (4.08e-06, 50000)</div><div>[G4] Done DumpVector of 2 entries </div><div>[G4] RINDEX</div><div>[G4] MPV[0]: (1.84e-06, 1.00028)</div><div>[G4] MPV[1]: (4.08e-06, 1.00028)</div><div>[G4] Done DumpVector of 2 entries </div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>[G4-cerr] ***** COMMAND NOT FOUND </gate/detector1/geometry/setMaterial NaI> *****</div><div>[Gate] Sorry, error in a macro command : abort.</div><div><br></div><div>NaI is presented in GateMaterials.db. The file Materials.xml is in the current directory where all macros are, and also in the parent gate directory.</div><div><br></div><div>Are there any ideas on the solution of this problem? Thanks in advance!</div><div><br></div><div>Below I'm attaching the macro file scanner.mac which is responsible for setting the geometry of the system, and also the main file bencmarkCT.mac:</div><div><br></div><div><b>scanner.mac</b></div><div><br></div><div><div>####################</div><div># Gantry #</div><div>####################</div><div>/gate/world/daughters/name scanner</div><div>/gate/world/daughters/insert cylinder</div><div>/gate/scanner/placement/setTranslation 0. 0. 0. cm</div><div>/gate/scanner/geometry/setRmin 20. cm</div><div>/gate/scanner/geometry/setRmax 50. cm</div><div>/gate/scanner/geometry/setHeight 10. cm</div><div>/gate/scanner/geometry/setPhiStart 0. deg</div><div>/gate/scanner/geometry/setDeltaPhi 360. deg</div><div>/gate/scanner/setMaterial Air</div><div>/gate/scanner/vis/forceSolid</div><div>/gate/scanner/vis/setColor green</div><div><br></div><div>####################</div><div># Whole detector system #</div><div>####################</div><div>/gate/scanner/daughters/name detector1</div><div>/gate/scanner/daughters/insert cylinder</div><div>/gate/detector1/geometry/setRmin 20. cm</div><div>/gate/detector1/geometry/setRmax 21. cm</div><div>/gate/detector1/geometry/setHeight 2. cm</div><div>/gate/detector1/geometry/setPhiStart 225. deg</div><div>/gate/detector1/geometry/setDeltaPhi 315. deg</div><div>/gate/detector1/geometry/setMaterial NaI</div><div>/gate/detector1/vis/forceWireframe</div><div>/gate/detector1/vis/setColor red</div><div><br></div><div>###################</div><div># Detector module #</div><div>###################</div><div>/gate/detector1/daughters/name module1</div><div>/gate/detector1/daughters/insert box</div><div>/gate/module1/placement/setTranslation -14.142 -14.142 0. cm</div><div>/gate/module1/geometry/setXLength 1.57 cm</div><div>/gate/module1/geometry/setYLength 1. cm</div><div>/gate/module1/geometry/setZLength 2. cm</div><div>/gate/module1/setMaterial NaI</div><div>/gate/module1/vis/forceSolid</div><div>/gate/module1/vis/setColor red</div><div><br></div><div># Repeat detector module</div><div>/gate/module1/repeaters/insert genericRepeater</div><div>/gate/module1/genericRepeater/setPlacementsFilename data/module1.placements</div><div>/gate/module1/genericRepeater/useRelativeTranslation 1</div><div><br></div><div># ATTACH SYSTEM</div><div>/gate/systems/scanner/level1/attach detector1</div><div>/gate/systems/scanner/level2/attach module1</div><div><br></div><div># ATTACH LAYER</div><div>/gate/module1/attachCrystalSD</div></div><div><br></div><div><b>benchmarkCT.mac</b></div><div><b><br></b></div><div><div>############################</div><div><br></div><div># VISUALIZATION PARAMETERS #</div><div><br></div><div>############################</div><div><br></div><div>/control/execute visu.mac</div><div><br></div><div>#/vis/disable</div><div><br></div><div><br></div><div>#########################</div><div><br></div><div># SET MATERIAL DATABASE #</div><div><br></div><div>#########################</div><div><br></div><div>#/gate/geometry/setMaterialDatabase ../../GateMaterials.db</div><div><br></div><div>/gate/geometry/setMaterialDatabase ./GateMaterials.db</div><div><br></div><div><br></div><div>#########</div><div><br></div><div># WORLD #</div><div><br></div><div>#########</div><div><br></div><div>/gate/world/geometry/setXLength 300. cm</div><div><br></div><div>/gate/world/geometry/setYLength 300. cm</div><div><br></div><div>/gate/world/geometry/setZLength 300. cm</div><div><br></div><div>/gate/world/setMaterial Air</div><div><br></div><div><br></div><div>#######################################</div><div><br></div><div># CT scanner #</div><div><br></div><div>#######################################</div><div><br></div><div>/control/execute scanner.mac</div><div><br></div><div><br></div><div>###################################</div><div><br></div><div># phantom in translation (1 mm/s) : #</div><div><br></div><div>###################################</div><div><br></div><div>/control/execute phantom.mac</div><div><br></div><div>/gate/waterBox/moves/insert translation</div><div><br></div><div>/gate/waterBox/translation/setSpeed 0 0 -1 mm/s</div><div><br></div><div><br></div><div>###########</div><div><br></div><div># PHYSICS #</div><div><br></div><div>###########</div><div><br></div><div>/control/execute physics.mac</div><div><br></div><div><br></div><div>#############</div><div><br></div><div># DIGITIZER #</div><div><br></div><div>#############</div><div><br></div><div>/control/execute digitizer.mac</div><div><br></div><div><br></div><div>##############</div><div><br></div><div># SOURCE GPS #</div><div><br></div><div>##############</div><div><br></div><div>/control/execute source.mac</div><div><br></div><div><br></div><div>##########</div><div><br></div><div># OUTPUT #</div><div><br></div><div>##########</div><div><br></div><div>/control/execute output.mac</div><div><br></div><div><br></div><div>#############</div><div><br></div><div># VERBOSITY #</div><div><br></div><div>#############</div><div><br></div><div>/control/execute verbose.mac</div><div><br></div><div><br></div><div>##################</div><div><br></div><div># INITIALIZATION #</div><div><br></div><div>##################</div><div><br></div><div>/gate/run/initialize</div><div><br></div><div><br></div><div>###############</div><div><br></div><div># ACQUISITION #</div><div><br></div><div>###############</div><div><br></div><div>/control/execute acquisition.mac</div><div><br></div><div>exit</div></div><div>-------------------------------------------------------------------------------------------------</div><div><br></div><div><div dir="ltr"><div>Best regards,</div><div>Elnur</div></div></div>
</div></div>