[Gate-users] Fwd: How to extract scatter fraction from the ROOT output?

Xinjie Cao xinjie.cao at stonybrook.edu
Tue Sep 22 15:52:04 CEST 2020


---------- Forwarded message ---------
From: Xinjie Cao <xinjie.cao at stonybrook.edu>
Date: Tue, Sep 22, 2020 at 9:51 AM
Subject: Re: [Gate-users] How to extract scatter fraction from the ROOT
output?
To: SL H <hsl1196997465 at gmail.com>


Hi,

There are always two lists in the ROOT TBrowser tree of GATE ROOT output
(singles, hits, coincidences, etc) from my experience. So you could try
filter them all and see whether the result make sense or not. For the look
up table, see the following link of GATE instruction:

https://opengate.readthedocs.io/en/latest/data_output_management.html?highlight=root

Usually you just need to care about the Compton and Rayleigh effect of
scatter in the output file and the filter standard depends on your
simulation. I am not very familiar with CT imaging output, but you could
have a try first with a simple filter threshold. Good luck!

Best,
Xinjie

On Tue, Sep 22, 2020 at 4:48 AM SL H <hsl1196997465 at gmail.com> wrote:

> Hi, Xinjie.
> I have followed your suggestion and converted the ROOT file to a text (it
> is so large for MATLAB to read) using the code on this page:
> http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=16590.
> After that I got something like the attached picture1. I used TBrowser to
> check my ROOT file and found there are two Singles and two
> Hits( attached picture2), which one should I convert to text for filtering
> scatter data?
> And in the Gate user doc, I can not find the look up table which you said,
> there is not much information about the ROOT output, could you please give
> me some instructions or an example to filter the scatter data?
> Thank you!
>
>
>
> Xinjie Cao <xinjie.cao at stonybrook.edu> 于2020年9月22日周二 上午1:58写道:
>
>> My suggestion is to convert the ROOT output file into the txt file and
>> filter all scatters you need by MATLAB (with the look up table for ROOT
>> output file format in the GATE instruction file). Then if you still need
>> the ROOT output file you can convert the filtered txt data into ROOT file
>> reversely. We achieved this before, but I am wondering if anyone else has a
>> better solution, like filtering the scatter in ROOT command line work.
>> Good luck!
>>
>> Best,
>> Xinjie
>>
>> On Mon, Sep 21, 2020 at 6:35 AM SL H <hsl1196997465 at gmail.com> wrote:
>>
>>> Dear gate users.  I am learning to use GATE for CT simulation, I know
>>> that primray+scatter=total (.dat projection). But how can I get the
>>> Compton, Rayleigh scatter fraction  from the ROOT output file?
>>> _______________________________________________
>>> Gate-users mailing list
>>> Gate-users at lists.opengatecollaboration.org
>>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>>
>>

-- 
*....................................................*
*Xinjie Cao*
*M.E. / Ph.D. student*
*Research Project Assistant*
*Department of Electrical and Computer Engineering & Radiology *
*Novel Medical Imaging Technologies Lab*
*Health Science Center Level 8*
*Stony Brook, NY 11794-8460 *
*Tel: +1 (631)202-9445*
you.stonybrook.edu/goldan/people/
*email: **xinjie.cao at stonybroo*k.edu <xinjie.cao at stonybrook.edu>


*....................................................*
It is prohibited to distribute or publish the files attached to any other
people unless you get permission from the writer himself. All rights
reserved.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200922/f4c161b2/attachment.html>


More information about the Gate-users mailing list