Rivet tutorials

Migration from Rivet v3 to Rivet v4

Rivet 4 is a major new release series, in which we’ve made some big changes that affect the programming interface (or “API”) exposed to analysis authors.

As with the last time we made such major changes, from version 2 to version 3, the overall effect is very positive, but code will need to be changed. We have made the changes to all the analyses submitted to the Rivet core library, so there’s another incentive to submit your analyses, too!

The 3 -> 4 changes particularly affect histogramming – which now requires the fully reworked YODA v2 – and the configuration of some projections. Version 4 also adds functionality for storing and loading analysis-specific structure data in HDF5 format, and other new features, but as those are not changes to existing functionality they aren’t covered in this migration guide.

We recommend that anyone writing a new analysis should start by running the rivet-mkanalysis script rather than directly copying an old analysis code: we update the templates generated by the script as new API features and ideas occur, and it always represents best-practice. You can still copy-paste chunks from your old analysis as you need them, modulo the unavoidable API changes above.