Fork me on GitHub

source: git/external/fastjet/FunctionOfPseudoJet.cc@ 952bbbc

Last change on this file since 952bbbc was cb80e6f, checked in by Pavel Demin <pavel.demin@…>, 4 years ago

update FastJet library to 3.3.4 and FastJet Contrib library to 1.045

  • Property mode set to 100644
File size: 5.6 KB
Line 
1//FJSTARTHEADER
2// $Id: FunctionOfPseudoJet.cc 4442 2020-05-05 07:50:11Z soyez $
3//
4// Copyright (c) 2005-2020, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
5//
6//----------------------------------------------------------------------
7// This file is part of FastJet.
8//
9// FastJet is free software; you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation; either version 2 of the License, or
12// (at your option) any later version.
13//
14// The algorithms that underlie FastJet have required considerable
15// development. They are described in the original FastJet paper,
16// hep-ph/0512210 and in the manual, arXiv:1111.6097. If you use
17// FastJet as part of work towards a scientific publication, please
18// quote the version you use and include a citation to the manual and
19// optionally also to hep-ph/0512210.
20//
21// FastJet is distributed in the hope that it will be useful,
22// but WITHOUT ANY WARRANTY; without even the implied warranty of
23// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24// GNU General Public License for more details.
25//
26// You should have received a copy of the GNU General Public License
27// along with FastJet. If not, see <http://www.gnu.org/licenses/>.
28//----------------------------------------------------------------------
29//FJENDHEADER
30
31#include <fastjet/FunctionOfPseudoJet.hh>
32#include <string>
33#include <sstream>
34
35using namespace std;
36
37FASTJET_BEGIN_NAMESPACE
38
39// //----------------------------------------------------------------------
40// /// helper for the selector "FunctionOfPJ(jet) > ref"
41// class SW_FofPJ_larger : public SelectorWorker {
42// public:
43// /// ctor with specification of the number of objects to keep
44// SW_FofPJ_larger(const FunctionOfPseudoJet<double> & fn, const double &ref)
45// : _fn(fn), _ref(ref){}
46//
47// /// return true if the jet is a pure-ghost jet
48// virtual bool pass(const PseudoJet & jet) const { return _fn(jet) > _ref; }
49//
50// /// returns a description of the worker
51// virtual string description() const {
52// ostringstream oss;
53// oss << "(" << _fn.description() << " > " << _ref << ")";
54// return oss.str();
55// }
56//
57// protected:
58// const FunctionOfPseudoJet<double> & _fn;
59// double _ref;
60// };
61//
62//
63// // select objects that are (or are only made of) ghosts
64// Selector operator >(const FunctionOfPseudoJet<double> & fn, const double & ref){
65// return Selector(new SW_FofPJ_larger(fn, ref));
66// }
67//
68//
69//
70// //----------------------------------------------------------------------
71// /// helper for the selector "FunctionOfPJ(jet) < ref"
72// class SW_FofPJ_smaller : public SelectorWorker {
73// public:
74// /// ctor with specification of the number of objects to keep
75// SW_FofPJ_smaller(const FunctionOfPseudoJet<double> & fn, const double &ref)
76// : _fn(fn), _ref(ref){}
77//
78// /// return true if the jet is a pure-ghost jet
79// virtual bool pass(const PseudoJet & jet) const { return _fn(jet) < _ref; }
80//
81// /// returns a description of the worker
82// virtual string description() const {
83// ostringstream oss;
84// oss << "(" << _fn.description() << " < " << _ref << ")";
85// return oss.str();
86// }
87//
88// protected:
89// const FunctionOfPseudoJet<double> & _fn;
90// double _ref;
91// };
92//
93//
94// // select objects that are (or are only made of) ghosts
95// Selector operator <(const FunctionOfPseudoJet<double> & fn, const double & ref){
96// return Selector(new SW_FofPJ_smaller(fn, ref));
97// }
98//
99//
100// //----------------------------------------------------------------------
101// /// helper for the selector "FunctionOfPJ(jet) >= ref"
102// class SW_FofPJ_larger_equal : public SelectorWorker {
103// public:
104// /// ctor with specification of the number of objects to keep
105// SW_FofPJ_larger_equal(const FunctionOfPseudoJet<double> & fn, const double &ref)
106// : _fn(fn), _ref(ref){}
107//
108// /// return true if the jet is a pure-ghost jet
109// virtual bool pass(const PseudoJet & jet) const { return _fn(jet) >= _ref; }
110//
111// /// returns a description of the worker
112// virtual string description() const {
113// ostringstream oss;
114// oss << "(" << _fn.description() << " >= " << _ref << ")";
115// return oss.str();
116// }
117//
118// protected:
119// const FunctionOfPseudoJet<double> & _fn;
120// double _ref;
121// };
122//
123//
124// // select objects that are (or are only made of) ghosts
125// Selector operator >=(const FunctionOfPseudoJet<double> & fn, const double & ref){
126// return Selector(new SW_FofPJ_larger_equal(fn, ref));
127// }
128//
129//
130//
131// //----------------------------------------------------------------------
132// /// helper for the selector "FunctionOfPJ(jet) <= ref"
133// class SW_FofPJ_smaller_equal : public SelectorWorker {
134// public:
135// /// ctor with specification of the number of objects to keep
136// SW_FofPJ_smaller_equal(const FunctionOfPseudoJet<double> & fn, const double &ref)
137// : _fn(fn), _ref(ref){}
138//
139// /// return true if the jet is a pure-ghost jet
140// virtual bool pass(const PseudoJet & jet) const { return _fn(jet) <= _ref; }
141//
142// /// returns a description of the worker
143// virtual string description() const {
144// ostringstream oss;
145// oss << "(" << _fn.description() << " <= " << _ref << ")";
146// return oss.str();
147// }
148//
149// protected:
150// const FunctionOfPseudoJet<double> & _fn;
151// double _ref;
152// };
153//
154//
155// // select objects that are (or are only made of) ghosts
156// Selector operator <=(const FunctionOfPseudoJet<double> & fn, const double & ref){
157// return Selector(new SW_FofPJ_smaller_equal(fn, ref));
158// }
159//
160
161FASTJET_END_NAMESPACE
Note: See TracBrowser for help on using the repository browser.