Re: Draw geometry on Canvas

From: Ye Shuwei (yesw@ihp.phys.ethz.ch)
Date: Mon Sep 14 1998 - 09:09:39 MEST


Hi, Jayoung,

    Since your macro file "mygeom.C" is enclosed in a body of function
mygeom(), the geometry named "mygeom" is unknown to the interactive ROOT.
Instead, it takes "mygeom" as "char*", a pointer to the function mygeom().
You can figure it out via ".p mygeom" to see what ROOT tells you.
Commment the line of "void mygeom()" will work.

// void mygeom()
{
...
...
...
}

Good luck  --Shuwei


On Sun, 13 Sep 1998, Jayoung Wu wrote:

> 
> Hi.
> I converted an existing GEANT geometry/RZ file into a ROOT macro.
> for example
> 	g2root mygeom.rz mygeom.C 
> 
> To draw the geometry on Canvas I tried in the following way:
> root> c1 = new TCanvas("c1","view configuration",200,10,700,500)
> root> .x mygeom.C
> root> mygeom.Draw()
> root> c1->Update()
> 
> In some reason it does not show any geometry configuration. Just vacant
> canvas appears. Do anyone have any suggestion? I will appreciate a lot!
> 
> ---
> Thanks,
> Jayoung
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:37 MET