FastJet  3.3.3
Public Member Functions | List of all members
fastjet::RectangularGrid Class Reference

Class that holds a generic rectangular tiling. More...

#include <fastjet/RectangularGrid.hh>

Inheritance diagram for fastjet::RectangularGrid:
Inheritance graph
[legend]
Collaboration diagram for fastjet::RectangularGrid:
Collaboration graph
[legend]

Public Member Functions

 RectangularGrid (double rapmax_in, double cell_size)
 ctor with simple initialisation More...
 
 RectangularGrid (double rapmin_in, double rapmax_in, double drap_in, double dphi_in, Selector tile_selector=Selector())
 ctor with more control over initialisation More...
 
 RectangularGrid ()
 dummy ctor (will give an unusable grid)
 
virtual int n_tiles () const override
 returns the total number of tiles in the tiling; valid tile indices run from 0 ... More...
 
virtual int n_good_tiles () const override
 returns the number of tiles that are "good"; i.e. More...
 
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 double tile_area (int) const override
 returns the area of tile itile.
 
virtual double mean_tile_area () const override
 returns the mean area of tiles.
 
virtual std::string description () const override
 returns a textual description of the grid
 
double rapmin () const
 returns the minimum rapidity extent of the grid
 
double rapmax () const
 returns the maxmium rapidity extent of the grid
 
double drap () const
 returns the spacing of the grid in rapidity
 
double dphi () const
 returns the spacing of the grid in azimuth
 
virtual bool is_initialised () const override
 returns true if the grid is in a suitably initialised state
 
- Public Member Functions inherited from fastjet::TilingBase
virtual bool all_tiles_good () const
 returns whether all tiles are good
 
virtual bool all_tiles_equal_area () const
 returns true if all tiles have the same area
 
bool is_initialized () const
 
virtual ~TilingBase ()
 virtual destructor
 

Detailed Description

Class that holds a generic rectangular tiling.

Definition at line 88 of file RectangularGrid.hh.

Constructor & Destructor Documentation

◆ RectangularGrid() [1/2]

fastjet::RectangularGrid::RectangularGrid ( double  rapmax_in,
double  cell_size 
)
inline

ctor with simple initialisation

Parameters
rapmaxthe maximal absolute rapidity extent of the grid
cell_sizethe grid spacing (equivalently, cell size)

Definition at line 93 of file RectangularGrid.hh.

◆ RectangularGrid() [2/2]

fastjet::RectangularGrid::RectangularGrid ( double  rapmin_in,
double  rapmax_in,
double  drap_in,
double  dphi_in,
Selector  tile_selector = Selector() 
)
inline

ctor with more control over initialisation

Parameters
rapminthe minimum rapidity extent of the grid
rapmaxthe maximum rapidity extent of the grid
drapthe grid spacing in rapidity
dphithe grid spacing in azimuth
tile_selectoroptional (geometric) selector to specify which tiles are good; a tile is good if a massless 4-vector at the center of the tile passes the selection

Definition at line 108 of file RectangularGrid.hh.

Member Function Documentation

◆ n_tiles()

virtual int fastjet::RectangularGrid::n_tiles ( ) const
inlineoverridevirtual

returns the total number of tiles in the tiling; valid tile indices run from 0 ...

n_tiles()-1;

Implements fastjet::TilingBase.

Definition at line 120 of file RectangularGrid.hh.

◆ n_good_tiles()

virtual int fastjet::RectangularGrid::n_good_tiles ( ) const
inlineoverridevirtual

returns the number of tiles that are "good"; i.e.

there is scope for having tiles that, for whatever reason, should be ignored; there are situations in which having "non-good" tiles may be the simplest mechanism to obtain a tiling with holes in it

Reimplemented from fastjet::TilingBase.

Definition at line 122 of file RectangularGrid.hh.


The documentation for this class was generated from the following files: