My updated fairtools library not loading [message #13651] |
Sat, 23 June 2012 02:13 |
Raghav Kunnawalkam
Messages: 63 Registered: February 2012 Location: Stony Brook, New York
|
continuous participant |
From: *dyn.optonline.net
|
|
Hi All
I successfully added to my fairtools directory all the classes that are needed for me to do reconstruction on the data produced by fairroot.
I built cmake and created that library. Now i followed the example given in panda for doing reconstruction and my created library libFairTools.so has some problems.
this is the output:
Processing eic_reco.C...
dlopen error: dlopen(/Users/raghav/fairroot/build/lib/libFairTools.so, 9): Symbol not found: __ZN10FairParSet4initEv
Referenced from: /Users/raghav/fairroot/build/lib/libFairTools.so
Expected in: flat namespace
in /Users/raghav/fairroot/build/lib/libFairTools.so
Load Error: Failed to load Dynamic link library /Users/raghav/fairroot/build/lib/libFairTools.so
(int)(-1)
I have attached the cmake file that used to create that particular library.
I remember sometime back that when i had a similar problem with libraries, i tried rearranging the order of loading them into my program and it worked, but i would like to know what does that error actually means?
I bascially took all the classes from pndtools and a few others like rho (which i am not sure what it means) and modified them to my liking and pasted them into the fairtools folder.
As always, i would really appreciate any help.
Cheers
Raghav
[Updated on: Sat, 23 June 2012 02:20] Report message to a moderator
|
|
|
|
|
Re: My updated fairtools library not loading [message #13655 is a reply to message #13654] |
Sat, 23 June 2012 18:36 |
Mohammad Al-Turany
Messages: 518 Registered: April 2004 Location: GSI, Germany
|
first-grade participant |
From: *dip.t-dialin.net
|
|
Hi Raghav,
could it be possible that you miss-used the existing FairTool library for your analysis stuff? if this is the case this will never work! you have simply a cyclic dependency. FairTools contains only the FairLogger at the moment and it is used by all other base packages.
regards
Mohammad
[Updated on: Sat, 23 June 2012 21:18] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: My updated fairtools library not loading [message #13662 is a reply to message #13661] |
Tue, 26 June 2012 18:16 |
Raghav Kunnawalkam
Messages: 63 Registered: February 2012 Location: Stony Brook, New York
|
continuous participant |
From: *physics.sunysb.edu
|
|
Hi Stefano
Thanks for that, i was creating it but not actually calling it. After that it still gave me some problems regarding another fairtrack symbol but that went away after i loaded my fairtrkbase library. I think that i am getting the hang of this library loading business now.
So now the programs runs past the libraries stage and it is getting stuck when it tries to create a digi file.
Processing eic_reco.C...
MCFile : data/eic_tau_p_without_selection.mc.root
DigiFile: data/eic_tau_p_without_selection_mc_digi.root
RecoFile: data/eic_tau_p_without_selection_mc_reco.root
FairRootManager::OpenOutFile("data/eic_tau_p_without_selection_mc_reco.root ")
------------------------------------------------------------------------ --------
-------------- actual containers in runtime database -------------------------
-------------- runs, versions ------------------------------------------------
run id
container 1st-inp 2nd-inp output
-------------- input/output --------------------------------------------------
first Input:
OBJ: FairParRootFile data/params_tau_p_without_selection.mc.root : 0 at: 0x7f847973ca60
Root file I/O data/params_tau_p_without_selection.mc.root is open
detector I/Os: FairGenericParIo
second input: none
output:
OBJ: FairParRootFile data/params_tau_p_without_selection.mc.root : 0 at: 0x7f847973ca60
Root file I/O data/params_tau_p_without_selection.mc.root is open
detector I/Os: FairGenericParIo
Error in <TFile::TFile>: file data/eic_tau_p_without_selection_mc_digi.root does not exist
[FATAL ] [26.06.2012 12:11:01] [FairRootManager.cxx::AddFriendsToChain:1754] Error opening the file InputChain which should be added to the input chain or as friend chain
[FATAL ] We stop the execution of the process at this point.
[FATAL ] For later analysis we write a core dump to core_dump_91051
this is what is happening right now and i will keep working on it and update you guys if i find something. I also attached the reco macro (which is basically the one in pandaroot)
Cheers
Raghav
-
Attachment: eic_reco.C
(Size: 4.25KB, Downloaded 242 times)
[Updated on: Tue, 26 June 2012 18:16] Report message to a moderator
|
|
|
|
Re: My updated fairtools library not loading [message #13664 is a reply to message #13663] |
Tue, 26 June 2012 18:56 |
Raghav Kunnawalkam
Messages: 63 Registered: February 2012 Location: Stony Brook, New York
|
continuous participant |
From: *physics.sunysb.edu
|
|
Hi Stefano
the digi file is not created. that is the actual problem. Even though it says that
Processing eic_reco.C...
MCFile : data/eic_tau_p_without_selection.mc.root
DigiFile: data/eic_tau_p_without_selection_mc_digi.root
RecoFile: data/eic_tau_p_without_selection_mc_reco.root
FairRootManager::OpenOutFile("data/eic_tau_p_without_selection_mc_reco.root ")
I cannot see the digifile in my data directory. But i do see the reco file.
This is what i dont understand since i dont see any difference between the way i create both the files
Cheers
Raghav
UPDATE: I played around with the reco file in panda (pandaroot/macros/run/reco_complete_stt.C) and it is also giving me the same error.
It also says that it is not able to see the digifile even though it says that it creates it.
[Updated on: Tue, 26 June 2012 19:19] Report message to a moderator
|
|
|
|
Re: My updated fairtools library not loading [message #13666 is a reply to message #13665] |
Wed, 27 June 2012 09:12 |
Florian Uhlig
Messages: 424 Registered: May 2007
|
first-grade participant |
From: *gsi.de
|
|
Hi Raghav,
Quote: |
I think that i finally understand what the problem here is. So i need to create a digifile first using a macro and some parameter file and then call the reconstruction run that i am doing now.
|
This is correct. The normal sequence
1. Simulation which creates perfect MC Data.
2. Digitization which creates out of the MC data a data format which would be
produced by the real detector. For example out of the position of a MCPoint the
fired detector channel is calculated and written to output.
3. Reconstruction means that you come from your detector data to something like
particles (tracks with particle ID)
4. In the Analysis step you do your physics analysis, whatever this means for you.
Quote: |
Can you guys tell me if there is a prescription or a template on how to create the .par file. I see that it is very important for the digi and reco runs because it contains detector and individual specific cuts which vary from person to person.
|
There is no such prescription because the parameters very much depend on the procedure how you come from MC data to detector data. This you can do in a first step with a simple smearing of the MCPoint, where you probably don't need
parameters from a parameter file. You can simply hard code them. If you then have a
running chain you can identify the parameters in the task and the create a parameter file which contain the needed information. In my opinion you can't copy everything from Panda. You have to think what you need and implement only this stuff. This also helps to understand how the framework works
Quote: |
Right now when i look at the all.par file (pandaroot/macro/params/all.par) i see a lot of things which make sense right of the bat but a lot more which i really have no idea how to make for my detector.
|
As I said. You can't do copy and paste from Panda. You have to define what you need and then you can look how such a thing is implemented in Panda and try to learn from the example. Even if the frameworks makes many things very easy and also reusable this is not true for everything. Best is to start with simple tasks as all the experiments did and then go step by step to a more realistic chain of tasks when this is needed. If you want to go one step further then it is a good idea to look if someone else had a similar problem and how he solved it.
Ciao
Florian
[Updated on: Wed, 27 June 2012 09:12] Report message to a moderator
|
|
|
Re: My updated fairtools library not loading [message #13668 is a reply to message #13666] |
Wed, 27 June 2012 14:20 |
Raghav Kunnawalkam
Messages: 63 Registered: February 2012 Location: Stony Brook, New York
|
continuous participant |
From: *dyn.optonline.net
|
|
Hi Florian
Ahh i see.
So i actually need a set of classes for every detector that i have that does digitization like what panda has. I will try to implement those by today.
Quote: |
This you can do in a first step with a simple smearing of the MCPoint, where you probably don't need parameters from a parameter file. You can simply hard code them. If you then have a running chain you can identify the parameters in the task and the create a parameter file which contain the needed information.
|
I am doubtful on this part where you say that i can hard code some parameter for a simple smear. Is it done somewhere before because i am pretty new to this and i am not sure how to go about doing it.
So right now i will focus on getting the digi file to work and then i will concentrate on getting the right parameters to work with.
Thanks again
Cheers
Raghav
|
|
|