# TGeoManager

**URL:** <https://root-forum.cern.ch/t/tgeomanager/2343>\
**Category:** ROOT\
**Created:** [August 24, 2005, 9:55pm UTC](https://root-forum.cern.ch/t/tgeomanager/2343 "2005-08-24T21:55:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmocko](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@mmocko](https://root-forum.cern.ch/u/mmocko)\
**Post date:** [August 24, 2005, 9:55pm UTC](https://root-forum.cern.ch/t/tgeomanager/2343/1 "2005-08-24T21:55:06Z")

</div>

Hello,

I am trying to draw collision of two nuclei in a 3D representation. I am trying to use TGeoManager and other “Geo” classes to accomplish that. When I take nucleus.C tutorial from the tutorials directory I find this:  
it run only with root\_v4.02.00. If I try to run this macro in 4.04.02 or new 5.02.00 it crashes with this error:

[code]root [1] .x nucleus.C  
Geometry nucleus, Model of a nucleus created  
Top volume is WORLD. Master volume is WORLD  
List of materials :  
Fixing runtime shapes…  
— nothing to fix  
Counting nodes…  
Voxelizing…  
Building caches for nodes and matrices…  
— node ID tracking disabled

### 101 nodes/ 3 volume UID’s in Model of a nucleus

----------------modeler ready----------------  
— Automatic visible depth disabled  
Error in TPluginHandler::SetupCallEnv: method TGeoPainter not found in class TGeoPainter  
Error in TGeoManager::GetGeomPainter: could not create painter

\*\*\* Break \*\*\* segmentation violation  
Generating stack trace…  
0x41c8b1b6 in TGeoVolume::Draw(char const\*) + 0x52 from /cern/root/current/lib/libGeom.so  
0x41cd413e in from /cern/root/current/lib/libGeom.so  
0x4076d5f6 in G\_\_call\_cppfunc + 0x2db from /cern/root/current/lib/libCint.so  
0x4075c21f in G\_\_interpret\_func + 0x7a3 from /cern/root/current/lib/libCint.so  
0x4073cca1 in G\_\_getfunction at func.c:0 from /cern/root/current/lib/libCint.so  
0x407d6fb8 in G\_\_getstructmem + 0x90f from /cern/root/current/lib/libCint.so  
0x407ce4dd in G\_\_getvariable at var.c:0 from /cern/root/current/lib/libCint.so  
0x4073391a in G\_\_getitem at expr.c:0 from /cern/root/current/lib/libCint.so  
0x407322e0 in G\_\_getexpr at expr.c:0 from /cern/root/current/lib/libCint.so  
0x40785a7f in G\_\_exec\_function + 0x1df from /cern/root/current/lib/libCint.so  
0x4078d1a9 in G\_\_exec\_statement at parse.c:0 from /cern/root/current/lib/libCint.so  
0x4075da7a in G\_\_interpret\_func at ifunc.c:0 from /cern/root/current/lib/libCint.so  
0x4073d333 in G\_\_getfunction at func.c:0 from /cern/root/current/lib/libCint.so  
0x40733946 in G\_\_getitem at expr.c:0 from /cern/root/current/lib/libCint.so  
0x407322e0 in G\_\_getexpr at expr.c:0 from /cern/root/current/lib/libCint.so  
0x407298aa in G\_\_calc\_internal at expr.c:0 from /cern/root/current/lib/libCint.so  
0x40793142 in G\_\_process\_cmd + 0x20d6 from /cern/root/current/lib/libCint.so  
0x401c1a3f in TCint::ProcessLine(char const\*, TInterpreter::EErrorCode\*) + 0xaf from /cern/root/current/lib/libCore.so  
0x401c1b76 in TCint::ProcessLineSynch(char const\*, TInterpreter::EErrorCode\*) + 0x46 from /cern/root/current/lib/libCore.so  
0x4011601f in TApplication::ProcessFile(char const\*, int\*) + 0x6d3 from /cern/root/current/lib/libCore.so  
0x401158d1 in TApplication::ProcessLine(char const\*, bool, int\*) + 0x5fb from /cern/root/current/lib/libCore.so  
0x411d4f02 in TRint::HandleTermInput() + 0x1f8 from /cern/root/current/lib/libRint.so  
0x411d3ba2 in TTermInputHandler::Notify() + 0x24 from /cern/root/current/lib/libRint.so  
0x411d5a1e in TTermInputHandler::ReadNotify() + 0x12 from /cern/root/current/lib/libRint.so  
0x4025c69a in TUnixSystem::CheckDescriptors() + 0x152 from /cern/root/current/lib/libCore.so  
0x4025b5ab in TUnixSystem::DispatchOneEvent(bool) + 0x17d from /cern/root/current/lib/libCore.so  
0x40182890 in TSystem::InnerLoop() + 0x18 from /cern/root/current/lib/libCore.so  
0x4018282f in TSystem::Run() + 0x7b from /cern/root/current/lib/libCore.so  
0x4011614e in TApplication::Run(bool) + 0x32 from /cern/root/current/lib/libCore.so  
0x411d49b7 in TRint::Run(bool) + 0x3e5 from /cern/root/current/lib/libRint.so  
0x08048e1d in main + 0x71 from /cern/root/current/bin/root.exe  
0x4131fe80 in \_\_libc\_start\_main + 0xd0 from /lib/tls/libc.so.6  
0x08048d11 in TApplicationImp::ShowMembers(TMemberInspector&, char\*) + 0x3d from /cern/root/current/bin/root.exe  
Root \> Function nucleus() busy flag cleared  
[/code]

I don’t know where the problem could be. Do I need to compile these versions differently? I am in particular interested in using the newest version because that should allow me to save the 3D drawing as eps or pdf (according to Rene Brun’s post)

thanks  
michal

---

<div class="post-metadata">

**Author:** ![brun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/b9e5f3/32.png) [@brun](https://root-forum.cern.ch/u/brun)\
**Post date:** [August 25, 2005, 7:16am UTC](https://root-forum.cern.ch/t/tgeomanager/2343/2 "2005-08-25T07:16:54Z")

</div>

I do not see any problem with the tutorial nucleus.C.  
You seem to have something wrong with your installation.  
Did you import the binary tar balls from the ROOT web site or did you  
install from source yourself?  
If you installed from source yourself, did you follow the procedure  
indicated at  
[http://root.cern.ch/root/Install.html](http://root.cern.ch/root/Install.html)

` gmake
  gmake cintdlls
  gmake map
`

Note that we are currently working on the GL viewer to show  
dynamic particles in time

Rene

---

<div class="post-metadata">

**Author:** ![mmocko](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@mmocko](https://root-forum.cern.ch/u/mmocko)\
**Post date:** [August 25, 2005, 8:51pm UTC](https://root-forum.cern.ch/t/tgeomanager/2343/3 "2005-08-25T20:51:29Z")

</div>

I am still having the same problem when running nucleus.C tutorial. I downloaded source for root\_v5.02 from: [root.cern.ch](http://root.cern.ch) website. I compiled it using:

```auto
./configure linux
gmake
gmake cintdlls
gmake maps
```

and still getting the same error message when I try to draw it. command causing the error is:  
top-\>Draw(“ogl”);  
It doesn’t really matter if I draw it to OpenGL or to canvas. Still the same error message… There must be something wrong with my compilation/installation but I cannot figure it out!  
The most puzzling part is that I do the same for version 4.02 (concerning compilation/installation) and I can draw it, but the problem is I cannot save it to a eps, pdf file…like in the new 5.02 version.

michal

---

<div class="post-metadata">

**Author:** ![brun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/b9e5f3/32.png) [@brun](https://root-forum.cern.ch/u/brun)\
**Post date:** [August 26, 2005, 6:28am UTC](https://root-forum.cern.ch/t/tgeomanager/2343/4 "2005-08-26T06:28:58Z")

</div>

Could you send me the output of the 4 following commands  
./configure linux

ls -l $ROOTSYS/lib

nm $ROOTSYS/lib/libGeomPainter.so |grep TGeoPainter

g++ -v

Rene

---

<div class="post-metadata">

**Author:** ![mmocko](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@mmocko](https://root-forum.cern.ch/u/mmocko)\
**Post date:** [August 26, 2005, 1:11pm UTC](https://root-forum.cern.ch/t/tgeomanager/2343/5 "2005-08-26T13:11:00Z")

</div>

Hi Rene,

thanks a lot for your help, I am kind of cueless right now what is wrong with my installation of root on my system. I know I must be doing something wrong but I can’t figure out what it is…I added all listings you asked for in the attachment.

thanks for the help  
michal  
[listing.tar](https://root-forum.cern.ch/uploads/default/original/1X/31e3c4bfca7412f3077dc0bb61f3d2405c344f0c.tar) (20 KB)

---

<div class="post-metadata">

**Author:** ![brun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/b9e5f3/32.png) [@brun](https://root-forum.cern.ch/u/brun)\
**Post date:** [August 26, 2005, 1:29pm UTC](https://root-forum.cern.ch/t/tgeomanager/2343/6 "2005-08-26T13:29:26Z")

</div>

All your files look correct.  
Could you check your file $ROOTSYS/etc/system.rootrc? Did you make  
changes in this file? or do you have a .rootrc file?  
In system.rootrc, do you have the line:  
Plugin.TVirtualGeoPainter: \* TGeoPainter GeomPainter “TGeoPainter(TGeoManager\*)”

Rene

---

<div class="post-metadata">

**Author:** ![mmocko](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@mmocko](https://root-forum.cern.ch/u/mmocko)\
**Post date:** [August 26, 2005, 2:03pm UTC](https://root-forum.cern.ch/t/tgeomanager/2343/7 "2005-08-26T14:03:58Z")

</div>

Thanks a lot Rene,

I was missing the Plugin.TVirtual… line in my .rootrc file. It was outdated because I am still using the same .rootrc file since version 3.10… It was my problem!

thanks again  
michal
