Print

Print


That should work assuming that you have doxygen installed. Of course, I
just tried it on a Linux box, so if it's not building because of something
related to being on a Mac, I won't catch it.

On Fri, May 20, 2016 at 9:43 AM, Holly Vance <[log in to unmask]> wrote:

> Thanks.
>
> Also, when I installed, I tried to "make doc" without success. Is this
> working? It just says that there is nothing to make.
>
> On Fri, May 20, 2016 at 12:29 PM, Omar Moreno <[log in to unmask]> wrote:
>
>> When installing on Linux, it generates a .so file.  On Mac, it generates
>> a .dylib.
>>
>> --Omar Moreno
>>
>> On Fri, May 20, 2016 at 9:18 AM, Holly Vance <[log in to unmask]> wrote:
>>
>>> Hi Maurik,
>>>
>>> Thanks for the reply. This worked! I think I was confused because the
>>> confluence instructions said it should be generating this libHpsEvent.so,
>>> and it simply was not generating this in the build.
>>>
>>> I'll update this on confluence.
>>>
>>> Thanks,
>>> Holly
>>>
>>> On Fri, May 20, 2016 at 12:09 PM, Maurik Holtrop <[log in to unmask]
>>> > wrote:
>>>
>>>> Hello Holly,
>>>>
>>>> What PyRoot is telling you is that it cannot find the library that
>>>> defines the HpsEvent. The places it is looking are listed. It seems to me
>>>> that it is looking for the wrong name, it should be looking for
>>>> libHpsEvent.dylib and not .so.
>>>>
>>>> What I did on my Mac. Your issue appears to at step 6.
>>>>
>>>> 1) I use ROOT 6.06/07 as my standard distribution, but ROOT 5.x should
>>>> also work.
>>>> 2) Build the LCIO library and set the LCIO environment variable:
>>>> “export LCIO=<path to LCIO>”
>>>> 3) Create a build directory for hps-dst:  mkdir build
>>>> 4) go into the dir, and run cmake: “cd build” and “cmake ..
>>>> -DCMAKE_INSTALL_PREFIX=`pwd`”
>>>> 5) Now you should have a “lib” dir in the build dir. That dir should
>>>> have “libHpsEvent.dylib”
>>>>          a) IF you are using ROOT6, you need to copy the pcm file to
>>>> the lib dir: “cp src/root_dic/HpsEventDic_rdict.pcm  lib"
>>>>
>>>> 6) You now need to fix up the example analysis script, two things:
>>>> a) On line 243 change:  mass = particle.Mass() to  mass =
>>>> particle.getMass()
>>>> b) Either change line 83: libHpsEvent.so  to libHpsEvent.dylib, OR make
>>>> a link in the lib directory: “ln -s libHpsEvent.dylib libHpsEvent.so”
>>>>
>>>> I can now run the script.
>>>> Note you probably want to run it with -o output.pdf to get a PDF file
>>>> and not a PS file.
>>>>
>>>> I should edit the confluence page, but my credentials are currently
>>>> messed up :-)
>>>>
>>>> Cheers,
>>>> Maurik
>>>>
>>>>
>>>> On May 20, 2016, at 10:54 AM, Holly Vance <[log in to unmask]> wrote:
>>>>
>>>> Hi,
>>>>
>>>> I am trying to use the DSTs again for analysis, but I can never seem to
>>>> get the libraries linking correctly when following the online instructions.
>>>> As basic example, I try to run an example code:
>>>>
>>>> python analysis_pyroot_example.py hps_005772.100_v0_R3.8.root -o output
>>>>
>>>> I get the following error which relates to the inability to import
>>>> these libraries that I need in order to run any kind of analysis code using
>>>> DSTs
>>>>
>>>> Error in <TMacOSXSystem::DynamicPathName>:
>>>> /Users/hollyvance/Documents/hps-dst/build/lib/libHpsEvent.so does not exist
>>>> in
>>>> /Users/hollyvance/Documents/lcio-trunk/lib:/Users/hollyvance/Applications/root/lib:/Users/hollyvance/Applications/root/lib::.:/Users/hollyvance/Applications/root/lib::/Users/hollyvance/Applications/root/cint/cint/stl
>>>>
>>>> Traceback (most recent call last):
>>>>
>>>>   File "analysis_pyroot_example.py", line 285, in <module>
>>>>
>>>>     main()
>>>>
>>>>   File "analysis_pyroot_example.py", line 91, in main
>>>>
>>>>     from ROOT import HpsEvent, SvtTrack, EcalCluster, EcalHit,
>>>> HpsParticle
>>>>
>>>> ImportError: cannot import name HpsEvent
>>>>
>>>>
>>>> Can someone tell me if it seems I have forgotten something? I have
>>>> followed all of the instructions on this page:
>>>> https://confluence.slac.stanford.edu/display/hpsg/InstallingHe+the+DST+Tools
>>>>
>>>> Thanks,
>>>>
>>>> Holly
>>>>
>>>>
>>>>
>>>> ------------------------------
>>>>
>>>> Use REPLY-ALL to reply to list
>>>>
>>>> To unsubscribe from the HPS-SOFTWARE list, click the following link:
>>>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1
>>>>
>>>>
>>>>
>>>
>>> ------------------------------
>>>
>>> Use REPLY-ALL to reply to list
>>>
>>> To unsubscribe from the HPS-SOFTWARE list, click the following link:
>>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1
>>>
>>
>>
>
> ------------------------------
>
> Use REPLY-ALL to reply to list
>
> To unsubscribe from the HPS-SOFTWARE list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1
>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1