FastJet 3.0alpha3
Public Member Functions
fastjet::BackgroundJetScalarPtDensity Class Reference

Class that implements (scalar pt sum of jet)/(scalar area of jet) for background estimation. More...

#include <BackgroundEstimator.hh>

Inheritance diagram for fastjet::BackgroundJetScalarPtDensity:
Inheritance graph
[legend]
Collaboration diagram for fastjet::BackgroundJetScalarPtDensity:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BackgroundJetScalarPtDensity ()
 Default constructor provides background estimation with scalar pt sum.
 BackgroundJetScalarPtDensity (double n)
 Constructor to provide background estimation based on $ sum_{i\in jet} p_{ti}^{n} $.
virtual double result (const PseudoJet &jet) const
 the action of the function this _has_ to be overloaded in derived classes
virtual std::string description () const
 returns a description of the function (an empty string by default)

Detailed Description

Class that implements (scalar pt sum of jet)/(scalar area of jet) for background estimation.

Optionally it can return a quantity based on the sum of pt^n, e.g. for use in subtracting fragementation function moments.

Definition at line 81 of file BackgroundEstimator.hh.


Member Function Documentation

double fastjet::BackgroundJetScalarPtDensity::result ( const PseudoJet pj) const [virtual]

the action of the function this _has_ to be overloaded in derived classes

Parameters:
pjthe PseudoJet input to the function

Implements fastjet::FunctionOfPseudoJet< double >.

Definition at line 61 of file BackgroundEstimator.cc.

References fastjet::PseudoJet::area(), and fastjet::PseudoJet::constituents().

                                                                       {
  std::vector<PseudoJet> constituents = jet.constituents();
  double scalar_pt = 0;
  for (unsigned i = 0; i < constituents.size(); i++) {
    scalar_pt += pow(constituents[i].perp(), _pt_power);
  }
  return scalar_pt / jet.area();
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends