[Gate-users] Problems with Root Output: Hits;9 Hits;10

Didier Benoit benoit at imnc.in2p3.fr
Tue Apr 19 15:32:13 CEST 2011


Hi Irene,

I think there are no problem. If you want to get the number of singles 
and hits, you can use the following commands for example:
 > root -l
 > TFile f( "your_root_file.root" )
 > Singles.Print()
 > Hits.Print()

Normally GATE creates 1 hit tree and 1 single tree by simulation.

Kind Regards,
Didier

On 19/04/2011 14:55, irene.torres at ific.uv.es wrote:
> Hi Didier,
>
> I am having a similar behavior in the output of the simulations as 
> David Watts commented it. When I open the root-file after the 
> simulation I observed two trees of Hits and Singles. I have checked 
> the entries of these trees and I get the following:
>
> Hits,351 --> Entries: 351000
> Hits,352 --> Entries: 351368
> Singles,143--> Entries: 143000
> Singles,144--> Entries: 143227
>
> Changing the activity (from 100 kBq to 10 kBq) and also the 
> acquisition time (from 25 s to 250 s) to keep the same emitted events, 
> I got something very similar:
>
> Hits,350 --> Entries: 350000
> Hits,351 --> Entries: 350956
> Singles,143--> Entries: 143000
> Singles,144--> Entries: 143343
>
> Then changing the activity and time again (from 10 kBq to 200 kBq and 
> 250 s to 3 s), I can see the two trees again, this time with different 
> numbers:
>
> Hits,85 --> Entries: 84231
> Hits,84 --> Entries: 84000
> Singles,35--> Entries: 34467
> Singles,34--> Entries: 34000
>
> When I am using the root-macros to analyze the output, the number of
> entries corresponds always to the highest (and not round) number. Is
> this a problem? Or just a representation that Root is doing without
> any consequences?
>
> Thanks in advance!
>
> Best regards,
>
> Irene
>
>
> Quoting Didier Benoit <benoit at imnc.in2p3.fr>:
>
>> Hi David,
>>
>> Do you create 1 ROOT file for your total simulation?
>> If yes, could you try to split your simulation, and to create a ROOT
>> file for each run, I never had your problem by this way. Tell me it
>> works.
>>
>> Kind Regards,
>> Didier
>>
>> On 18/04/2011 16:52, David Watts wrote:
>>> I'm having big problems getting my root output to work. I've tried  
>>> with my own
>>> simulations, and the ones of the examples, and I have similar problems.
>>>
>>> The simulation(s) seem to run just fine. The root output file is 
>>> created but
>>> when I open it what I see is multiple Hits and Singles files,  
>>> namely, that is
>>> says Hits;11 or Hits;12 and Singles;2 and Singles;3 and things like 
>>> that.
>>> There are often data inside, and each has a different amount of 
>>> entries (the
>>> lower valued file often has round number of entries like 5000), but 
>>> how am i
>>> supposed to know which file is right??
>>>
>>> Worse still, the problem seems to depend on the size of the output 
>>> data. Ie,
>>> without changing anything in the macro except the source activity,  
>>> I go from a
>>> normal output, say Hits;1, Singles;1, etc... to Hits; 9 and Hits; 10...
>>>
>>> It's as if Root doesn't like big files and is somehow splitting the 
>>> data and
>>> only showing the last part of something. I say this cause the weirdness
>>> increases with the activity of my source. However, my root files  
>>> are only about
>>> 28MB large at best... and problems come even when they are a few MB.
>>>
>>> Plus, my coincidence and delay trees show leaves but they are not  
>>> filled (they
>>> don't plot anything).
>>>
>>> I'm running Gate v6.1 and Geant 4.9.4p01... and Root 5.28/00b on 
>>> Kubuntu
>>> 10.04. I have seen the exact same problems with Gate 6.0 and Geant 
>>> 4.9.2 and
>>> several other versions of Root like 5.22 and 5.24.
>>>
>>> I'm at my wits end with this having tried many things, including  
>>> the complete
>>> reinstall of all software starting from CLHEP, upgrading to the latest
>>> versions, but it hasn't changed ANYTHING!
>>>
>>> Has anyone seen this problem before???
>>> Please help! I've already spent two weeks fighting this bug and 
>>> seems no one
>>> has this problem.
>>>
>>> Cheers,
>>> Dave.
>>>
>>> _______________________________________________
>>> Gate-users mailing list
>>> Gate-users at lists.opengatecollaboration.org
>>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>>
>>
>> -- 
>> ----------------------------------------------------------------
>> Didier BENOIT, GATE Engineer
>> Imagerie et Modélisation en Neurobiologie et Cancérologie (IMNC)
>> IMNC – UMR 8165 CNRS – Université Paris 7 – Université Paris 11
>> Campus d’Orsay
>> Bâtiment 440
>> 91406 ORSAY Cedex
>>
>> Tél : (33) 1 69 15 68 76
>> E-mail : benoit at imnc.in2p3.fr
>> http://www.imnc.in2p3.fr
>> ----------------------------------------------------------------
>>
>> _______________________________________________
>> Gate-users mailing list
>> Gate-users at lists.opengatecollaboration.org
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
>
>
> Irene Torres Espallardo, PhD
>
> IFIC - Instituto de Física Corpuscular
>       CSIC / Universidad de Valencia
>       Edificio Institutos de Investigacion
>       Apartado de Correos 22085
>       E-46071 Valencia
>       Spain
>
> Tel.:     +34 96 354 38 55
> Email:   irene.torres at ific.uv.es
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users


-- 
----------------------------------------------------------------
Didier BENOIT, GATE Engineer
Imagerie et Modélisation en Neurobiologie et Cancérologie (IMNC)
IMNC – UMR 8165 CNRS – Université Paris 7 – Université Paris 11
Campus d’Orsay
Bâtiment 440
91406 ORSAY Cedex

Tél : (33) 1 69 15 68 76
E-mail : benoit at imnc.in2p3.fr
http://www.imnc.in2p3.fr
----------------------------------------------------------------



More information about the Gate-users mailing list