[Gate-users] no Singles-output without visualization

Philipp Matthies philipp.matthies at googlemail.com
Tue Aug 10 14:01:43 CEST 2010


Dear all,

thanks for your help so far. I inserted the command

	gate/{PART_OF_SPECTHEAD}/vis/setVisible 0

for every part of the SPECThead (thanks to Melanie) and also added the command

	/gate/output/ascii/enable

but my Singles.dat file stays empty...

Any further suggestions?


Cheers,

Philipp Matthies


Am 10.08.2010 um 12:33 schrieb Farzaneh Adibpour:

> Dear Philipp
> I think you must enter this command. 
> /gate/output/ascii/enable
> please let me know if it works!
> 
> Regards
> -----
> Farzaneh
> 
> 
> On Tue, Aug 10, 2010 at 2:40 PM, Philipp Matthies <philipp.matthies at googlemail.com> wrote:
> Dear Farzaneh,
> 
> here are the relevant parts of my macro:
> 
> --------------------------------------------------------------------------------------------------
> 
> /control/saveHistory
> /run/verbose 2
> /event/verbose 1
> /tracking/verbose 1
> /gate/timing/setTime 0. s
> 
> 
> # ------- Visualization ----------------------
> #/control/execute ../gate_scripts/visu.mac
> /vis/disable
> 
> 
> # ------- World ------------------------------
> /gate/world/geometry/setXLength 32. cm
> /gate/world/geometry/setYLength 30. cm
> /gate/world/geometry/setZLength 16. cm
> /gate/world/setMaterial Air
> 
> [...]
> 
> # ------- I N I T I A L I Z E ----------------
> /run/initialize
> 
> [...]
> 
> # ------- Output -----------------------------
> # ASCII Output format
> /gate/output/ascii/setFileName gate
> /gate/output/ascii/setOutFileHitsFlag 0
> /gate/output/ascii/setOutFileSinglesFlag 1
> /gate/output/ascii/setSingleMask 1 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 1
> 
> # ROOT Output format
> #/gate/output/root/setFileName rootout
> #/gate/output/root/setRootSinglesFlag 1
> 
> 
> # ------- PROJECTION -------------------------
> # Makes a set of projections from the crystal hits
> # Define the binning the projection module to be used
> /gate/output/projection/disable
> #/gate/output/projection/pixelSizeX 1.56 mm
> #/gate/output/projection/pixelSizeY 1.56 mm
> #/gate/output/projection/pixelNumberX 16
> #/gate/output/projection/pixelNumberY 16
> 
> # Specify the projection plane (XY, YZ or ZX)
> #/gate/output/projection/projectionPlane YZ
> 
> 
> # EXPERIMENT
> # Define the parameters of the experiment  (start time, stop time and time slice)
> # The number of projections depends on the number of time slice, the rotation speed of the system and the 
> # number of heads
> /gate/application/setTimeSlice    2. s
> /gate/application/setTimeStart     0. s
> /gate/application/setTimeStop     2. s
> 
> 
> # VERBOSITY
> /control/verbose 0
> /grdm/verbose 0
> /run/verbose 0
> /event/verbose 0
> /tracking/verbose 0
> /gate/application/verbose 0
> /gate/generator/verbose 0
> /gate/stacking/verbose 0
> /gate/event/verbose 0
> /gate/source/verbose 0
> /gate/output/projection/verbose 0
> /gate/output/verbose 0
> 
> /gate/application/startDAQ
> 
> --------------------------------------------------------------------------------------------------
> 
> The file 'visu.mac' contains the following:
> 
> --------------------------------------------------------------------------------------------------
> # ------- Visualization ----------------------
> /vis/open OGLSX
> /vis/viewer/reset
> /vis/viewer/set/viewpointThetaPhi 60 60
> /vis/viewer/zoomTo 1
> /vis/viewer/set/style surface
> /vis/drawVolume
> /tracking/storeTrajectory 1
> /vis/scene/endOfEventAction accumulate 1000000
> /vis/viewer/update
> /gate/geometry/enableAutoUpdate
> --------------------------------------------------------------------------------------------------
> 
> The problem is when I use the command /control/execute ../gate_scripts/visu.mac (WITH VISUALIZATION) I get the expected output, both ROOT and ascii.
> When I comment the line before and uncomment the line /vis/disable (without visualization) the ascii output (i.e. gateSingles.dat) IS EMPTY!
> 
> Cheers,
> 
> Philipp Matthies
> 
> 
> 
> Am 10.08.2010 um 11:52 schrieb Farzaneh Adibpour:
> 
>> Dear Philpp
>> I think you make mistake.This error doesn't occur because of that command.is it possible to give me your macro,so i can check it for you?
>> 
>> All the bests
>> ---
>> Farzaneh
>> 
>> 
>> On Tue, Aug 10, 2010 at 1:36 PM, Philipp Matthies <philipp.matthies at googlemail.com> wrote:
>> Dear GATE users,
>> 
>> I'm simulating a SPECThead-system and I'm interested in the ascii-output in the file 'Singles.dat'.
>> 
>> The problem is that the output-file is empty when I use the command
>> 
>>        /vis/disable
>> 
>> to NOT visualize the simulation (much faster). There is no error message and the ROOT-file is NOT empty, only the 'Singles.dat'. When I use
>> 
>>        /vis/open OGLSX
>> 
>> and the rest of the macro exactly the same the output-file is not empty and I can evaluate the 'Singles.dat'.
>> 
>> 
>> Did anybody else encounter this or knows how to solve this problem?
>> 
>> Thanks a lot in advance.
>> 
>> 
>> Cheers,
>> 
>> Philipp Matthies
>> 
>> 
>> 
>> _______________________________________________
>> Gate-users mailing list
>> Gate-users at lists.opengatecollaboration.org
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>> 
>> --
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>> 
>> 
> 
> 



More information about the Gate-users mailing list