1#ifndef __FASTJET_GRIDJETPLUGIN_HH__
2#define __FASTJET_GRIDJETPLUGIN_HH__
35#include "fastjet/JetDefinition.hh"
39#define FASTJET_GRIDJET_USEFJGRID
41#ifdef FASTJET_GRIDJET_USEFJGRID
42#include "fastjet/RectangularGrid.hh"
45FASTJET_BEGIN_NAMESPACE
62#ifdef FASTJET_GRIDJET_USEFJGRID
78#ifdef FASTJET_GRIDJET_USEFJGRID
104 virtual double R()
const;
108#ifndef FASTJET_GRIDJET_USEFJGRID
110 double drap()
const {
return _dy;}
112 double dphi()
const {
return _dphi;}
114 double rapmin()
const {
return _ymin;}
116 double rapmax()
const {
return _ymax;}
121#ifndef FASTJET_GRIDJET_USEFJGRID
124 int n_tiles()
const {
return _ntotal;}
130 double _ymin, _ymax, _dy, _dphi, _requested_grid_spacing;
131 int _ny, _nphi, _ntotal;
virtual std::string description() const
return a textual description of the jet-definition implemented in this plugin
GridJetPlugin(double ymax, double requested_grid_spacing, const JetDefinition &post_jet_def=JetDefinition())
Basic constructor for the GridJetPlugin Plugin class.
virtual void run_clustering(ClusterSequence &) const
given a ClusterSequence that has been filled up with initial particles, the following function should...
virtual double R() const
This returns the sqrt(dphi*dy/pi) – i.e.
a class that allows a user to introduce their own "plugin" jet finder
class that is intended to hold a full definition of the jet clusterer
Class to contain pseudojets, including minimal information of use to jet-clustering routines.
double drap() const
returns the spacing of the grid in rapidity
double dphi() const
returns the spacing of the grid in azimuth
virtual int tile_index(const PseudoJet &p) const override
returns the index of the tile in which p is located, or -1 if p is outside the tiling region
virtual bool tile_is_good(int itile) const override
returns whether a given tile is good
virtual int n_tiles() const override
returns the total number of tiles in the tiling; valid tile indices run from 0 ......
double rapmax() const
returns the maxmium rapidity extent of the grid
double rapmin() const
returns the minimum rapidity extent of the grid
virtual int n_good_tiles() const override
returns the number of tiles that are "good"; i.e.
RectangularGrid(double rapmax_in, double cell_size)
ctor with simple initialisation