GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » My updated fairtools library not loading
Re: My updated fairtools library not loading [message #13660 is a reply to message #13658] Mon, 25 June 2012 19:59 Go to previous messageGo to previous message
Raghav Kunnawalkam is currently offline  Raghav Kunnawalkam
Messages: 63
Registered: February 2012
Location: Stony Brook, New York
continuous participant
From: *dyn.optonline.net
Hi Mohammad and Florian

Thanks guys for pointing out the necessary changes.

I did create a new library called libEicTools and put in it all the necessary things which i thought were needed to run reconstruction from pandaroot/PndTools/generaltools and analysistools.

Now i am having no problems regarding fairtools or other of my old libraries (i had to change a few things in fairmcstack regarding my new detectors).

So now when i try to run my sample reconstruction program including libEicTools, it tells me

Processing eic_reco.C...
dlopen error: dlopen(/Users/raghav/fairroot/build/lib/libEicTools.so, 9): Symbol not found: __ZN10VAbsFitter6FitAllEv
Referenced from: /Users/raghav/fairroot/build/lib/libEicTools.so
Expected in: flat namespace
in /Users/raghav/fairroot/build/lib/libEicTools.so
Load Error: Failed to load Dynamic link library /Users/raghav/fairroot/build/lib/libEicTools.so
(int)(-1)
root [1]

I thought that this had something to do with the things in fitter directory which is present in EicTools/Fitter, (in panda it is in PndTools/AnalysisTools/Fitter), so i removed them and tried to create the library but i found out that i needed them.

So now i am pretty much stuck regarding this issue. but as far as i see doing a reconstruction is pretty simple right? I just followed the example from panda

FairFileNameCreator creator(MCFile.Data());
TString DigiFile = creator.GetDigiFileName(false).c_str();
TString outFile = creator.GetRecoFileName(false).c_str();

std::cout << "MCFile : " << MCFile.Data()<< std::endl;
std::cout << "DigiFile: " << DigiFile.Data()<< std::endl;
std::cout << "RecoFile: " << outFile.Data()<< std::endl;

// ----- Timer ------------------------------------------------------
TStopwatch timer;
timer.Start();
// ------------------------------------------------------------------------
// ----- Reconstruction run -------------------------------------------
FairRunAna *fRun= new FairRunAna();
fRun->SetInputFile(MCFile);
fRun->AddFriend(DigiFile);
fRun->SetOutputFile(outFile);
// ------------------------------------------------------------------------
// ----- Parameter database --------------------------------------------
FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
FairParRootFileIo* parInput1 = new FairParRootFileIo(kTRUE);
parInput1->open(parFile.Data(),"UPDATE");
rtdb->setFirstInput(parInput1);

rtdb->setOutput(parInput1);
rtdb->print();

fRun->Init();

fRun->Run(0,nEvents);

This is basically what i have in my reco file. Please tell me if i need to add or remove anything from it. (i did specify all the required things like file name etc..)

As always, your help is much appreciated.
Cheers
Raghav
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [SOLVED] about version "1.6.17"-- FairRoot Revision - 15449 Branch
Next Topic: Geant4 not working with mc generation
Goto Forum:
  


Current Time: Wed Apr 24 11:44:23 CEST 2024

Total time taken to generate the page: 0.01112 seconds