29 #include "fastjet/tools/Subtractor.hh"
35 FASTJET_BEGIN_NAMESPACE
46 throw Error(
"Trying to subtract a jet without area support");
55 throw Error(
"default Subtractor does not have any information about the background, which is needed to perform the subtraction");
58 PseudoJet subtracted_jet = jet;
59 PseudoJet area4vect = jet.area_4vector();
61 if (rho*area4vect.perp() < jet.perp() ) {
64 subtracted_jet -= rho*area4vect;
70 return subtracted_jet;
76 return "Subtractor that uses the following background estimator to determine rho: "+
_bge->description();
79 ostr <<
"Subtractor that uses a fixed value of rho = " <<
_rho;
82 return "Uninitialised subtractor";
double _rho
the fixed value of rho to use if the user has selected that option
virtual std::string description() const
class description
virtual PseudoJet result(const PseudoJet &jet) const
returns a jet that's subtracted
Subtractor()
default constructor
static const double _invalid_rho
a value of rho that is used as a default to label that the stored rho is not valid for subtraction...
BackgroundEstimatorBase * _bge
the tool used to estimate the background if has to be mutable in case its underlying selector takes a...