[Rivet] Rivet 2.0.0

Sarah Louise Barnes sarah.barnes at cern.ch
Tue Jan 28 13:58:45 GMT 2014


Hi Andy, 

Thanks a lot for your reply. 

I have tried to use the additional argument to the compiler which works fine for the experimental version however there is still a problem when I try to use the Genser version. 

I tried to compile without the additional -L command and also with what I think would be the correct -L command (-L/afs/cern.ch/sw/lcg/external/MCGenerators_lcgcmt65/rivet/2.0.0/x86_64-slc6-gcc46-opt/lib/) and each time get the message included at the end. It doesn't matter for now as I can use the experimental version but I though I should let you know anyway.

Also I have another question as to how to run the code. I have re-read the slides you prepared for the tutorial and can see how you said to run the code there but I am still a bit confused as to how to run over a particular dataset. For example in this case I would like to run over a the 1fb-1/5fb-1 dataset or a particular set of MC files which I have downloaded. Is there some help you could give with this or somewhere you could point me which would have a little more information. (Sorry if this is a little basic but I am a beginner at this) 

Thanks,
Sarah. 

[sbarnes at lxplus0093 Rivet_5fb]$ source /afs/cern.ch/sw/lcg/external/MCGenerators_lcgcmt65/rivet/2.0.0/x86_64-slc6-gcc46-opt/rivetenv.sh
[sbarnes at lxplus0093 Rivet_5fb]$ rivet-buildplugin WZanalysis_5fb.cc -L/afs/cern.ch/sw/lcg/external/MCGenerators_lcgcmt65/rivet/2.0.0/x86_64-slc6-gcc46-opt/lib/

Using default library name 'RivetAnalysis.so'
/afs/cern.ch/sw/lcg/contrib/gcc/4.6.3/x86_64-slc6/bin/c++ -o "RivetAnalysis.so" -shared -fPIC -I/afs/cern.ch/sw/lcg/external/MCGenerators_lcgcmt65/rivet/2.0.0/x86_64-slc6-gcc46-opt/include -I/afs/cern.ch/sw/lcg/external/HepMC/2.06.08/x86_64-slc6-gcc46-opt/include -I/afs/cern.ch/sw/lcg/external/MCGenerators_lcgcmt65/yoda/1.0.4/x86_64-slc6-gcc46-opt/include -I/afs/cern.ch/sw/lcg/external/fastjet/3.0.3/x86_64-slc6-gcc46-opt/include -I/afs/cern.ch/sw/lcg/external/GSL/1.10/x86_64-slc6-gcc46-opt/include -I/afs/cern.ch/sw/lcg/external/Boost/1.50.0_python2.7/x86_64-slc6-gcc46-opt/include/boost-1_50 -std=c++0x -pedantic -ansi -Wall -Wno-long-long -Wno-format -Werror=uninitialized -O2 -L/lib -L/afs/cern.ch/sw/lcg/external/HepMC/2.06.08/x86_64-slc6-gcc46-opt/lib -L/afs/cern.ch/sw/lcg/external/MCGenerators_lcgcmt65/yoda/1.0.4/x86_64-slc6-gcc46-opt/lib -Wl,-rpath,/afs/cern.ch/sw/lcg/external/fastjet/3.0.3/x86_64-slc6-gcc46-opt/lib -lm -L/afs/cern.ch/sw/lcg/external/fastjet/3.0.3/x86_64-slc6-gcc46-opt/lib -lfastjettools -lfastjet -lfastjetplugins -lsiscone_spherical -lsiscone -L/afs/cern.ch/sw/lcg/contrib/gcc/4.6.2/x86_64-slc6-gcc46-opt/lib/gcc/x86_64-unknown-linux-gnu/4.6.2 -L/afs/cern.ch/sw/lcg/contrib/gcc/4.6.2/x86_64-slc6-gcc46-opt/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/afs/cern.ch/sw/lcg/contrib/gcc/4.6.2/x86_64-slc6-gcc46-opt/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../.. -lgfortran -lm -lquadmath WZanalysis_5fb.cc -L/afs/cern.ch/sw/lcg/experimental/rivet/local/lib -lRivet
/afs/cern.ch/sw/lcg/contrib/gcc/4.6.3/x86_64-slc6-gcc46-opt/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.6.3/cc1plus: error while loading shared libraries: libppl_c.so.4: cannot open shared object file: No such file or directory

________________________________________
From: Andy Buckley
Sent: 28 January 2014 11:26
To: Sarah Louise Barnes
Cc: Rivet
Subject: Re: Rivet 2.0.0

Hi Sarah,

No problem to get in touch, but the rivet at projects.hepforge.org
developer list is the best place to contact when you have trouble: I've
CC'd it now. But this one is actually easiest for me to answer, I suspect...

This issue was actually a problem that I encountered (and was surprised
by) in the tutorial -- for some reason the "-L" flag that specifies
*where* -lRivet will be found was missing from the compiler command
generated by rivet-buildplugin.

I've fixed this on the trunk (it was a very boring typo bug) and it'll
be working properly in Rivet 2.1.0 which we plan to release very soon.
But as a workaround you can add the missing -L to the buildplugin
command as an extra argument for the compiler:

rivet-buildplugin WZanalysis_5fb.cc
-L/afs/cern.ch/sw/lcg/experimental/rivet/local/lib

By the way, it's mostly recommended to use the Genser copy of Rivet
(source
/afs/cern.ch/sw/lcg/external/MCGenerators_lcgcmt65/rivet/2.0.0/x86_64-slc6-gcc46-opt/rivetenv.sh)
rather than that experimental one -- although I think this experimental
copy is exactly version 2.0.0. The main reasons that I used this area in
the tutorial was that I could provide a script that guaranteed all the
compiler setup stuff, and provided a copy of the Sacrifice Pythi8
steering program, too). I should provide a setup for a more standard
installation in future tutorials, especially since there's no guarantee
that we won't break or remove stuff from the experimental area!

Best wishes, and please let us know if you still have any difficulties,
Andy


On 28/01/14 12:13, Sarah Louise Barnes wrote:
> Hi Andy,
>
> I hope you don't mind me contacting you for some help with Rivet v2.0.0.
> I attended the Rivet tutorial you put on a few months ago so thought
> that you may be the best person to ask.
>
> Basically I am trying to compile a new analysis code using version 2.0.0
> of rivet but when I try to compile it rivet cannot be found. I have
> included the error message which I am getting at the end.
>
> _What I did : _
>
> logged onto lxplus6
>
> Setup rivet using the following command :
>
> source /afs/cern.ch/sw/lcg/experimental/rivet/setup.sh
>
> Made a new analysis using the following command :
>
> rivet-mkanalysis WZanalysis_5fb
>
> Filled in the .cc file with what I want it to do. I used the template
> that the above function created and filled in the rest with exactly the
> contents of the ATLAS_2011_I954993.cc code. Basically what I want to do
> is just add 1 more cut to this existing code but was unsure as to the
> version of Rivet used to create it. Also trying to download the code
> directly using the rivet-mkanalysisATLAS_2011_I954993 command didn't
> work either.
>
> I then tried to compile using the following command (I also tried adding
> RivetWZanalysis_5fb.so in the middle):
>
> rivet-buildplugin WZanalysis_5fb.cc
>
> The message I get :
>
> [sbarnes at lxplus0091 Rivet_5fb]$ rivet-buildplugin WZanalysis_5fb.cc
> Using default library name 'RivetAnalysis.so'
> /afs/cern.ch/sw/lcg/contrib/gcc/4.6.3/x86_64-slc6/bin/g++ -o
> "RivetAnalysis.so" -shared -fPIC
> -I/afs/cern.ch/sw/lcg/experimental/rivet/rivet/../local/include
> -I/afs/cern.ch/sw/lcg/external/HepMC/2.06.08/x86_64-slc6-gcc46-opt/include
> -I/afs/cern.ch/sw/lcg/experimental/rivet/local2/include
> -I/afs/cern.ch/sw/lcg/external/fastjet/3.0.3/x86_64-slc6-gcc46-opt/include
> -I/usr/include
> -I/afs/cern.ch/sw/lcg/external/Boost/1.50.0_python2.6/x86_64-slc6-gcc46-opt/include/boost-1_50
> -std=c++0x -pedantic -ansi -Wall -Wno-long-long -Wno-format
> -Werror=uninitialized -O2 -Wl,--no-as-needed -L/lib
> -L/afs/cern.ch/sw/lcg/external/HepMC/2.06.08/x86_64-slc6-gcc46-opt/lib
> -L/afs/cern.ch/sw/lcg/experimental/rivet/local2/lib
> -Wl,-rpath,/afs/cern.ch/sw/lcg/external/fastjet/3.0.3/x86_64-slc6-gcc46-opt/lib
> -lm
> -L/afs/cern.ch/sw/lcg/external/fastjet/3.0.3/x86_64-slc6-gcc46-opt/lib
> -lfastjettools -lfastjet -lfastjetplugins -lsiscone_spherical -lsiscone
> -L/afs/cern.ch/sw/lcg/contrib/gcc/4.6.2/x86_64-slc6-gcc46-opt/lib/gcc/x86_64-unknown-linux-gnu/4.6.2
> -L/afs/cern.ch/sw/lcg/contrib/gcc/4.6.2/x86_64-slc6-gcc46-opt/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../lib64
> -L/lib/../lib64 -L/usr/lib/../lib64
> -L/afs/cern.ch/sw/lcg/contrib/gcc/4.6.2/x86_64-slc6-gcc46-opt/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../..
> -lgfortran -lm -lquadmath WZanalysis_5fb.cc -lRivet
> /usr/bin/ld: cannot find -lRivet
> collect2: ld returned 1 exit status
>
>  Could you provide any insight into what is going wrong with it?
>
> Thanks,
> Sarah.


--
Dr Andy Buckley, Royal Society University Research Fellow
Particle Physics Expt Group, University of Glasgow / PH Dept, CERN


More information about the Rivet mailing list