1#ifndef __GRID_MEDIAN_BACKGROUND_ESTIMATOR_HH__
2#define __GRID_MEDIAN_BACKGROUND_ESTIMATOR_HH__
35#include "fastjet/tools/BackgroundEstimatorBase.hh"
36#include "fastjet/RectangularGrid.hh"
39FASTJET_BEGIN_NAMESPACE
81 _enable_rho_m(true) {}
88 throw Error(
"attempt to construct GridMedianBackgroundEstimator with uninitialised RectangularGrid");
105 RectangularGrid(rapmin_in, rapmax_in, drap_in, dphi_in, tile_selector), _enable_rho_m(true) {}
116 void set_particles(
const std::vector<PseudoJet> & particles) FASTJET_OVERRIDE;
126 BackgroundEstimatorBase *
copy() const FASTJET_OVERRIDE {
142 double rho() const FASTJET_OVERRIDE;
147 double sigma() const FASTJET_OVERRIDE;
154 double rho(const
PseudoJet & jet) FASTJET_OVERRIDE;
158 double sigma(const
PseudoJet & jet) FASTJET_OVERRIDE;
167 double rho_m() const FASTJET_OVERRIDE;
173 double sigma_m() const FASTJET_OVERRIDE;
176 double rho_m(const
PseudoJet & jet) FASTJET_OVERRIDE;
179 double sigma_m(const
PseudoJet & jet) FASTJET_OVERRIDE;
186 bool has_rho_m() const FASTJET_OVERRIDE {
return _enable_rho_m;}
222 std::string description() const FASTJET_OVERRIDE;
230 void verify_particles_set() const;
/// a class that holds the result of the calculation
base class corresponding to errors that can be thrown by FastJet
base class providing interface for a generic function of a PseudoJet
class to provide facilities for giving warnings up to some maximum number of times and to provide glo...
Class to contain pseudojets, including minimal information of use to jet-clustering routines.
virtual double mean_tile_area() const override
returns the mean area of tiles.
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
Class that encodes information about cuts and other selection criteria that can be applied to PseudoJ...