FastJet  3.4.0
D0RunIConePlugin.hh
1 #ifndef __D0RUNICONEPLUGIN_HH__
2 #define __D0RUNICONEPLUGIN_HH__
3 
4 //FJSTARTHEADER
5 // $Id: D0RunIConePlugin.hh 1778 2010-10-25 10:02:58Z soyez $
6 //
7 // Copyright (c) 2009-2021, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
8 //
9 //----------------------------------------------------------------------
10 // This file is part of FastJet.
11 //
12 // FastJet is free software; you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation; either version 2 of the License, or
15 // (at your option) any later version.
16 //
17 // The algorithms that underlie FastJet have required considerable
18 // development. They are described in the original FastJet paper,
19 // hep-ph/0512210 and in the manual, arXiv:1111.6097. If you use
20 // FastJet as part of work towards a scientific publication, please
21 // quote the version you use and include a citation to the manual and
22 // optionally also to hep-ph/0512210.
23 //
24 // FastJet is distributed in the hope that it will be useful,
25 // but WITHOUT ANY WARRANTY; without even the implied warranty of
26 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 // GNU General Public License for more details.
28 //
29 // You should have received a copy of the GNU General Public License
30 // along with FastJet. If not, see <http://www.gnu.org/licenses/>.
31 //----------------------------------------------------------------------
32 //FJENDHEADER
33 
34 #include "fastjet/internal/base.hh" // namespace macros (include explicitly to help Doxygen)
35 #include "fastjet/D0RunIBaseConePlugin.hh"
36 #include "fastjet/internal/thread_safety_helpers.hh" // helpers to write transparent code w&wo C++11 features
37 
38 // questionable whether this should be in fastjet namespace or not...
39 
40 FASTJET_BEGIN_NAMESPACE // defined in fastjet/internal/base.hh
41 
42 //----------------------------------------------------------------------
43 //
44 /// @ingroup plugins
45 /// \class D0RunIConePlugin
46 ///
47 /// A plugin for FastJet (v3.0 or later) that provides an interface to
48 /// the D0 version of Run-I cone algorithm
49 ///
50 /// The D0 code has been obtained from Lars Sonnenschein's web-space
51 /// http://www-d0.fnal.gov/~sonne/D0RunIcone.tgz
52 ///
53 /// The version of the D0 Run I code distributed
54 /// here has been modified by the FastJet authors, so as to provide
55 /// access to the contents of the jets (as is necessary for the
56 /// plugin). This does not modify the results of the clustering.
57 ///
58 /// The difference between this algorithm and the post-1996 version
59 /// relates to the way the final jet momenta are calculated. Details
60 /// are to be found in FERMILAB-PUB-97-242-E.
61 //
62 //----------------------------------------------------------------------
64 public:
65  /// The D0RunIConePlugin constructor, which sets the "free" parameters of the
66  /// algorithm:
67  ///
68  /// \param CONErad is the cone radius
69  ///
70  /// \param JETmne is a minimum ET requirement on every iteration
71  /// (jet dropped if Et < JETmne * Et_min_ratio ).
72  /// The value that has been used by D0 for JETmne: 8 GeV
73  /// (and Et_min_ratio is 0.5)
74  ///
75  /// \param SPlifr is the shared Et fraction splitting threshold, and
76  /// a value of 0.5 was usually used by D0
77  ///
78  /// The remaining parameters of the algorithm are not to be modified if the algorithm
79  /// is to correspond to the one actually used by D0.
80  ///
81  D0RunIConePlugin (double CONErad_in, double JETmne_in , double SPLifr_in = _DEFAULT_SPLifr)
82  : D0RunIBaseConePlugin(CONErad_in, JETmne_in , SPLifr_in){}
83 
84  // the things that are required by base class
85  virtual std::string description () const;
86 
87  // the part that really does the clustering
88  virtual void run_clustering(ClusterSequence &) const;
89 
90 private:
91  static thread_safety_helpers::FirstTimeTrue _first_time;
92 
93  /// print a banner for reference to the 3rd-party code
94  void _print_banner(std::ostream *ostr) const;
95 };
96 
97 
98 
99 FASTJET_END_NAMESPACE // defined in fastjet/internal/base.hh
100 
101 #endif // __D0RUNICONEPLUGIN_HH__
deals with clustering
D0RunIBaseConePlugin is base class for a plugin for FastJet (v3.0 or later) that provides an interfac...
A plugin for FastJet (v3.0 or later) that provides an interface to the D0 version of Run-I cone algor...
D0RunIConePlugin(double CONErad_in, double JETmne_in, double SPLifr_in=_DEFAULT_SPLifr)
The D0RunIConePlugin constructor, which sets the "free" parameters of the algorithm:
provides an object wich will return "true" the first time () is called and false afterwards