|
[Rivet] Problem in Writing Analysis in the RIVETAndy Buckley andy.buckley at cern.chSat Aug 19 10:25:04 BST 2017
Hi Andre, You seem to have set your RIVET_ANALYSIS_PATH correctly: it contains the path (or paths) where your plugin .so file is to be found. There will be an automatic fallback to include the "system" Rivet analysis directory unless you take active action to stop it. The RIVET_ANALYSIS_PATH will also be used to find .info, .yoda, and .plot files unless you set special variables for those types of file searches (which ~no-one does). So in your case it's working fine, except that you don't have a .yoda reference data file for your analysis. This isn't necessary, unless you make a call like bookHisto1D(1,1,1) or bookHisto1D("some_ref_histo_name"), in which case it looks for a ref data file to get the equivalent ref histo's binning from. You can get a .yoda file from the HepData system, if your analysis is in there, or make one by hand: take a look at some of the existing ones in your Rivet installation's share/Rivet directory to see how the format works. Andy On 18/08/17 15:31, "André Vieira da Silva" wrote: > Dear Andy, > > I'm studying your presentation about the > RIVET (https://rivet.hepforge.org/rivet-tutorial-253.pdf) > > And I'm trying to do my own analysis in the RIVET > following the steps in the slide: > > I think that my question is very simple, but something > I don't understand > > "Writing, building & running your own analysis" > > What that I did and work well: > > $ rivet-mkanalysis MY_TEST_ANALYSIS > $ rivet-buildplugin RivetMY_TEST_ANALYSIS.so MY_TEST_ANALYSIS.cc > $ ls > $ MY_TEST_ANALYSIS.cc MY_TEST_ANALYSIS.info MY_TEST_ANALYSIS.plot > pythia.hepmc RivetMY_TEST_ANALYSIS.so > > $ export RIVET_ANALYSIS_PATH=/home/andre/Desktop/RIVET (this plugin is > right? or I have to specify the directory standard analyses RIVET?) > $ rivet --list-analyses > > ... > MY_TEST_ANALYSIS [UNVALIDATED] <Insert short MY_TEST_ANALYSIS description> > ... > > $rivet pythia.hepmc -a MY_TEST_ANALYSIS > Rivet 2.5.3 running on machine andre-QBEX-H61H2-M17 (x86_64) > at 2017-08-18 10:59:48 > > What is not working: > Rivet.Analysis.Handler: WARN Analysis 'MY_TEST_ANALYSIS' is > unvalidated: be careful, it may be broken! > > Error in MY_TEST_ANALYSIS::init method: Couldn't find ref data file > 'MY_TEST_ANALYSIS.yoda/aida in $RIVET_REF_PATH, > '/home/RIVET/Rivet-install/share/Rivet', or '.' > > The RIVET is not finding "MY_TEST_ANALYSIS.yoda". > > The file MY_TEST_ANALYSIS.yoda is the experiment data, right? > > What i can do to fix this problem? > > Thanks for the help, > > Cheers, > Andre > > André Vieira da Silva > Doutorando em Física IFGW/UNICAMP > 19 981650211(cel) > -- Dr Andy Buckley, Lecturer / Royal Society University Research Fellow Particle Physics Expt Group, University of Glasgow
More information about the Rivet mailing list |