RE: Problem drawing a geometry

From: Fine, Valeri <fine_at_bnl.gov>
Date: Sat, 1 Apr 2006 09:41:19 -0500


Hello Jochen,

Can you explain which version of ROOT you applied to create your file and which version was used to read it back.

I tried it with ROOT 5.10.00 and got

root [0] TFile fff("C:\\Downloads\\Alice\\alice.geom") Error in <TFile::Init>: cannot read directory info of file C:\Downloads\Alice\al ice.geom
root [1] fff.GetVersion()
(const Int_t)30006

That indicates that your file was created by ROOT 3.00.06. Very likely ROOT 5.10 can not read back the files created by ROOT 3.00.06. This _is_ the problem I see. Since I could not read your file I can not reproduce the problem you complained about yet.

                    Best regards, Valeri




From: Jochen Thaeder
Sent: Fri 3/31/2006 6:48 AM
To: roottalk
Cc: Fine, Valeri
Subject: RE: [ROOT] Problem drawing a geometry

Hi Valeri,

I hope this one works better.
Thanks for trying...

Jochen

Quoting "Fine, Valeri" <fine_at_bnl.gov>:

> Hello Jochen,
>
> It seems to me your attachment "alice.geom" file is corrupted.
> Error in <TFile::Init>: cannot read directory info of file alice.geom
>
> Can you upload the correct one to check?
>
> Thank you
>
> Best Regards
> Valeri Fine
> ---------------
> Brookhaven National Laboratory
> Upton, NY 11973, USA
> Phone: +1 631 344 7806
> Fax: +1 631 344 4206
> E-mail: fine_at_bnl.gov
>
>> -----Original Message-----
>> From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
>> On Behalf Of Jochen Thaeder
>> Sent: Thursday, March 30, 2006 9:46 AM
>> To: roottalk
>> Subject: [ROOT] Problem drawing a geometry
>>
>> Hi,
>>
>> I have some problems in drawing a geometry. I have geometry file (not
>> written by
>> me) with several Nodes inside. The point is that i want to draw only some
>> of
>> these nodes.
>>
>> The drawing works, but I get an error output...
>>
>> Error in <TCanvas::TPad::CreateViewer3D>: Cannot create 3D viewer of type:
>> same
>>
>> I 'produce' it like this: (in a short version)
>>
>> ...
>> TFile *file = TFile::Open("alice.geom");
>> TGeometry *fGeom = (TGeometry*)file->Get("AliceGeom");
>>
>> fGeom->GetNode(LS00)->Draw("same");
>> fGeom->GetNode(LS01)->Draw("same");
>> fGeom->GetNode(LS03)->Draw("same");
>> ...
>>
>>
>> Can someone please tell me what I'm doing wrong??
>>
>> Cheers
>> Jochen
>>
>> --
>> Jochen Thäder thaeder_at_kip.uni-heidelberg.de
>>
>> Computer Science/Computer Engineering
>> Kirchhoff Institute of Physics - Ruprecht-Karls-University Heidelberg
>>
>> ICQ UIN: 84840251
>>
>>
>
>
Received on Sat Apr 01 2006 - 16:41:26 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:58 MET