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"
39 FASTJET_BEGIN_NAMESPACE
81 _enable_rho_m(true) {}
87 if (!RectangularGrid::is_initialised())
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;
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;
162 bool has_sigma() const FASTJET_OVERRIDE {
return true;}
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;
244 FASTJET_END_NAMESPACE
/// a class that holds the result of the calculation
Abstract base class that provides the basic interface for classes that estimate levels of background ...
base class corresponding to errors that can be thrown by FastJet
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.
Class that holds a generic rectangular tiling.
Class that encodes information about cuts and other selection criteria that can be applied to PseudoJ...