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";