FastJet 3.0beta1
|
00001 #ifndef __FASTJET_RESTFRAMENSUBJETTINESS_TAGGER_HH__ 00002 #define __FASTJET_RESTFRAMENSUBJETTINESS_TAGGER_HH__ 00003 00004 //STARTHEADER 00005 // $Id: RestFrameNSubjettinessTagger.hh 2513 2011-08-08 10:03:31Z salam $ 00006 // 00007 // Copyright (c) 2005-2011, 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/PseudoJet.hh> 00035 #include <fastjet/JetDefinition.hh> 00036 #include <fastjet/CompositeJetStructure.hh> 00037 #include <fastjet/tools/Transformer.hh> 00038 00039 FASTJET_BEGIN_NAMESPACE 00040 00041 class RestFrameNSubjettinessTagger; 00042 class RestFrameNSubjettinessTaggerStructure; 00043 00044 //---------------------------------------------------------------------- 00045 /// @ingroup tools_taggers 00046 /// \class RestFrameNSubjettinessTagger 00047 /// Class that helps perform 2-pronged boosted tagging using 00048 /// a reclustering in the jet's rest frame, supplemented with a cut on N-subjettiness 00049 /// (and a decay angle) 00050 /// 00051 /// This is the implementation of the rest-frame N-Subjettiness tagger introduced 00052 /// by Ji-Hun Kim in arXiv:1011.1493. 00053 /// 00054 /// To tag a fat jet, the tagger proceeds as follows: 00055 /// 00056 /// - boost its constituents into the rest frame of the jet 00057 /// 00058 /// - recluster them using another jet definition (the original 00059 /// choice was SISCone in spherical coordinates with R=0.6 and 00060 /// f=0.75. 00061 /// 00062 /// - keep the 2 most energetic subjets (\f$q_{1,2}\f$) and compute 00063 /// the 2-subjettiness 00064 /// \f[ 00065 /// \tau_2^j = \frac{2}{m_{\rm jet}^2}\, 00066 /// \sum_{k\in {\rm jet}} {\rm min}(q_1.p_k,q_2.p_k) 00067 /// \f] 00068 /// where the sum runs over the constituents of the jet. 00069 /// 00070 /// - require \f$\tau_2^j < \tau_2^{\rm cut}\f$ [0.08 by default] 00071 /// 00072 /// - impose that (in the rest frame of the fat jet), the angles 00073 /// between the 2 most energetic subjets and the boost axis are 00074 /// both large enough: \f$\cos(\theta_s)<c_\theta^{\rm cut}\f$ 00075 /// [0.8 by default] 00076 /// 00077 /// Note that in the original version, the jets to be tagged were reconstructed 00078 /// using SISCone with R=0.8 and f=0.75. Also, b-tagging was imposed 00079 /// on the 2 subjets found in the rest-frame tagging procedure. 00080 /// 00081 /// \section desc Options 00082 /// 00083 /// The constructor has the following arguments: 00084 /// - The first argument is the jet definition to be used to 00085 /// recluster the constituents of the jet to be filtered (in the 00086 /// rest frame of the tagged jet). 00087 /// - The second argument is the cut on tau_2 [0.08 by default] 00088 /// - The 3rd argument is the cut on cos(theta_s) [0.8 by default] 00089 /// - If the 4th argument is true, 2 exclusive rest-frame jets will 00090 /// be considered in place of the 2 most energetic inclusive jets 00091 /// 00092 /// \section input Input conditions 00093 /// 00094 /// - the original jet must have constituents 00095 /// 00096 /// \section output Output/structure 00097 /// 00098 /// - the 2 subjets are kept as pieces if some substructure is found, 00099 /// otherwise a single 0-momentum piece 00100 /// - the tau2 and maximal cos(theta_s) values computed during the 00101 /// tagging can be obtained via the resulting jet's structure_of<...>() 00102 /// function 00103 /// 00104 class RestFrameNSubjettinessTagger : public Transformer{ 00105 public: 00106 /// ctor with arguments (see the class description above) 00107 RestFrameNSubjettinessTagger(const JetDefinition subjet_def, 00108 const double tau2cut=0.08, 00109 const double costhetascut=0.8, 00110 const bool use_exclusive = false) 00111 : _subjet_def(subjet_def), _t2cut(tau2cut), _costscut(costhetascut), 00112 _use_exclusive(use_exclusive){}; 00113 00114 /// returns a textual description of the tagger 00115 virtual std::string description() const; 00116 00117 /// runs the tagger on the given jet and 00118 /// returns the tagged PseudoJet if successful, a PseudoJet==0 otherwise 00119 /// (standard access is through operator()). 00120 virtual PseudoJet result(const PseudoJet & jet) const; 00121 00122 /// the type of Structure returned 00123 typedef RestFrameNSubjettinessTaggerStructure StructureType; 00124 00125 protected: 00126 JetDefinition _subjet_def; 00127 double _t2cut, _costscut; 00128 bool _use_exclusive; 00129 }; 00130 00131 00132 //------------------------------------------------------------------------ 00133 /// @ingroup tools_taggers 00134 /// \class RestFrameNSubjettinessTaggerStructure 00135 /// the structure returned by the RestFrameNSubjettinessTagger transformer. 00136 /// 00137 /// See the RestFrameNSubjettinessTagger class description for the details of 00138 /// what is inside this structure 00139 /// 00140 class RestFrameNSubjettinessTaggerStructure : public CompositeJetStructure{ 00141 public: 00142 /// ctor with pieces initialisation 00143 RestFrameNSubjettinessTaggerStructure(const std::vector<PseudoJet> & pieces) : 00144 CompositeJetStructure(pieces), _tau2(0.0), _costhetas(1.0){} 00145 00146 /// returns the associated N-subjettiness 00147 inline double tau2() const{return _tau2;} 00148 00149 /// returns the associated angle with the boosted axis 00150 inline double costhetas() const {return _costhetas;} 00151 00152 // /// returns the original jet (before tagging) 00153 // const PseudoJet & original() const {return _original_jet;} 00154 00155 protected: 00156 double _tau2; ///< the value of the N-subjettiness 00157 double _costhetas; ///< the minimal angle between the dijets 00158 ///< and the boost axis 00159 // PseudoJet _original_jet; ///< the original jet (before tagging) 00160 00161 // allow the tagger to set these 00162 friend class RestFrameNSubjettinessTagger; 00163 }; 00164 00165 FASTJET_END_NAMESPACE 00166 #endif // __FASTJET_RESTFRAMENSUBJETTINESS_TAGGER_HH__ 00167