<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi,<br>
    <br>
    I would like to add some debug messages to an inline function<br>
    in a plugin analysis but I fail to so with this approach:<br>
    <br>
    <blockquote><includes><br>
      #include "Rivet/Tools/Logging.hh"<br>
      <more includes><br>
      <br>
      using namespace std;<br>
      using namespace Rivet;<br>
      <br>
      inline bool function(const Rivet::Particle& p) {<br>
        < code ><br>
        MSG_DEBUG("Failed pT cut: " << pTs[0]*Rivet::MeV <<
      " " << pTs[1]*Rivet::MeV);<br>
        <more code><br>
      }<br>
    </blockquote>
      <br>
    The compiler yields errors like this:<br>
    <blockquote>ATLAS_LAMBDA_KSHORT.cc:48:7: error: ‘getLog’ was not
      declared in this scope<br>
    </blockquote>
    What am I missing?<br>
    <br>
    Cheers,<br>
    Holger<br>
  </body>
</html>