Re: [ROOT] tracks from GEANT3 in ROOT

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Aug 12 2003 - 08:59:48 MEST


Hi Ilektra,

the g2root utility convert only the geometry data structures, not the
kinematics or hits. Although this could be implemented, we have no plans to
do it in the short/medium term. If somebody succeeds with an implementation,
let us know.

Rene Brun

Ilektra A Christidi wrote:
> 
> Hello
> I finally managed to import the whole detector in ROOT and draw it
> properly (thanks! :o) ). I'm trying to do the same with tracks and hits,
> but it doesn't work: I save the JXYZ structure in the same zebra file as
> MATE, VOLU, etc. Then I g2root it, which seems to work ok - here is the
> output:
> 
>  ************** Directory ===> //LUN1 <===
>                   Created 030811/1848 Modified 030811/1849
>  ===> List of objects
>      OBJECT VERSION CYCLE DATE/TIME NDATA
>        MATE 1 1 030811/1848 109567
>        PART 1 1 030811/1848 1745
>        ROTM 1 1 030811/1848 365
>        RUNG 1 1 030811/1848 47
>        SETS 1 1 030811/1848 3403
>        TMED 1 1 030811/1848 8542
>        VOLU 1 1 030811/1848 130410
>        JXYZ 1 1 030811/1849 172486
>        JXYZ 2 1 030811/1849 41854
>        JXYZ 3 1 030811/1849 436224
>        JXYZ 5 1 030811/1849 19991
>        JXYZ 9 1 030811/1849 94382
>   Number of records = 997 Number of megawords = 1 + 20040 words
>   Per cent of directory quota used = 99.700
>   Per cent of file used = 99.700
>   Blocking factor = 99.813
>   In g2rin, iquest(13)= 75
>   after rzink, ikey= 1iquest(1)= 0
>  trying to read:MATE
>   after rzink, ikey= 2iquest(1)= 0
>  trying to read:PART
>   after rzink, ikey= 3iquest(1)= 0
>  trying to read:ROTM
>   after rzink, ikey= 4iquest(1)= 0
>  trying to read:RUNG
>   after rzink, ikey= 5iquest(1)= 0
>  trying to read:SETS
>   after rzink, ikey= 6iquest(1)= 0
>  trying to read:TMED
>   after rzink, ikey= 7iquest(1)= 0
>  trying to read:VOLU
>   after rzink, ikey= 8iquest(1)= 0
>  trying to read:JXYZ
>   after rzink, ikey= 9iquest(1)= 0
>  trying to read:JXYZ
>   after rzink, ikey= 10iquest(1)= 0
>  trying to read:JXYZ
>   after rzink, ikey= 11iquest(1)= 0
>  trying to read:JXYZ
>   after rzink, ikey= 12iquest(1)= 0
>  trying to read:JXYZ
>   after rzink, ikey= 13iquest(1)= 1
>   nkeys= 12 nwkey= 2
>   nvolum= 185 jvolum= 3872631 Division volumePRM1 Division volumeSCY5
> Division volumeSCX1
> Division volumeSCU1
> Division volumeSCY1
> Division volumeSCX3
> Division volumeSCU3
> Division volumeSCY3
> Division volumePRM2
> Division volumeSCY6
> Division volumeSCX2
> Division volumeSCU2
> Division volumeSCY2
> Division volumeSCX4
> Division volumeSCU4
> Division volumeSCY4
>  GEANT file: kopio_mc_19.rz converted to ROOT macro: kopio_mc_19.C
> 
> but when I display my geometry in the TBrowser, the tracks folder is
> empty and when I try to draw them there is no response. What am I doing
> wrong?
> I saved the hits separatelly in another zebra file, but this one core
> dumped when I tried to g2root it. Is there any tool in ROOT to handle
> GEANT3 HITS strucures (without the intermediate step of filling an ntuple,
> converting it into a TTree... etc), or not yet?
> 
> Thank you
> 
>                                         Ilektra Christidi



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET