// $Id$ // // Copyright (c) The Boost Conference 2013 // //---------------------------------------------------------------------- // This file is part of FastJet contrib. // // It is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the // Free Software Foundation; either version 2 of the License, or (at // your option) any later version. // // It is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public // License for more details. // // You should have received a copy of the GNU General Public License // along with this code. If not, see . //---------------------------------------------------------------------- #include "MVATopTagger.hh" FASTJET_BEGIN_NAMESPACE // defined in fastjet/internal/base.hh namespace contrib{ double MVATopTagger::result(const PseudoJet & j) const { const double mtop = 174.0; double m = j.m(); double mva_output = m/mtop; if (mva_output > 1) mva_output = 1.0/mva_output; return mva_output; } } // namespace contrib FASTJET_END_NAMESPACE