FastJet 3.0beta1
JadePlugin.hh
00001 #ifndef __JADEPLUGIN_HH__
00002 #define __JADEPLUGIN_HH__
00003 
00004 //STARTHEADER
00005 // $Id: JadePlugin.hh 1761 2010-09-16 10:43:18Z soyez $
00006 //
00007 // Copyright (c) 2009, Matteo Cacciari, Gavin Salam and Gregory Soyez
00008 //
00009 //----------------------------------------------------------------------
00010 // This file is part of FastJet.
00011 //
00012 //  FastJet is free software; you can redistribute it and/or modify
00013 //  it under the terms of the GNU General Public License as published by
00014 //  the Free Software Foundation; either version 2 of the License, or
00015 //  (at your option) any later version.
00016 //
00017 //  The algorithms that underlie FastJet have required considerable
00018 //  development and are described in hep-ph/0512210. If you use
00019 //  FastJet as part of work towards a scientific publication, please
00020 //  include a citation to the FastJet paper.
00021 //
00022 //  FastJet is distributed in the hope that it will be useful,
00023 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00024 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00025 //  GNU General Public License for more details.
00026 //
00027 //  You should have received a copy of the GNU General Public License
00028 //  along with FastJet; if not, write to the Free Software
00029 //  Foundation, Inc.:
00030 //      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00031 //----------------------------------------------------------------------
00032 //ENDHEADER
00033 
00034 #include "fastjet/JetDefinition.hh"
00035 
00036 FASTJET_BEGIN_NAMESPACE      // defined in fastjet/internal/base.hh
00037 
00038 // forward declaration to reduce includes
00039 class ClusterSequence;
00040 
00041 //----------------------------------------------------------------------
00042 //
00043 /// @ingroup plugins
00044 /// \class JadePlugin
00045 /// Implementation of the e+e- Jade algorithm (plugin for fastjet v2.4 upwards)
00046 ///
00047 /// JadePlugin is a plugin for fastjet (v2.4 upwards)
00048 /// It implements the JADE algorithm, which is an e+e- sequential
00049 /// recombination algorithm with interparticle distance
00050 ///
00051 ///   dij = 2 E_i E_j (1 - cos theta_ij)
00052 ///
00053 /// or equivalently
00054 ///
00055 ///   yij = dij/E_{vis}^2                
00056 ///
00057 /// This corresponds to the distance measured used in 
00058 ///
00059 ///   "Experimental Investigation of the Energy Dependence of the Strong Coupling Strength."
00060 ///   JADE Collaboration (S. Bethke et al.)
00061 ///   Phys.Lett.B213:235,1988
00062 ///
00063 /// The JADE article carries out particle recombinations in the
00064 /// E-scheme (4-vector recombination), which is the default procedure for this 
00065 /// plugin.
00066 ///
00067 /// NOTE: other widely used schemes include E0, P, P0; however they also 
00068 ///       involve modifications to the distance measure. Be sure of
00069 ///       what you're doing before running a JADE type algorithm.
00070 ///
00071 /// To access the jets with a given ycut value (clustering stops once
00072 /// all yij > ycut), use
00073 ///
00074 ///   vector<PseudoJet> jets = cluster_sequence.exclusive_jets_ycut(ycut);
00075 ///
00076 /// and related routines.
00077 class JadePlugin : public JetDefinition::Plugin {
00078 public:
00079   /// Main constructor for the Jade Plugin class.  
00080   JadePlugin (){}
00081 
00082   /// copy constructor
00083   JadePlugin (const JadePlugin & plugin) {
00084     *this = plugin;
00085   }
00086 
00087   // the things that are required by base class
00088   virtual std::string description () const;
00089   virtual void run_clustering(ClusterSequence &) const;
00090 
00091   /// the plugin mechanism's standard way of accessing the jet radius.
00092   /// This must be set to return something sensible, even if R
00093   /// does not make sense for this algorithm!
00094   virtual double R() const {return 1.0;}
00095 
00096   /// avoid the warning whenever the user requests "exclusive" jets
00097   /// from the cluster sequence
00098   virtual bool exclusive_sequence_meaningful() const {return true;}
00099 
00100 private:
00101 
00102 };
00103 
00104 FASTJET_END_NAMESPACE        // defined in fastjet/internal/base.hh
00105 
00106 #endif // __JADEPLUGIN_HH__
00107 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends