Track Visualization questions [message #9268] |
Tue, 01 September 2009 10:04 |
Christian Leitold
Messages: 35 Registered: August 2009 Location: Stefan Meyer Institute
|
continuous participant |
From: *smi.oeaw.ac.at
|
|
Hello,
I am a student and work currently at SMI, Vienna, where I should perform some simulations using PANDA ROOT. So far, we have created a set of macros for full simulation based on those in trunk/tutorials/analysis (sim, digi, reco, kalman, makeTCands). We are using revision 5813 following a suggestion by Klaus Götzen, since the macros were not compatible with the most current version. I could already perform some simple analysis, like getting the momentum or energy of different particle types, etc.
What I could not do -- and here is the reason for my question -- is track visualization. We would like to that, but unfortunately so far I have not found out how. There are some example scripts available, but they all do not work since they they look for some TGeoTrack objects which are apparently not present in our ROOT files, causing an error:
Error in <TTree::SetBranchAddress>: unknown branch -> GeoTracks
Is there a method for adding this branch to the tree, or has the track visualization process changed so I have to use another approach?
Thanks a lot and sorry for me asking so simple questions
Christian Leitold
|
|
|
|
Re: Track Visualization questions [message #9270 is a reply to message #9268] |
Tue, 01 September 2009 11:23 |
Christian Leitold
Messages: 35 Registered: August 2009 Location: Stefan Meyer Institute
|
continuous participant |
From: *smi.oeaw.ac.at
|
|
Hey,
thank you for your fast answer. To add the GeoTracks was really that simple!
Unfortunately, I have another problem now:
The script needs to create FairVTrack objects, the actual "visual" representation of the tracks, to draw them. But that does not work:
Error: Symbol FairVTrack is not defined in current scope drawGLTracks.C:87:
The FairVTrack object exists in my revision in trunk/base and should be compiled into libBase, but in fact, it is not. There exists the file trunk/base/CMakeLists.txt, which contains a list of files to be compiled into the library. There, FairVTrack.cxx is commented out. If I remove the comment, compilation works fine (I execute "make" in directory build), BUT it is not possible to load the library in the macro any more, the load process stops with an error:
Load Error: Failed to load Dynamic link library /home/cleitold/pandaroot/fairsoft/build/lib/libBase.so
We already had this kind of error before, when we unsuccessfully tried to add a new generator class to our PANDA ROOT. So, the more general question is now, how can I compile new classes into libraries without generating a crash when trying to load those libraries?
Thanks
Christian
|
|
|
|
|
|
Re: Track Visualization questions [message #9275 is a reply to message #9268] |
Tue, 01 September 2009 14:06 |
Christian Leitold
Messages: 35 Registered: August 2009 Location: Stefan Meyer Institute
|
continuous participant |
From: *smi.oeaw.ac.at
|
|
Hello,
I have just tried eventDisplay.C, unfortunately, I still have library problems:
Error in <TUnixSystem::DynamicPathName>: libEventDisplay[.so | .sl | .dl | .a | .dll] does not exist in [long list of paths follows]
The libEventDisplay.so library file does not exist on my system and I see no way how to compile it, even though the source files all are where they should be.
Maybe I should better open a new thread concerning my growing library problems?
Kind regards
Christian
[Updated on: Tue, 01 September 2009 14:07] Report message to a moderator
|
|
|
|
|
|