1 #ifndef __FASTJET_RECTANGULARGRID_HH__     2 #define __FASTJET_RECTANGULARGRID_HH__    34 #include "fastjet/PseudoJet.hh"    35 #include "fastjet/Selector.hh"    37 FASTJET_BEGIN_NAMESPACE      
    46   virtual int tile_index(
const PseudoJet & p) 
const = 0;
    50   virtual int n_tiles() 
const = 0;
    70   virtual double tile_area(
int )
 const {
return mean_tile_area();}
    73   virtual double mean_tile_area() 
const = 0;
    76   virtual std::string description() 
const = 0;
    79   virtual bool is_initialised() 
const = 0;
    80   bool is_initialized()
 const {
return is_initialised();}
    94       _ymax(rapmax_in), _ymin(-rapmax_in), 
    95       _requested_drap(cell_size), _requested_dphi(cell_size) {
   110     : _ymax(rapmax_in), _ymin(rapmin_in), 
   111       _requested_drap(drap_in), _requested_dphi(dphi_in),
   112       _tile_selector(tile_selector)
   120   virtual int n_tiles() const FASTJET_OVERRIDE {
return _ntotal;}
   126   virtual int tile_index(
const PseudoJet & p) 
const FASTJET_OVERRIDE;
   131     return _tile_selector.worker() ? _is_good[itile] : 
true;
   136     return mean_tile_area();
   143   virtual std::string description() 
const FASTJET_OVERRIDE;
   150   double drap()
   const {
return _dy;}
   152   double dphi()
   const {
return _dphi;}
   162   double _requested_drap; 
   163   double _requested_dphi; 
   166   double _dy, _dphi, _cell_area, _inverse_dy, _inverse_dphi;
   167   int _ny, _nphi, _ntotal;
   175   std::vector<bool> _is_good;
   179 FASTJET_END_NAMESPACE        
   181 #endif // __FASTJET_RECTANGULARGRID_HH__ Class to indicate generic structure of tilings. 
 
virtual int n_tiles() const override
returns the total number of tiles in the tiling; valid tile indices run from 0 ... 
 
virtual bool is_initialised() const override
returns true if the grid is in a suitably initialised state 
 
RectangularGrid(double rapmax_in, double cell_size)
ctor with simple initialisation 
 
virtual double tile_area(int) const override
returns the area of tile itile. 
 
virtual int n_good_tiles() const override
returns the number of tiles that are "good"; i.e. 
 
virtual int n_good_tiles() const
returns the number of tiles that are "good"; i.e. 
 
double rapmin() const
returns the minimum rapidity extent of the grid 
 
virtual bool all_tiles_good() const
returns whether all tiles are good 
 
Class that holds a generic rectangular tiling. 
 
virtual bool tile_is_good(int) const
returns whether a given tile is good 
 
virtual double mean_tile_area() const override
returns the mean area of tiles. 
 
virtual bool tile_is_good(int itile) const override
returns whether a given tile is good 
 
Class that encodes information about cuts and other selection criteria that can be applied to PseudoJ...
 
virtual double tile_area(int) const
returns the area of tile itile. 
 
double rapmax() const
returns the maxmium rapidity extent of the grid 
 
double drap() const
returns the spacing of the grid in rapidity 
 
virtual ~TilingBase()
virtual destructor 
 
Class to contain pseudojets, including minimal information of use to jet-clustering routines...
 
virtual bool all_tiles_equal_area() const
returns true if all tiles have the same area 
 
RectangularGrid(double rapmin_in, double rapmax_in, double drap_in, double dphi_in, Selector tile_selector=Selector())
ctor with more control over initialisation 
 
double dphi() const
returns the spacing of the grid in azimuth