|
[Rivet] compiling an analysisFrank Siegert frank.siegert at durham.ac.ukTue Aug 24 12:25:04 BST 2010
Hi Sercan, Seems to be a lower/upper case mismatch. Could you try the same but call your analysis TEST instead of test? The "Parse errors" appear because you have not filled/modified test.info yet. Frank Sercan Sen, Tuesday 24 August 2010: > Hi, > > I follow the instructions on the following page > http://projects.hepforge.org/rivet/trac/wiki/WritingAnAnalysis and > stuck at some point. > > Rivet.AnalysisInfo: ERROR Parse error when reading analysis data > from ./test.info > 'TEST' is not a valid analysis. Available analyses are: > test > > Please see below for the details. Does anybody have any idea of what > is going wrong ? > > Thanks a lot > Sercan > > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > ===================================================================== > === ssen> pwd > /home/ssen/RivetTmp > ssen> rivet-mkanalysis test > Writing implementation template to ./test.cc > Writing info template to ./test.info > Writing plot template to ./test.plot > ssen> ls > test.cc test.info test.plot > ssen> rivet-buildplugin Rivettest.so test.cc > which: no sw_vers in > (/usr/local/python-2.5.5/bin:/unix/cedar/software/ > slc5/rivet-1.2.1/bin:/afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/x86_64-sl > c5- > gcc34-opt/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/usr/bin/X11:/u > sr/ > sue/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin: > / usr/bin:/usr/local/root-pro/bin) > g++ -o "Rivettest.so" -shared -fPIC -I/unix/cedar/software/slc5/ > rivet-1.2.1/include -I/afs/cern.ch/sw/lcg/external/HepMC/2.03.11/ > x86_64-slc5-gcc43-opt/include test.cc > In file included from /unix/cedar/software/slc5/rivet-1.2.1/include/ > Rivet/ProjectionHandler.hh:6, > from /unix/cedar/software/slc5/rivet-1.2.1/include/ > Rivet/ProjectionApplier.hh:9, > from /unix/cedar/software/slc5/rivet-1.2.1/include/ > Rivet/Projection.hh:7, > from /unix/cedar/software/slc5/rivet-1.2.1/include/ > Rivet/Event.hh:6, > from /unix/cedar/software/slc5/rivet-1.2.1/include/ > Rivet/Analysis.hh:7, > from test.cc:2: > /unix/cedar/software/slc5/rivet-1.2.1/include/Rivet/RivetBoost.hh: > 8:29: error: boost/foreach.hpp: No such file or directory > > I guess, it couldn't find the "boost". So, I recompile it with > "boost". > > ssen> > ssen> ls > test.cc test.info test.plot > ssen> g++ -o "Rivettest.so" -shared -fPIC > -I/unix/cedar/software/slc5/ rivet-1.2.1/include > -I/afs/cern.ch/sw/lcg/external/HepMC/2.03.11/ > x86_64-slc5-gcc43-opt/include -I/afs/cern.ch/sw/lcg/external/Boost/ > 1.42.0_python2.5/x86_64-slc5-gcc43-opt/include/boost-1_42/ test.cc > ssen> ls > Rivettest.so test.cc test.info test.plot > ssen> export RIVET_ANALYSIS_PATH=$PWD > ssen> echo $RIVET_ANALYSIS_PATH > /home/ssen/RivetTmp > ssen> pwd > /home/ssen/RivetTmp > ssen> rivet --list-analyses > Rivet.AnalysisInfo: ERROR Parse error when reading analysis data > from ./test.info > test > ssen> rivet --show-analysis test > Rivet.AnalysisInfo: ERROR Parse error when reading analysis data > from ./test.info > Rivet.AnalysisInfo: ERROR Parse error when reading analysis data > from ./test.info > > test > ==== > > > > Status: > > Spires ID: > Spires URL: > http://www.slac.stanford.edu/spires/find/hep/www?rawcmd=key+ HepData > URL: http://hepdata.cedar.ac.uk/view/irn > Experiment: > Year of publication: > Authors: > > Description: > > > Run details: > > ssen> > ssen> rivet --analysis=test P8diffhepmcout.dat > Rivet.AnalysisInfo: ERROR Parse error when reading analysis data > from ./test.info > 'TEST' is not a valid analysis. Available analyses are: > test > > > No Problem if I run the EXAMPLE analysis. > > ssen> rivet --analysis=EXAMPLE P8diffhepmcout.dat > Rivet running on machine pc127.hep.ucl.ac.uk (x86_64) > Rivet.Analysis.Handler: WARN Analysis 'EXAMPLE' is unvalidated: be > careful! > Reading events from 'P8diffhepmcout.dat' > #-------------------------------------------------------------------- > ------ # FastJet release 2.4.2 > # Written by M. Cacciari, G.P. Salam and G. Soyez > # http://www.fastjet.fr > # > # Longitudinally invariant Kt, anti-Kt, and inclusive > Cambridge/Aachen # clustering using fast geometric algorithms, with > area measures and optional > # external jet-finder plugins. > # Please cite Phys. Lett. B641 (2006) [hep-ph/0512210] if you use > this code. > # > # This package uses T.Chan's closest pair algorithm, Proc.13th > ACM-SIAM # Symp. Discr. Alg, p.472 (2002), S.Fortune's Voronoi > algorithm and code . > #-------------------------------------------------------------------- > ----- Event 100 (1 s elapsed) > Event 200 (3 s elapsed) > Event 300 (4 s elapsed) > Event 400 (5 s elapsed) > Event 500 (6 s elapsed) > Event 600 (8 s elapsed) > Event 700 (9 s elapsed) > Event 800 (11 s elapsed) > Event 900 (12 s elapsed) > Event 1000 (13 s elapsed) > Finished event loop > Rivet.Analysis.Handler: INFO Finalising analyses > Rivet.Analysis.Handler: INFO Processed 1000 events > > The MCnet usage guidelines apply to Rivet: see > http://www.montecarlonet.org/GUIDELINES Please acknowledge plots > made with Rivet analyses, and cite arXiv: 1003.0694 > (http://arxiv.org/abs/1003.0694) > = > = > = > = > = > = > = > = > = > = > = > = > = > = > = > ===================================================================== > ===
More information about the Rivet mailing list |