GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » g3config.C and g3config_new.C
g3config.C and g3config_new.C [message #8193] Thu, 09 April 2009 14:52 Go to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
Hi,

I'm trying to produce some simulation data.
At present, I'm following the example in the macro/fsim/* and macro/run/*

When I do run my MC script with fRun->SetName("TGeant4");,
the script is working properly well.
But if I try to run fRun->SetName("TGeant3");, they could not access gconfig/g3Config.C

Error message looks like this:
------------------------------------------------------------
FairGeanePro::TGeant3 has not been initialized! ABORTING!
terminate called without an active exception
------------------------------------------------------------

I found in gconfig/ that there are new additional version with name of g3Config_new.C. Now, I assume that I have to exchange this file.
How can I change from g3Config.C to g3Config_new.C
Do I need to recomplie full pandaroot after rename of this file?
or is it possible to change this file locally?
What do I have to do?

Best regards,
Donghee Kang







Re: g3config.C and g3config_new.C [message #8194 is a reply to message #8193] Thu, 09 April 2009 15:38 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
When I try to run a demo with following script which is introduced in genfit tutorial
> root -l -q recotasks/demo/runMC.C
I have same problem with TGeant3.
But if I use TGeant4, it is going to be smooth.

Some messages from using TGeant3 are attached in below at the end.
Does anybody teach me what is happening in Geant3 part?

Thank you!





Error message:
==============================================================
============== FairRunSim: Initialising simulation run ==============
Info in <TGeoManager::TGeoManager>: Geometry FAIRGeom, FAIR geometry created
-I- FairGeoMedia Read media
FairRunSim::Init() create visualisation manager
-------------- Standard Config is called ------------------------------------
Loading Geant3 libraries ...
Loading Geant3 libraries ... finished
Error: Symbol TGeant3 is not defined in current scope /home/donghee/GSI/pandaroot/gconfig/g3Config.C:9:
Warning: Automatic variable TGeant3* geant3 is allocated /home/donghee/GSI/pandaroot/gconfig/g3Config.C:9:
(long)0
*** Interpreter error recovered ***
SetCuts Macro: Setting Processes..
Error: illegal pointer to class object gMC 0x0 1584 /home/donghee/GSI/pandaroot/gconfig/SetCuts.C:23:
*** Interpreter error recovered ***

*** Break *** segmentation violation
Attaching to program: /proc/13241/exe, process 13241
[Thread debugging using libthread_db enabled]
[New Thread 0xb6c446c0 (LWP 13241)]
done.
0xb7efd410 in __kernel_vsyscall ()
error detected on stdin
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/13241/exe, process 13241

[Updated on: Thu, 09 April 2009 15:40]

Report message to a moderator

Re: g3config.C and g3config_new.C [message #8198 is a reply to message #8194] Thu, 09 April 2009 18:39 Go to previous messageGo to next message
Felix Boehmer is currently offline  Felix Boehmer
Messages: 149
Registered: May 2007
Location: Munich
first-grade participant

From: *pools.arcor-ip.net
Hi

well something's wrong with your g3Config.C.... can you post it here?

To answer your first question: you don't have to recompile, you can change g3Config.C and SetCuts.C without any further steps necessary.

If you want to create data with different settings, you can also specify a custom directory in your macros for the g3Config.C and the SetCuts.C with a statement like

fRun->SetUserCuts(dir+"SetCuts.C");
fRun->SetUserConfig(dir+"g3Config.C");


with dir being your custom directory and fRun the FairRunSim* pointer.

Cheers

Felix
Re: g3config.C and g3config_new.C [message #8200 is a reply to message #8198] Thu, 09 April 2009 22:46 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: *dip.t-dialin.net
Hi,

It seems that your Geant3 installation has some problems! can you check if the libgeant321.so exists? it should be in your $SIMPATH/simulation/geant3/lib

if this library is not there then nither Geant3 nor Geane will work!

Mohammad
Re: g3config.C and g3config_new.C [message #8203 is a reply to message #8200] Tue, 14 April 2009 10:06 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
Absolutely, I have a libgeant321.so library in $SIMPATH/transport/geant3/lib/libgeant321.so

Externla package is installed including geant3 and geant4 without problem.

That means that geane and geant3 must to be worked.

Thank you!
Re: g3config.C and g3config_new.C [message #8205 is a reply to message #8198] Tue, 14 April 2009 10:57 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
Dear all,

Could you check my scripts for Panda MC simulation?
I would like to know where is exactly wrong!
You can find an attached tar ball which include two root scripts, copy of g3Config_new.C and geane.C, and 10 events data file.


Please do untar in .../pandaroot/macro/dvcs
A small data file is put in ../pandaroot/macro/dvcs/hepevt/Panda_event_1.txt and problematic gconfig scripts, geane.C and g3Config_new.C can be found in ../pandaroot/macro/dvcs/gconfig.
I didn't touch that. They are original files.

Then you can do run My_dvcs_full_run.C and My_dvcs_full_reco.C
in regular sequence.
If you set My_dvcs_full_run.C to work, probably, it should be worked. then in the file of My_dvcs_full_reco.C you can meet some error relating TGeant3Geo.

Thank you for your kind teaching and debugging in advance!

Best regards,
Donghee

  • Attachment: dvcs.tar.gz
    (Size: 7.48KB, Downloaded 304 times)
Re: g3config.C and g3config_new.C [message #8206 is a reply to message #8205] Tue, 14 April 2009 11:10 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
Could you please try to add in your gconfig/basiclibs.C the following line at the end:

gSystem->Load("SIMPATH/transport/geant3/lib/libgeant321.so");

Maybe if you put the correct $SIMPATH it will be better. I have the feeling this is a problem of gcc 4.3.2. Which gcc version do you have? (gcc -v).

Please tell me if this fix works or not.

Re: g3config.C and g3config_new.C [message #8207 is a reply to message #8206] Tue, 14 April 2009 11:27 Go to previous messageGo to next message
Bjoern Spruck is currently offline  Bjoern Spruck
Messages: 56
Registered: June 2005
Location: Gießen
continuous participant
From: *physik.uni-giessen.de
Short remark to Stefanos entry:

The sytem where this solved this "Geant3" problem was an
Ubuntu 64bit,
gcc-Version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)


Björn
Re: g3config.C and g3config_new.C [message #8208 is a reply to message #8193] Tue, 14 April 2009 11:44 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
I'm working with OS ubuntu 8.04 32bit
and gcc version

>gcc -V
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

[Updated on: Tue, 14 April 2009 11:56]

Report message to a moderator

Re: g3config.C and g3config_new.C [message #8209 is a reply to message #8208] Tue, 14 April 2009 11:55 Go to previous message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
Dear all,

After putting this special line gSystem->Load("SIMPATH/transport/geant3/lib/libgeant321.so"); in basiclib().

The message of TGeant3Geo loading error disappears and it seems to be worked.

However still I have a lot of other problem for understanding of all class and pandastructure.

Thank you for your kind help again.

I will post my other problem with different title soon.

Best wishes,
Donghee
Previous Topic: Connection of Geant4 to Geane
Next Topic: Possibility of combining of digitization and reconstruction
Goto Forum:
  


Current Time: Tue Dec 03 00:35:17 CET 2024

Total time taken to generate the page: 0.00610 seconds