[Gate-users] no Singles-output without visualization
Navid Zeraatkar
navid_zeraatkar at yahoo.com
Wed Aug 11 12:18:58 CEST 2010
Hello, Phillipp
What happens if you extract "/gate/geometry/enableAutoUpdate" from the file
"visu.mac" and include it in your main code prior to initialize step.
Let me know the result.
Regards
Navid
________________________________
From: "gate-users-request at lists.opengatecollaboration.org"
<gate-users-request at lists.opengatecollaboration.org>
To: gate-users at lists.opengatecollaboration.org
Sent: Wed, August 11, 2010 3:00:01 AM
Subject: Gate-users Digest, Vol 51, Issue 8
Send Gate-users mailing list submissions to
gate-users at lists.opengatecollaboration.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
or, via email, send a message with subject or body 'help' to
gate-users-request at lists.opengatecollaboration.org
You can reach the person managing the list at
gate-users-owner at lists.opengatecollaboration.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gate-users digest..."
Today's Topics:
1. Re: no Singles-output without visualization (Philipp Matthies)
2. Re: no Singles-output without visualization (Philipp Matthies)
----------------------------------------------------------------------
Message: 1
Date: Tue, 10 Aug 2010 12:10:55 +0200
From: Philipp Matthies <philipp.matthies at googlemail.com>
Subject: Re: [Gate-users] no Singles-output without visualization
To: Farzaneh Adibpour <f.adibpour at gmail.com>
Cc: gate-users at lists.opengatecollaboration.org
Message-ID: <EDA0EDBA-044A-4A65-8322-4FB4BB993785 at gmail.com>
Content-Type: text/plain; charset=us-ascii
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.
>
>
------------------------------
Message: 2
Date: Tue, 10 Aug 2010 14:01:43 +0200
From: Philipp Matthies <philipp.matthies at googlemail.com>
Subject: Re: [Gate-users] no Singles-output without visualization
To: Farzaneh Adibpour <f.adibpour at gmail.com>
Cc: gate-users at lists.opengatecollaboration.org
Message-ID: <44DBFA41-97F7-4D14-92B9-9BC5481D9608 at gmail.com>
Content-Type: text/plain; charset=us-ascii
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.
>>
>>
>
>
------------------------------
_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
End of Gate-users Digest, Vol 51, Issue 8
*****************************************
More information about the Gate-users
mailing list