/usr/include/fastjet/GridJetPlugin.hh is in libfastjetplugins-dev 3.0.6+dfsg-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | #ifndef __GRIDJETPLUGIN_HH__
#define __GRIDJETPLUGIN_HH__
//STARTHEADER
// $Id: GridJetPlugin.hh 2267 2011-06-20 15:10:23Z salam $
//
// Copyright (c) 2011, Matteo Cacciari, Gavin Salam and Gregory Soyez
//
//----------------------------------------------------------------------
// This file is part of FastJet.
//
// FastJet is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// The algorithms that underlie FastJet have required considerable
// development and are described in hep-ph/0512210. If you use
// FastJet as part of work towards a scientific publication, please
// include a citation to the FastJet paper.
//
// FastJet is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with FastJet. If not, see <http://www.gnu.org/licenses/>.
//----------------------------------------------------------------------
//ENDHEADER
#include "fastjet/JetDefinition.hh"
FASTJET_BEGIN_NAMESPACE // defined in fastjet/internal/base.hh
// forward declaration to reduce includes
class ClusterSequence;
//----------------------------------------------------------------------
//
/// @ingroup plugins
/// \class GridJetPlugin
/// plugin for fastjet (v3.0 upwards) that clusters particles such
/// that all particles in a given cell of a rectangular rapidity-phi
/// grid end up in a common "jet".
///
/// This is not intended for use as a regular jet clustering algorithm,
/// but is rather provided for comparison purposes with the
/// GridMedianBackgroundEstimator (which is even faster).
class GridJetPlugin : public JetDefinition::Plugin {
public:
/// Main constructor for the GridJetPlugin Plugin class.
///
/// \param ymax The maximal rapidity extent of the grid
/// \param requested_grid_spacing The requested grid spacing
/// \param post_jet_def if present, and not == JetDefinition()
/// (which has undefined_jet_algorithm), then
/// run the post_jet_def on the result of the grid
/// clustering.
GridJetPlugin (double ymax, double requested_grid_spacing,
const JetDefinition & post_jet_def = JetDefinition());
/// copy constructor
GridJetPlugin (const GridJetPlugin & plugin) {
*this = plugin;
}
// the things that are required by base class
virtual std::string description () const;
virtual void run_clustering(ClusterSequence &) const;
/// This returns the sqrt(dphi*dy/pi) -- i.e. the radius that for a
/// circular jet would give the same area.
virtual double R() const;
/// returns the actual rapidity spacing of the grid
double drap() const {return _dy;}
/// returns the actual phi spacing of the grid
double dphi() const {return _dphi;}
/// returns the minimum rapidity of the grid
double rapmin() const {return _ymin;}
/// returns the maximum rapidity of the grid
double rapmax() const {return _ymax;}
private:
void setup_grid();
int igrid(const PseudoJet & p) const;
double _ymin, _ymax, _dy, _dphi, _requested_grid_spacing;
int _ny, _nphi, _ntotal;
JetDefinition _post_jet_def;
};
FASTJET_END_NAMESPACE // defined in fastjet/internal/base.hh
#endif // __GRIDJETPLUGIN_HH__
|