rivet is hosted by Hepforge, IPPP Durham
Cuttable< Jet > Class Template Reference
Inheritance diagram for Cuttable< Jet >:
Collaboration diagram for Cuttable< Jet >:

List of all members.

Public Member Functions

 Cuttable (const Jet &jet)
double getValue (Cuts::Quantity qty) const

Private Attributes

const Jetjet_

Detailed Description

class Rivet::Cuttable< Jet >

Definition at line 372 of file Cuts.cc.

Constructor & Destructor Documentation

Cuttable ( const Jet jet) [inline]

Definition at line 374 of file Cuts.cc.

: jet_(jet) {}

Member Function Documentation

double getValue ( Cuts::Quantity  qty) const [inline, virtual]

Implements CuttableBase.

Definition at line 375 of file Cuts.cc.

References Rivet::Cuts::abseta, Rivet::Cuts::absrap, Rivet::Cuts::Et, Rivet::Cuts::eta, Rivet::Cuts::mass, Rivet::Cuts::phi, Rivet::Cuts::pT, Rivet::qty_not_found(), and Rivet::Cuts::rap.

      switch ( qty ) {
      case Cuts::pT:     return jet_.momentum().pT();
      case Cuts::Et:     return jet_.momentum().Et();
      case Cuts::mass:   return jet_.momentum().mass();
      case Cuts::rap:    return jet_.momentum().rapidity();
      case Cuts::absrap: return std::abs(jet_.momentum().rapidity());
      case Cuts::eta:    return jet_.momentum().pseudorapidity();
      case Cuts::abseta: return std::abs(jet_.momentum().pseudorapidity());
      case Cuts::phi:    return jet_.momentum().phi();
      default: qty_not_found();
      return -999.;

Member Data Documentation

const Jet& jet_ [private]

Definition at line 391 of file Cuts.cc.

The documentation for this class was generated from the following file: