FastJet  3.1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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
 returns the total number of tiles in the tiling; valid tile indices run from 0 ... More...
 
virtual int n_good_tiles () const
 returns the number of tiles that are "good"; i.e. More...
 
virtual int tile_index (const PseudoJet &p) const
 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
 returns whether a given tile is good
 
virtual double tile_area (int) const
 returns the area of tile itile.
 
virtual double mean_tile_area () const
 returns the mean area of tiles.
 
virtual std::string description () const
 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
 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

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.

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

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

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.

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

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: