Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:57:18

0001 #ifndef __JADEPLUGIN_HH__
0002 #define __JADEPLUGIN_HH__
0003 
0004 //FJSTARTHEADER
0005 // $Id$
0006 //
0007 // Copyright (c) 2005-2021, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
0008 //
0009 //----------------------------------------------------------------------
0010 // This file is part of FastJet.
0011 //
0012 //  FastJet is free software; you can redistribute it and/or modify
0013 //  it under the terms of the GNU General Public License as published by
0014 //  the Free Software Foundation; either version 2 of the License, or
0015 //  (at your option) any later version.
0016 //
0017 //  The algorithms that underlie FastJet have required considerable
0018 //  development. They are described in the original FastJet paper,
0019 //  hep-ph/0512210 and in the manual, arXiv:1111.6097. If you use
0020 //  FastJet as part of work towards a scientific publication, please
0021 //  quote the version you use and include a citation to the manual and
0022 //  optionally also to hep-ph/0512210.
0023 //
0024 //  FastJet is distributed in the hope that it will be useful,
0025 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
0026 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0027 //  GNU General Public License for more details.
0028 //
0029 //  You should have received a copy of the GNU General Public License
0030 //  along with FastJet. If not, see <http://www.gnu.org/licenses/>.
0031 //----------------------------------------------------------------------
0032 //FJENDHEADER
0033 
0034 #include "fastjet/JetDefinition.hh"
0035 
0036 FASTJET_BEGIN_NAMESPACE      // defined in fastjet/internal/base.hh
0037 
0038 // forward declaration to reduce includes
0039 class ClusterSequence;
0040 
0041 //----------------------------------------------------------------------
0042 //
0043 /// @ingroup plugins
0044 /// \class JadePlugin
0045 /// Implementation of the e+e- Jade algorithm (plugin for fastjet v2.4 upwards)
0046 ///
0047 /// JadePlugin is a plugin for fastjet (v2.4 upwards)
0048 /// It implements the JADE algorithm, which is an e+e- sequential
0049 /// recombination algorithm with interparticle distance
0050 ///
0051 ///   dij = 2 E_i E_j (1 - cos theta_ij)
0052 ///
0053 /// or equivalently
0054 ///
0055 ///   yij = dij/E_{vis}^2                
0056 ///
0057 /// This corresponds to the distance measured used in 
0058 ///
0059 ///   "Experimental Investigation of the Energy Dependence of the Strong Coupling Strength."
0060 ///   JADE Collaboration (S. Bethke et al.)
0061 ///   Phys.Lett.B213:235,1988
0062 ///
0063 /// The JADE article carries out particle recombinations in the
0064 /// E-scheme (4-vector recombination), which is the default procedure for this 
0065 /// plugin.
0066 ///
0067 /// NOTE: other widely used schemes include E0, P, P0; however they also 
0068 ///       involve modifications to the distance measure. Be sure of
0069 ///       what you're doing before running a JADE type algorithm.
0070 ///
0071 /// To access the jets with a given ycut value (clustering stops once
0072 /// all yij > ycut), use
0073 ///
0074 ///   vector<PseudoJet> jets = cluster_sequence.exclusive_jets_ycut(ycut);
0075 ///
0076 /// and related routines.
0077 class JadePlugin : public JetDefinition::Plugin {
0078 public:
0079   /// enum that contains the two clustering strategy options; for
0080   /// higher multiplicities, strategy_NNFJN2Plain is about a factor of
0081   /// two faster.
0082   enum Strategy { strategy_NNH = 0, strategy_NNFJN2Plain = 1};
0083   
0084   /// Main constructor for the Jade Plugin class.  
0085   JadePlugin (Strategy strategy = strategy_NNFJN2Plain) : _strategy(strategy) {}
0086 
0087   /// copy constructor
0088   JadePlugin (const JadePlugin & plugin) {
0089     *this = plugin;
0090   }
0091 
0092   // the things that are required by base class
0093   virtual std::string description () const;
0094   virtual void run_clustering(ClusterSequence &) const;
0095 
0096   /// the plugin mechanism's standard way of accessing the jet radius.
0097   /// This must be set to return something sensible, even if R
0098   /// does not make sense for this algorithm!
0099   virtual double R() const {return 1.0;}
0100 
0101   /// avoid the warning whenever the user requests "exclusive" jets
0102   /// from the cluster sequence
0103   virtual bool exclusive_sequence_meaningful() const {return true;}
0104 
0105 private:
0106 
0107   template<class N> void _actual_run_clustering(ClusterSequence &) const;
0108   
0109   Strategy _strategy;
0110 };
0111 
0112 FASTJET_END_NAMESPACE        // defined in fastjet/internal/base.hh
0113 
0114 #endif // __JADEPLUGIN_HH__
0115