GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » simulation does not work with G4 for ROOT files with geometry
simulation does not work with G4 for ROOT files with geometry [message #5519] Wed, 28 November 2007 15:26 Go to next message
Aleksandra Biegun is currently offline  Aleksandra Biegun
Messages: 64
Registered: May 2007
Location: Groningen
continuous participant
From: *KVI.nl
Hello,

today I downloaded last version of pandaroot.
I exported path to new external packages
which are at /misc/cbmsoft/Debian3.1/development

I compiled pandaroot software without any errors and then
I tried to run macra with geometry taken from the ROOT file,
i.e. /pandaroot/macro/

emc/sim_emc.C (geometry file: emc_module3.root)
dch/runMC.C (geometry file: dch.root)
mvd/runMvdSim.C (geometry file: MVD14.root)

None of this works for me with G4, I got such error message:

------------------------------------------------------------
...
Loading Geant4 granular libraries ...
Loading VGM libraries ...
dlopen error: /misc/cbmsoft/Debian3.1/development/transport/geant4_vmc/lib/tgt_linux/l ibgeant4vmc.so: undefined symbol: _ZNK8TGWindow7GetNameEv
Load Error: Failed to load Dynamic link library /misc/cbmsoft/Debian3.1/development/transport/geant4_vmc/lib/tgt_linux/l ibgeant4vmc.so
(int)(-1)
*** Interpreter error recovered ***
Error: Symbol TG4RunConfiguration is not defined in current scope /d/panda02/abiegun/pandaroot/gconfig/g4Config.C:29:
Error: Symbol TG4RunConfiguration is not defined in current scope /d/panda02/abiegun/pandaroot/gconfig/g4Config.C:29:
Error: type TG4RunConfiguration not defined FILE:/d/panda02/abiegun/pandaroot/gconfig/g4Config.C LINE:29
Warning: Automatic variable TG4RunConfiguration* runConfiguration is allocated /d/panda02/abiegun/pandaroot/gconfig/g4Config.C:29:
Error: Undeclared variable TG4RunConfiguration* runConfiguration /d/panda02/abiegun/pandaroot/gconfig/g4Config.C:29:
*** Interpreter error recovered ***

*** Break *** segmentation violation
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /proc/32678/exe, process 32678
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
done.
done.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 32678)]
done.
...
----------------------------------------------------------------

With G3 those detectors works, but for 'emc' and 'dch'
I got 'segmentation violation' error after quiting root
like below:

------------------------------------------------
...
RealTime=7.715130 seconds, CpuTime=6.270000 seconds
root [1] .q

*** Break *** segmentation violation
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /proc/2100/exe, process 2100
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
done.
done.
...
-------------------------------------------------------

Maybe I have forgotten about some settings?

Do you have any idea about it?

Best regards,
Aleksandra.


Aleksandra Biegun
University of Groningen/KVI
Zernikelaan 25, 9747 AA Groningen
tel. +31 50 363 3630
fax. +31 50 363 4003
Re: simulation does not work with G4 for ROOT files with geometry [message #5520 is a reply to message #5519] Wed, 28 November 2007 15:39 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

Quote:

Loading Geant4 granular libraries ...
Loading VGM libraries ...
dlopen error: /misc/cbmsoft/Debian3.1/development/transport/geant4_vmc/lib/tgt_linux/l ibgeant4vmc.so: undefined symbol: _ZNK8TGWindow7GetNameEv
Load Error: Failed to load Dynamic link library /misc/cbmsoft/Debian3.1/development/transport/geant4_vmc/lib/tgt_linux/l ibgeant4vmc.so
(int)(-1)


do you start root with -b option? if yes then this is the reason! either you add to your macro gSystem->Load("libGui") or you use -l option instead.

Quote:

Error: Symbol TG4RunConfiguration is not defined in current scope /d/panda02/abiegun/pandaroot/gconfig/g4Config.C:29:
Error: Symbol TG4RunConfiguration is not defined in current scope /d/panda02/abiegun/pandaroot/gconfig/g4Config.C:29:
Error: type TG4RunConfiguration not defined FILE:/d/panda02/abiegun/pandaroot/gconfig/g4Config.C LINE:29
Warning: Automatic variable TG4RunConfiguration* runConfiguration is allocated /d/panda02/abiegun/pandaroot/gconfig/g4Config.C:29:
Error: Undeclared variable TG4RunConfiguration* runConfiguration /d/panda02/abiegun/pandaroot/gconfig/g4Config.C:29:
*** Interpreter error recovered ***


this related to the above error, the vmc library is not loaded so he cannot find these objects.

Quote:

With G3 those detectors works, but for 'emc' and 'dch'
I got 'segmentation violation' error after quiting root
like below:


maybe it is the same problem which was in the MVD, I have to check.


regards

Mohammad

Re: simulation does not work with G4 for ROOT files with geometry [message #5522 is a reply to message #5520] Wed, 28 November 2007 17:02 Go to previous messageGo to next message
Aleksandra Biegun is currently offline  Aleksandra Biegun
Messages: 64
Registered: May 2007
Location: Groningen
continuous participant
From: *KVI.nl
Hi Mohammad,

yes, I start with options "-l" and "-b",
but adding gSystem->Load("libGui") library helped G4 for
'mvd' almost completely (now, I have only warnings when I'm
leaving root:
WARNING - Attempt to delete the physical volume store while geometry closed !
WARNING - Attempt to delete the logical volume store while geometry closed !
WARNING - Attempt to delete the solid store while geometry closed !
WARNING - Attempt to delete the region store while geometry closed !);

'dch' also works with G4, but still I have the same warnings and

*** Break *** segmentation violation
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /proc/7855/exe, process 7855
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
...

and for 'emc', when I run with G4 I got an error:

Running TVirtualMCApplication::ConstructGeometry
*************************************************************
Geant4 version Name: geant4-09-00 (29-June-2007)
Copyright : Geant4 Collaboration
Reference : NIM A 506 (2003), 250-303
WWW : http://cern.ch/geant4
*************************************************************

Info in <TG4RootNavMgr::Initialize>: Creating G4 hierarchy ...
Info in <TGeoManager::ConvertReflections>: Converting reflections in: CBMGeom - CBM geometry ...
Info in <TGeoManager::ConvertReflections>: Done
===> GEANT4 materials created and mapped to TGeo ones...
Cannot make material for volume: top
Aborting in CreateLogicalVolume()

*** G4Exception: Aborting execution ***



The material for 'top' volume of emc is set to air (when the root file is created) but it's not registered to TGeoManager into pandaroot software, so maybe this is the problem?
How do you think?

Regards,
Ola.







Aleksandra Biegun
University of Groningen/KVI
Zernikelaan 25, 9747 AA Groningen
tel. +31 50 363 3630
fax. +31 50 363 4003
Re: simulation does not work with G4 for ROOT files with geometry [message #5523 is a reply to message #5522] Wed, 28 November 2007 17:17 Go to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi,

Quote:

'dch' also works with G4, but still I have the same warnings and

*** Break *** segmentation violation
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /proc/7855/exe, process 7855
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
...


This was a problem with the mvd also, when you exit root the GeoManager try to delete a list of marticies which is already deleted, as far as I remmember dch has also his own ConstructRootGeometry which is similar to mvd, so one have to correct this method like MVD.

Quote:

Info in <TG4RootNavMgr::Initialize>: Creating G4 hierarchy ...
Info in <TGeoManager::ConvertReflections>: Converting reflections in: CBMGeom - CBM geometry ...
Info in <TGeoManager::ConvertReflections>: Done
===> GEANT4 materials created and mapped to TGeo ones...
Cannot make material for volume: top
Aborting in CreateLogicalVolume()

*** G4Exception: Aborting execution ***

it looks like a problem in the ExpandNode I will have to look into the code, maybe tommorrow I can tell you more.


regards

Mohammad

Previous Topic: Energy-Loss in Geant3&4
Next Topic: Cmake end with an error message.
Goto Forum:
  


Current Time: Mon Apr 29 18:01:32 CEST 2024

Total time taken to generate the page: 0.00799 seconds