[Rivet] Rivet 2.6.0: ATLAS_2016_CONF_2016_037 analysis missing include statement, failing with clang6

Ivan Razumov ivan.razumov at cern.ch
Mon Jul 2 11:11:15 BST 2018


Dear Rivet developers,

Rivet 2.6.0 fails to build with clang6 on centos7 with the following 
error (full log here: 
http://cdash.cern.ch/upload/2d41a691ffef2e1f0359758490d8c4c1848d0ce3/rivet-2.6.0-build.log)

pluginATLAS/ATLAS_2016_CONF_2016_037.cc:52:7: error: unknown type name 'ChargedFinalState' did you mean 'VetoedFinalState'?
       ChargedFinalState cfs(Cuts::abseta < 2.5)
       ^~~~~~~~~~~~~~~~~
       VetoedFinalState
../include/Rivet/Projections/VetoedFinalState.hh:11:9: note: 'VetoedFinalState' declared here
   class VetoedFinalState : public FinalState {
         ^
1 error generated.

The following patch fixes the issue by adding an missing #include to the 
analysis code:

--- analyses/pluginATLAS/ATLAS_2016_CONF_2016_037.cc.orig       2018-07-02 10:43:08.656094368 +0200
+++ analyses/pluginATLAS/ATLAS_2016_CONF_2016_037.cc    2018-07-02 10:44:04.920361160 +0200
@@ -2,6 +2,7 @@
  #include "Rivet/Analysis.hh"
  #include "Rivet/Projections/FinalState.hh"
  #include "Rivet/Projections/PromptFinalState.hh"
+#include "Rivet/Projections/ChargedFinalState.hh"
  #include "Rivet/Projections/FastJets.hh"
  #include "Rivet/Projections/Sphericity.hh"
  #include "Rivet/Projections/SmearedParticles.hh"

Best regards,
Ivan for the GENSER team



More information about the Rivet mailing list