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

Class that implements $ \frac{1}{A} \sum_{i \in jet} (\sqrt{p_{ti}^2+m^2} - p_{ti}) $ for background estimation. More...

#include <BackgroundEstimator.hh>

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

List of all members.

Public Member Functions

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 $ \frac{1}{A} \sum_{i \in jet} (\sqrt{p_{ti}^2+m^2} - p_{ti}) $ for background estimation.

This is useful for correcting jet masses in cases where the event involves massive particles.

Definition at line 106 of file BackgroundEstimator.hh.


Member Function Documentation

virtual double fastjet::BackgroundJetPtMDensity::result ( const PseudoJet pj) const [inline, 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 108 of file BackgroundEstimator.hh.

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

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

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