//FJSTARTHEADER
// $Id: FunctionOfPseudoJet.cc 4354 2018-04-22 07:12:37Z salam $
//
// Copyright (c) 2005-2018, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
//
//----------------------------------------------------------------------
// This file is part of FastJet.
//
// FastJet 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.
//
// The algorithms that underlie FastJet have required considerable
// development. They are described in the original FastJet paper,
// hep-ph/0512210 and in the manual, arXiv:1111.6097. If you use
// FastJet as part of work towards a scientific publication, please
// quote the version you use and include a citation to the manual and
// optionally also to hep-ph/0512210.
//
// FastJet 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 FastJet. If not, see .
//----------------------------------------------------------------------
//FJENDHEADER
#include
#include
#include
using namespace std;
FASTJET_BEGIN_NAMESPACE
// //----------------------------------------------------------------------
// /// helper for the selector "FunctionOfPJ(jet) > ref"
// class SW_FofPJ_larger : public SelectorWorker {
// public:
// /// ctor with specification of the number of objects to keep
// SW_FofPJ_larger(const FunctionOfPseudoJet & fn, const double &ref)
// : _fn(fn), _ref(ref){}
//
// /// return true if the jet is a pure-ghost jet
// virtual bool pass(const PseudoJet & jet) const { return _fn(jet) > _ref; }
//
// /// returns a description of the worker
// virtual string description() const {
// ostringstream oss;
// oss << "(" << _fn.description() << " > " << _ref << ")";
// return oss.str();
// }
//
// protected:
// const FunctionOfPseudoJet & _fn;
// double _ref;
// };
//
//
// // select objects that are (or are only made of) ghosts
// Selector operator >(const FunctionOfPseudoJet & fn, const double & ref){
// return Selector(new SW_FofPJ_larger(fn, ref));
// }
//
//
//
// //----------------------------------------------------------------------
// /// helper for the selector "FunctionOfPJ(jet) < ref"
// class SW_FofPJ_smaller : public SelectorWorker {
// public:
// /// ctor with specification of the number of objects to keep
// SW_FofPJ_smaller(const FunctionOfPseudoJet & fn, const double &ref)
// : _fn(fn), _ref(ref){}
//
// /// return true if the jet is a pure-ghost jet
// virtual bool pass(const PseudoJet & jet) const { return _fn(jet) < _ref; }
//
// /// returns a description of the worker
// virtual string description() const {
// ostringstream oss;
// oss << "(" << _fn.description() << " < " << _ref << ")";
// return oss.str();
// }
//
// protected:
// const FunctionOfPseudoJet & _fn;
// double _ref;
// };
//
//
// // select objects that are (or are only made of) ghosts
// Selector operator <(const FunctionOfPseudoJet & fn, const double & ref){
// return Selector(new SW_FofPJ_smaller(fn, ref));
// }
//
//
// //----------------------------------------------------------------------
// /// helper for the selector "FunctionOfPJ(jet) >= ref"
// class SW_FofPJ_larger_equal : public SelectorWorker {
// public:
// /// ctor with specification of the number of objects to keep
// SW_FofPJ_larger_equal(const FunctionOfPseudoJet & fn, const double &ref)
// : _fn(fn), _ref(ref){}
//
// /// return true if the jet is a pure-ghost jet
// virtual bool pass(const PseudoJet & jet) const { return _fn(jet) >= _ref; }
//
// /// returns a description of the worker
// virtual string description() const {
// ostringstream oss;
// oss << "(" << _fn.description() << " >= " << _ref << ")";
// return oss.str();
// }
//
// protected:
// const FunctionOfPseudoJet & _fn;
// double _ref;
// };
//
//
// // select objects that are (or are only made of) ghosts
// Selector operator >=(const FunctionOfPseudoJet & fn, const double & ref){
// return Selector(new SW_FofPJ_larger_equal(fn, ref));
// }
//
//
//
// //----------------------------------------------------------------------
// /// helper for the selector "FunctionOfPJ(jet) <= ref"
// class SW_FofPJ_smaller_equal : public SelectorWorker {
// public:
// /// ctor with specification of the number of objects to keep
// SW_FofPJ_smaller_equal(const FunctionOfPseudoJet & fn, const double &ref)
// : _fn(fn), _ref(ref){}
//
// /// return true if the jet is a pure-ghost jet
// virtual bool pass(const PseudoJet & jet) const { return _fn(jet) <= _ref; }
//
// /// returns a description of the worker
// virtual string description() const {
// ostringstream oss;
// oss << "(" << _fn.description() << " <= " << _ref << ")";
// return oss.str();
// }
//
// protected:
// const FunctionOfPseudoJet & _fn;
// double _ref;
// };
//
//
// // select objects that are (or are only made of) ghosts
// Selector operator <=(const FunctionOfPseudoJet & fn, const double & ref){
// return Selector(new SW_FofPJ_smaller_equal(fn, ref));
// }
//
FASTJET_END_NAMESPACE