[FIXED] Geane for luminosity monitor: TGeant3 not initialized [message #10291] |
Wed, 24 February 2010 14:49 |
Mathias Michel
Messages: 21 Registered: May 2009 Location: Mainz
|
occasional visitor |
From: *kph.uni-mainz.de
|
|
Hi all.
I'd like to use Geane for backtracking of reconstructed tracks in the luminosity monitor through the dipole.
Therefore i had a look at the wiki page about Geane, the tutorials and the pid package, still i have problems getting FairGeanePro initialized:
FairGeanePro::TGeant3 has not been initialized! ABORTING!
So could someone give me a hint where i can get more information about Geane in Pandaroot or give me a point to start?
Thinks like the usage of the PndEmcMapper are mysterious to me
Thanks
Mathias
[Updated on: Thu, 25 February 2010 12:41] Report message to a moderator
|
|
|
|
Re: Geane for luminosity monitor [message #10293 is a reply to message #10291] |
Wed, 24 February 2010 15:29 |
Mathias Michel
Messages: 21 Registered: May 2009 Location: Mainz
|
occasional visitor |
From: *kph.uni-mainz.de
|
|
I tried to find the newest macros, like in the pid package, so this is how my macro looks like:
FairRunAna *fRun= new FairRunAna();
fRun->SetInputFile(MCFile);
fRun->AddFriend(DigiFile);
...
fRun->SetOutputFile(outFile);
FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
FairParRootFileIo* parInput1 = new FairParRootFileIo(kTRUE);
parInput1->open(parFile.Data(),"UPDATE");
rtdb->setFirstInput(parInput1);
FairGeane *Geane = new FairGeane();
fRun->AddTask(Geane)
PndLmdGeaneTask* lmdgeane = new PndLmdGeaneTask();
fRun->AddTask(lmdgeane);
rtdb->setOutput(parInput1);
rtdb->print();
fRun->Init();
PndEmcMapper *emcMap = PndEmcMapper::Instance(6);
//Geane->SetField(fRun->GetField());
fRun->Run(0,nEvents);
[Updated on: Wed, 24 February 2010 15:30] Report message to a moderator
|
|
|
|
|
|
|
Re: Geane for luminosity monitor [message #10306 is a reply to message #10305] |
Thu, 25 February 2010 11:47 |
StefanoSpataro
Messages: 2736 Registered: June 2005 Location: Torino
|
first-grade participant |
From: *to.infn.it
|
|
Hi,
at a first glance, everything seems fine.
But considering that it is crashing, i would suggest few changes:
* in the .h file, remove TGeant3 *gMC3;
* in the macro, move FairGeane part before Parameter database (and after fRun->SetOutputFile)
* in the macro, again, parInput1->open(parFile.Data()) (no "UPDATE")
After, if it continues to crash, please send the full log from your macro. Maybe there are other hidden problems that cause the crash.
|
|
|
|
Re: Geane for luminosity monitor [message #10308 is a reply to message #10291] |
Thu, 25 February 2010 12:15 |
Mathias Michel
Messages: 21 Registered: May 2009 Location: Mainz
|
occasional visitor |
From: *kph.uni-mainz.de
|
|
wow, moving the Geane part before the parameter-stuff did the trick somehow!
It's still crashing in the exec but that much i expected because the stuff there is copied without sense yet. I think i am now able to play with Geane.
Thank you very much!!
[Updated on: Thu, 25 February 2010 12:16] Report message to a moderator
|
|
|
|
|