GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Field maps in Macros
Field maps in Macros [message #9828] Tue, 01 December 2009 19:31 Go 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,

I have simplified the PndMultiField, it has now a new ctor:

PndMultiField(TString Map)

The Map can be:

1. Full
which is equivalent to adding all maps in the macro i.e:

PndDipoleMap *map_d1= new PndDipoleMap("DipoleMap1", "R");
PndDipoleMap *map_d2= new PndDipoleMap("DipoleMap2", "R");
PndSolenoidMap *map_s1= new PndSolenoidMap("SolenoidMap1", "R");
PndSolenoidMap *map_s2= new PndSolenoidMap("SolenoidMap2", "R");
PndSolenoidMap *map_s3= new PndSolenoidMap("SolenoidMap3", "R");
PndSolenoidMap *map_s4= new PndSolenoidMap("SolenoidMap4", "R");
AddField(map_t);
AddField(map_d1);
AddField(map_d2);
AddField(map_s1);
AddField(map_s2);
AddField(map_s3);
AddField(map_s4);

2. Dipole:

equivalent to:

PndDipoleMap *map_d1= new PndDipoleMap("DipoleMap1", "R");
PndDipoleMap *map_d2= new PndDipoleMap("DipoleMap2", "R");
AddField(map_d1);
AddField(map_d2);

3. Solenoid:

equivalent to

PndSolenoidMap *map_s1= new PndSolenoidMap("SolenoidMap1", "R");
PndSolenoidMap *map_s2= new PndSolenoidMap("SolenoidMap2", "R");
PndSolenoidMap *map_s3= new PndSolenoidMap("SolenoidMap3", "R");
PndSolenoidMap *map_s4= new PndSolenoidMap("SolenoidMap4", "R");
AddField(map_s1);
AddField(map_s2);
AddField(map_s3);
AddField(map_s4);


so in the macro one can simply write:

Quote:

//---------------------Create and Set the Field(s)----------
PndMultiField *fField= new PndMultiField("FULL");
fRun->SetField(fField);


also the parameter handling for the field is done now in the field itself so the lines:

(PndMultiFieldPar*) rtdb->getContainer("PndMultiFieldPar");
if(fField) { fieldPar->SetParameters(fField); }
fieldPar->setInputVersion(fRun->GetRunId(),1);
fieldPar->setChanged(kTRUE);

are not needed any more (see macro/run/run_sim.C )


regards

Mohammad





[Updated on: Mon, 08 February 2010 00:05] by Moderator

Report message to a moderator

Re: Field maps in Macros [message #9830 is a reply to message #9828] Tue, 01 December 2009 19:44 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Cool!
Re: Field maps in Macros [message #9860 is a reply to message #9828] Thu, 03 December 2009 17:33 Go to previous messageGo to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *kph.uni-mainz.de
Dear Mohammad,
i have to use PndConstfield
since i have to adapt the magnetic field value to
low momenta particle.

after the modifications of PndMultifield, the setting of PndConstField
does not work anymore.

please run at macro/hyp

sim_pid.C
hit_pid.C

If i have missed something, please let me know
how to proceed properly,

thanks in advance
ALicia.

error message:

root -l hit_pid.C >test.txt
Warning in <TClassTable::Add>: class PndSttTrack already in TClassTable
Warning in <TClassTable::Add>: class PndMvdPixel already in TClassTable
Warning in <TClassTable::Add>: class PndMvdStrip already in TClassTable
Warning in <TClassTable::Add>: class PndMvdMCPoint already in TClassTable
Warning in <TClassTable::Add>: class PndMvdDigi already in TClassTable
Warning in <TClassTable::Add>: class PndMvdDigiPixel already in TClassTable
Warning in <TClassTable::Add>: class PndMvdApvHit already in TClassTable
Warning in <TClassTable::Add>: class PndMvdPidCand already in TClassTable
Warning in <TClassTable::Add>: class PndStringVector already in TClassTable
Info in <TGeoManager::TGeoManager>: Geometry Geometry, default geometry created
Warning in <TGeoManager::Init>: Deleting previous geometry: Geometry/default geometry
Info in <TGeoManager::CloseGeometry>: Geometry loaded from file...
Info in <TGeoManager::SetTopVolume>: Top volume is cave. Master volume is cave
Info in <TGeoManager::Voxelize>: Voxelizing...
Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
Info in <TGeoManager::CloseGeometry>: 247 nodes/ 247 volume UID's in FAIR geometry
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------

*** Break *** segmentation violation
Generating stack trace...
0x00007f306a0dc95e in PndFieldCreator::createFairField() at /home/lorente/work/trunk/field/PndFieldCreator.cxx:89 from /home/lorente/work/build/lib/libField.so
0x00007f306ade1f6d in FairRunAna::Init() at /home/lorente/work/trunk/base/FairRunAna.cxx:200 from /home/lorente/work/build/lib/libBase.so
0x00007f306ae17e2a in <unknown> from /home/lorente/work/build/lib/libBase.so
0x00007f3075570d0f in Cint::G__ExceptionWrapper(int (*)(G__value*, char const*, G__param*, int), G__value*, char*, G__param*, int) + 0x3f from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f3075624e60 in G__execute_call + 0x60 from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f3075625d86 in G__call_cppfunc + 0x1f6 from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f3075604404 in G__interpret_func + 0x4b44 from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f30755f0e02 in G__getfunction + 0x28a2 from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f30756ced44 in G__getstructmem + 0x344 from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f30756c8a24 in G__getvariable + 0x42b4 from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f30755c3b1f in G__getitem + 0x8f from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f30755c98df in G__getexpr + 0x46cf from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f3075654857 in G__exec_statement + 0xbdf7 from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f30755b0729 in <unknown> from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f30755b09bb in G__exec_tempfile + 0xb from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f307565f29f in G__process_cmd + 0x5f0f from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCint.so.5.24
0x00007f30763bd1b5 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) + 0x3f5 from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCore.so.5.24
0x00007f30763b91f3 in TCint::ProcessLineSynch(char const*, TInterpreter::EErrorCode*) + 0xf3 from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCore.so.5.24
0x00007f30762f26df in TApplication::ExecuteFile(char const*, int*, bool) + 0x76f from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCore.so.5.24
0x00007f30762f1205 in TApplication::ProcessLine(char const*, bool, int*) + 0x745 from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libCore.so.5.24
0x00007f3074f08403 in TRint::Run(bool) + 0x1a3 from /local/raid0/panda/gentoo-64/jul09/tools/root/lib/libRint.so.5.24
0x00000000004011cd in main + 0x4d from /local/raid0/panda/gentoo-64/jul09/tools/root/bin/root.exe
0x00007f3073ff85c6 in __libc_start_main + 0xe6 from /lib/libc.so.6
0x00000000004010b9 in __gxx_personality_v0 + 0x71 from /local/raid0/panda/gentoo-64/jul09/tools/root/bin/root.exe
Re: Field maps in Macros [message #9861 is a reply to message #9860] Thu, 03 December 2009 19:40 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 should work now, I implemented the new handling for the multi field but for all the single field (Sorry!), anyway now it is also implemented for the const field. I also made a change in your macro, the parameter of the field are done internally now, you do not need to save them your self.


regards


Mohammad
Re: Field maps in Macros [message #9862 is a reply to message #9861] Thu, 03 December 2009 22:29 Go to previous messageGo to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *pools.arcor-ip.net
thank you very much,
Razz
Re: Field maps in Macros [message #9952 is a reply to message #9828] Wed, 13 January 2010 20:38 Go to previous messageGo to next message
Johan Messchendorp is currently offline  Johan Messchendorp
Messages: 693
Registered: April 2007
Location: University of Groningen
first-grade participant

From: *xs4all.nl
Hi all,

as a reminder to all the developers... please clean up your macros and apply the simplification introduced by mr. M.

Greetings,

Johan.
Re: Field maps in Macros [message #9963 is a reply to message #9952] Fri, 15 January 2010 14:34 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *dip.t-dialin.net
Dear collegues,

After the refresh the pandaroot v7467, /macro/run/sim_complete_tpc.C
and /macro/emc/sim_emc.C are tested, but they simply doesn't work due to magnet field.
The field definition have been already replaced as you recommended.

fRun->SetBeamMom(15);
PndMultiField *fField= new PndMultiField("FULL");
fRun->SetField(fField);

If I exclude magnet field in the script, everything looks fine.
Please check macro, specially the part of magnet accessing.

Thank you in advance.

Quote:


============== FairRunSim: Initialising simulation run ==============
Info in <TGeoManager::TGeoManager>: Geometry FAIRGeom, FAIR geometry created
-I- FairGeoMedia Read media
-I container name PndEmcDigiPar

*************************************************************
initialisation for run id 1890884962
*************************************************************
PndEmcDigiPar initialized from Ascii file
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/TransMap.1500.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/DipoleMap1.1500.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/DipoleMap2.1500.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap1.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap2.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap3.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap4.root
create PndFieldPar container PndMultiFieldPar
create PndFieldPar container PndTransPar
create PndFieldPar container PndDipole1Par
create PndFieldPar container PndDipole2Par
create PndFieldPar container PndSolenoid1Par
create PndFieldPar container PndSolenoid2Par
create PndFieldPar container PndSolenoid3Par
create PndFieldPar container PndSolenoid4Par

*** Break *** segmentation violation
Attaching to program: /proc/26895/exe, process 26895
[Thread debugging using libthread_db enabled]
[New Thread 0xb6bdc6c0 (LWP 26895)]
0xb7fac410 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/26895/exe, process 26895
Root > Function sim_complete_tpc() busy flag cleared







[Updated on: Fri, 15 January 2010 14:34]

Report message to a moderator

Re: Field maps in Macros [message #9965 is a reply to message #9828] Fri, 15 January 2010 14:53 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,

I just test them again and all work! I also change the field setting in the sim_emc.C and emc_complete.C and it runs without any problems.

Maybe your parameter files are corrupted, try to delete the old parameter root files from your run and emc directory, you can also use the gdb so that one can see where it crashes. i.e:

gdb root.exe
gdb> r
root> .x sim_complete_tpc .C

regards

Mohammad
Re: Field maps in Macros [message #9968 is a reply to message #9965] Fri, 15 January 2010 21:52 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *dip.t-dialin.net
Dear collegues,

The parameter root files are deleted from run and emc directory before execution of macro script, and running again in gdb.
The output error messages for macro/run/sim_complete_tpc.C are still there.




Quote:



PndEmcDigiPar initialized from Ascii file
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/TransMap.1500.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/DipoleMap1.1500.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/DipoleMap2.1500.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap1.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap2.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap3.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap4.root
create PndFieldPar container PndMultiFieldPar
create PndFieldPar container PndTransPar
create PndFieldPar container PndDipole1Par
create PndFieldPar container PndDipole2Par
create PndFieldPar container PndSolenoid1Par
create PndFieldPar container PndSolenoid2Par
create PndFieldPar container PndSolenoid3Par
create PndFieldPar container PndSolenoid4Par

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6b1a6c0 (LWP 10442)]
0xb3d79ac4 in ROOT::Init68 () from /home/donghee/GSI/buildpanda/lib/libField.so





Detail backtrace of all stack frames shows failure of field map reading at below.
In ordet to do very simple test, pandaroot trunk has been downloaded, installed and directly example macros are excuted without any modification.
Every script have same problem in my current OS, in which I'm using now Ubuntu 32bit.
Do you have some more idea for this problem?

Thank you for your help!
Donghee

Quote:


(gdb) bt
#0 0xb3d79ac4 in ROOT::Init68 () from /home/donghee/GSI/buildpanda/lib/libField.so
#1 0xb6dd2d60 in ?? () from /usr/lib/libstdc++.so.6
#2 0xb3fb95ec in FairRunSim::SetFieldContainer (this=0x8831e68)
at /home/donghee/GSI/pandaroot/base/FairRunSim.cxx:183
#3 0xb3fbc0bb in FairRunSim::Init (this=0x8831e68) at /home/donghee/GSI/pandaroot/base/FairRunSim.cxx:147
#4 0xb3ff225d in G__FairDict_662_0_4 (result7=0xbfbb36ac, funcname=0x882e5c0 "\001", libp=0xbfba9040, hash=0)
at /home/donghee/GSI/buildpanda/base/FairDict.cxx:9073
#5 0xb70402d7 in Cint::G__ExceptionWrapper () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#6 0xb70fc996 in G__execute_call () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#7 0xb70fdb40 in G__call_cppfunc () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#8 0xb70d0027 in G__interpret_func () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#9 0xb70bdf69 in G__getfunction () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#10 0xb71badc4 in G__getstructmem () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#11 0xb71b026a in G__getvariable () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#12 0xb70909ef in G__getitem () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#13 0xb70982e8 in G__getexpr () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#14 0xb712f386 in G__exec_statement () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#15 0xb70d2280 in G__interpret_func () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#16 0xb70be0bd in G__getfunction () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#17 0xb709100b in G__getitem () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#18 0xb70982e8 in G__getexpr () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#19 0xb70a3ec2 in G__calc_internal () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#20 0xb7139200 in G__process_cmd () from /home/donghee/GSI/fairsoft/tools/root/lib/libCint.so.5.24
#21 0xb7945c10 in TCint::ProcessLine () from /home/donghee/GSI/fairsoft/tools/root/lib/libCore.so.5.24
#22 0xb79458cf in TCint::ProcessLineSynch () from /home/donghee/GSI/fairsoft/tools/root/lib/libCore.so.5.24
#23 0xb786a4b0 in TApplication::ExecuteFile () from /home/donghee/GSI/fairsoft/tools/root/lib/libCore.so.5.24
#24 0xb786aa9c in TApplication::ProcessFile () from /home/donghee/GSI/fairsoft/tools/root/lib/libCore.so.5.24
#25 0xb7867ece in TApplication::ProcessLine () from /home/donghee/GSI/fairsoft/tools/root/lib/libCore.so.5.24
#26 0xb6dff101 in TRint::HandleTermInput () from /home/donghee/GSI/fairsoft/tools/root/lib/libRint.so.5.24
#27 0xb6dfe3b5 in TTermInputHandler::Notify () from /home/donghee/GSI/fairsoft/tools/root/lib/libRint.so.5.24
#28 0xb6e00b34 in TTermInputHandler::ReadNotify () from /home/donghee/GSI/fairsoft/tools/root/lib/libRint.so.5.24
#29 0xb795ce65 in TUnixSystem::CheckDescriptors () from /home/donghee/GSI/fairsoft/tools/root/lib/libCore.so.5.24
#30 0xb795d37f in TUnixSystem::DispatchOneEvent () from /home/donghee/GSI/fairsoft/tools/root/lib/libCore.so.5.24
#31 0xb78cb2a1 in TSystem::InnerLoop () from /home/donghee/GSI/fairsoft/tools/root/lib/libCore.so.5.24
#32 0xb78cf301 in TSystem::Run () from /home/donghee/GSI/fairsoft/tools/root/lib/libCore.so.5.24
#33 0xb7866397 in TApplication::Run () from /home/donghee/GSI/fairsoft/tools/root/lib/libCore.so.5.24
#34 0xb6e005fb in TRint::Run () from /home/donghee/GSI/fairsoft/tools/root/lib/libRint.so.5.24
#35 0x08048eb5 in main ()

Re: Field maps in Macros [message #9972 is a reply to message #9968] Sun, 17 January 2010 13:03 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *dip.t-dialin.net
Dear collegues,

I have tested the pandaroot with GSI etch 64bit.
It works fine, but only in ubuntu-32bit macro script have trouble.

Is there a simple solution?

Thanks...
Re: Field maps in Macros [message #9973 is a reply to message #9972] Sun, 17 January 2010 13:32 Go to previous messageGo to next message
Johan Messchendorp is currently offline  Johan Messchendorp
Messages: 693
Registered: April 2007
Location: University of Groningen
first-grade participant

From: *xs4all.nl
Dear Donghee,

Unfortunately, I cannot test it, since my MAC machine with various linux Virtual Machines died last year and I am waiting for a new one. Does anyone else has a Ubuntu 32-bit (Lenny or Etch, please specify???) and would be able to test this, or even better, place it on the Dashboard?

Greetings,

Johan.
Re: Field maps in Macros [message #9975 is a reply to message #9973] Mon, 18 January 2010 09:39 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
In my SL4.7 32bit I am able to run fine the macro.

The only thing is that I have thousands of messages:

PndTpcDetector::ProcessHits: EXIT q==0

Is it normal?
I think it would be better to remove these messages.
Re: Field maps in Macros [message #9976 is a reply to message #9975] Mon, 18 January 2010 09:50 Go to previous messageGo to next message
Johan Messchendorp is currently offline  Johan Messchendorp
Messages: 693
Registered: April 2007
Location: University of Groningen
first-grade participant

From: *KVI.nl
Felix, what to do with these TPC message. Could you remove them, or are they serious and do they need to be solved. Please your comments,

Johan.
Re: Field maps in Macros [message #9977 is a reply to message #9973] Mon, 18 January 2010 14:35 Go to previous messageGo to next message
M.Babai is currently offline  M.Babai
Messages: 46
Registered: January 2008
Location: Netherlands
continuous participant
From: *direct-adsl.nl
Johan Messchendorp wrote on Sun, 17 January 2010 13:32

Dear Donghee,

Unfortunately, I cannot test it, since my MAC machine with various linux Virtual Machines died last year and I am waiting for a new one. Does anyone else has a Ubuntu 32-bit (Lenny or Etch, please specify???) and would be able to test this, or even better, place it on the Dashboard?

Greetings,

Johan.


Hi Johan, I have got a 64-bit Debian 5.x (Lenny). Is nightly enough?
I can set a 32-bit version available, from the next week, or is it too late?
Greetings,

[Updated on: Mon, 18 January 2010 14:42]

Report message to a moderator

Re: Field maps in Macros [message #10004 is a reply to message #9975] Thu, 21 January 2010 13:29 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: *natpool.mwn.de
Sorry for replying so late (I was on vacation and now I am ill).

The message you see is a harmless warning. Everything is working fine. I removed this debug output.
Re: Field maps in Macros [message #10229 is a reply to message #9977] Thu, 18 February 2010 17:07 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *dip.t-dialin.net
Dear Panda Developers,

Since 2 months ago I have still trouble to run all scripts in Pandaroot under Ubuntu 8.04.2 hardy 32bit.
During the MC simulation, error message looks following.
Could somebody test it in virtual machine.
If you can give some comment ,any suggestion, and any semi-solution, then would be happy at this moment.
I guess that there are some kind of mishandling for memory in the function of SetFieldContainer
or too large/short memory allocation, especailly with 32bit OS.
The correct issues and indications for this problem are shown at the end of error message, but unfortunately I couldn't reach to get a solution with my poor knowledge of OS system.

I know already a simple solution.
Please, don't say something like this!
"Donghee, You can simply use 64bit or upgrade 8.04 to 8.10, that is already tested and properly, nicely working!, let's thinking about it!"
I know this Smile that is a final solution. not right now!

I'm really sorry for my stupid question!
Best wishes,
Donghee




Quote:



*************************************************************
initialisation for run id 1838244001
*************************************************************
FairRunSim::Init() create visualisation manager
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/TransMap.1500.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/DipoleMap1.1500.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/DipoleMap2.1500.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap1.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap2.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap3.root
-I- PndFieldMap: Reading field map from ROOT file /home/donghee/GSI/pandaroot/input/SolenoidMap4.root
create PndFieldPar container PndMultiFieldPar
create PndFieldPar container PndTransPar
create PndFieldPar container PndDipole1Par
create PndFieldPar container PndDipole2Par
create PndFieldPar container PndSolenoid1Par
create PndFieldPar container PndSolenoid2Par
create PndFieldPar container PndSolenoid3Par
create PndFieldPar container PndSolenoid4Par

*** Break *** segmentation violation

===========================================================
There was a crash (#7 0xb7a336cd in SigHandler () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCore.so.5.26).
This is the entire stack trace of all threads:
===========================================================
#0 0xb7fe0410 in __kernel_vsyscall ()
#1 0xb6ddb4d3 in waitpid () from /lib/tls/i686/cmov/libc.so.6
#2 0xb6d7e643 in ?? () from /lib/tls/i686/cmov/libc.so.6
#3 0xb6ea2d7d in system () from /lib/tls/i686/cmov/libpthread.so.0
#4 0xb7a2f54d in TUnixSystem::Exec () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCore.so.5.26
#5 0xb7a36792 in TUnixSystem::StackTrace () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCore.so.5.26
#6 0xb7a335e6 in TUnixSystem::DispatchSignals () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCore.so.5.26
#7 0xb7a336cd in SigHandler () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCore.so.5.26
#8 0xb7a2cd6d in sighandler () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCore.so.5.26
#9 <signal handler called>
#10 0xb3f77ac4 in ROOT::Init68 () from /home/donghee/GSI/buildpanda/lib/libField.so
#11 0xb6fcad60 in ?? () from /usr/lib/libstdc++.so.6
#12 0xb41ce0b8 in FairRunSim::SetFieldContainer (this=0x88f0ad8) at /home/donghee/GSI/pandaroot/base/FairRunSim.cxx:183
#13 0xb41d0b87 in FairRunSim::Init (this=0x88f0ad8) at /home/donghee/GSI/pandaroot/base/FairRunSim.cxx:147
#14 0xb4206f23 in G__FairDict_669_0_4 (result7=0xbffa7e68, funcname=0x8160bb8 "\001", libp=0xbff9d824, hash=0)
at /home/donghee/GSI/buildpanda/base/FairDict.cxx:9090
#15 0xb7242655 in Cint::G__ExceptionWrapper () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#16 0xb72fa7d6 in G__execute_call () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#17 0xb72fd090 in G__call_cppfunc () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#18 0xb72d1da3 in G__interpret_func () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#19 0xb72be58a in G__getfunction () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#20 0xb73bf414 in G__getstructmem () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#21 0xb73b465e in G__getvariable () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#22 0xb7292f2f in G__getitem () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#23 0xb7297d65 in G__getexpr () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#24 0xb732d42e in G__exec_statement () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#25 0xb72d41ee in G__interpret_func () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#26 0xb72be6ff in G__getfunction () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#27 0xb72934dd in G__getitem () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#28 0xb7297d65 in G__getexpr () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#29 0xb72a4cf2 in G__calc_internal () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#30 0xb733b2b7 in G__process_cmd () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCint.so.5.26
#31 0xb7a1ceb0 in TCint::ProcessLine () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCore.so.5.26
#32 0xb7a1cb6f in TCint::ProcessLineSynch () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCore.so.5.26
#33 0xb793f627 in TApplication::ExecuteFile () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCore.so.5.26
#34 0xb793fc1c in TApplication::ProcessFile () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCore.so.5.26
#35 0xb793cf5e in TApplication::ProcessLine () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libCore.so.5.26
#36 0xb6ff7cd4 in TRint::Run () from /home/donghee/GSI/fairsoft_jan10/tools/root/lib/libRint.so.5.26
#37 0x08048eb5 in main ()
===========================================================


The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#10 0xb3f77ac4 in ROOT::Init68 () from /home/donghee/GSI/buildpanda/lib/libField.so
#11 0xb6fcad60 in ?? () from /usr/lib/libstdc++.so.6
#12 0xb41ce0b8 in FairRunSim::SetFieldContainer (this=0x88f0ad8) at /home/donghee/GSI/pandaroot/base/FairRunSim.cxx:183
#13 0xb41d0b87 in FairRunSim::Init (this=0x88f0ad8) at /home/donghee/GSI/pandaroot/base/FairRunSim.cxx:147
===========================================================

Re: Field maps in Macros [message #10231 is a reply to message #10229] Thu, 18 February 2010 17:48 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
For this thing I am out of the business,
I hope somebody else will comment and solve it. Sorry.
Re: Field maps in Macros [message #10234 is a reply to message #10229] Fri, 19 February 2010 00:58 Go to previous messageGo to next message
Johan Messchendorp is currently offline  Johan Messchendorp
Messages: 693
Registered: April 2007
Location: University of Groningen
first-grade participant

From: *xs4all.nl
Dear Donghee,

For this, I would refer to the following thread on the forum:

http://forum.gsi.de/index.php?t=tree&goto=10217&rid=981&S=94 6a02b8347d89e91707581eef92e617#msg_10217

Mohammad B., can we make Ubuntu 8.04, 32-bit available as a virtual machine and give Donghee access?

Johan.

[Updated on: Fri, 19 February 2010 11:09]

Report message to a moderator

Re: Field maps in Macros [message #10235 is a reply to message #10229] Fri, 19 February 2010 08:33 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Donghee

Could you please try with an older version of the external packages, e.g. jul09. I had already a problem where Root crashes with some similar crazy error messages and this happens only with
the new external packages.
This will not solve the general problem but it may help you to go on with your work.

Ciao

Florian
Re: Field maps in Macros [message #10236 is a reply to message #10235] Fri, 19 February 2010 10:36 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Is it possible that the field root files should be created with the new root version?
Re: Field maps in Macros [message #10237 is a reply to message #10234] Fri, 19 February 2010 11:18 Go to previous messageGo to next message
M.Babai is currently offline  M.Babai
Messages: 46
Registered: January 2008
Location: Netherlands
continuous participant
From: *KVI.nl
Johan Messchendorp wrote on Fri, 19 February 2010 00:58

Dear Donghee,

For this, I would refer to the following thread on the forum:

http://forum.gsi.de/index.php?t=tree&goto=10217&rid=981&S=94 6a02b8347d89e91707581eef92e617#msg_10217

Mohammad B., can we make Ubuntu 8.04, 32-bit available as a virtual machine and give Donghee access?

Johan.


No prob., today, I will install a 32-bit Ubuntu 8.10.

Donghee,
I will contact you asa the installation is ready to use.
Best wishes,
/MB
Re: Field maps in Macros [message #10247 is a reply to message #10229] Sun, 21 February 2010 17:11 Go to previous messageGo to next message
Johan Messchendorp is currently offline  Johan Messchendorp
Messages: 693
Registered: April 2007
Location: University of Groningen
first-grade participant

From: *xs4all.nl
Dear Donghee,

We could reproduce your problem related to reading the field maps on a virtual machine running Ubuntu 8.04. However, so far we could not find a quick solution for your problem. It might well be that we find a solution in the course of time, but we will not put a very high priority to focus on solving these problems, in particular, since fairroot and pandaroot is already supported on various platforms, and there are so many other issues with high priority to tackle. For a list of supported sites, please take a look at the fairroot website (http://fairroot.gsi.de). You have to understand that it always remains a nightmare (and a lot of effort) to make it compatible for everything, although we (well, in particular the fairroot-team) are trying hard. Therefore, we will continue to find the origin of the problem, but it will be on a very low priority. As a general remark, I would advise those who wants to run the code "out-of-the-box" should to try to stick to the sites which are "officially" supported. This does not mean that we are not interested in the compatibility with "other" platforms etc, but a quick solution cannot be expected.

Best wishes,

Johan.

[Updated on: Sun, 21 February 2010 17:21]

Report message to a moderator

Re: Field maps in Macros [message #10250 is a reply to message #10247] Mon, 22 February 2010 10:53 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 Johan,

I can fully understand all situation, and agree on your comment about the issue of high or low priority.
I'm already satisfied for any kind help and all efforts of developers.


One more remark is that I have tried to update ubuntu 8.04 to 8.10(32bit).
It doesn't help as I expected, so one of simple solution is to use new OS platform with 64bit, specially ubuntu case.

Best regards,
Donghee Kang

Previous Topic: pandaroot feb10 release
Next Topic: [FIXED] problem with GEANT4 materials
Goto Forum:
  


Current Time: Sun Nov 24 03:49:34 CET 2024

Total time taken to generate the page: 0.01096 seconds