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

List of all members.

Public Member Functions

 Cuttable (const HepMC::FourVector &vec)
double getValue (Cuts::Quantity qty) const

Private Attributes

const HepMC::FourVector & vec_

Detailed Description

template<>
class Rivet::Cuttable< HepMC::FourVector >

Definition at line 338 of file Cuts.cc.


Constructor & Destructor Documentation

Cuttable ( const HepMC::FourVector &  vec) [inline]

Definition at line 340 of file Cuts.cc.

: vec_(vec) {}

Member Function Documentation

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

Implements CuttableBase.

Definition at line 341 of file Cuts.cc.

References Rivet::Cuts::eta, Rivet::Cuts::mass, Rivet::Cuts::phi, Rivet::Cuts::pT, and Rivet::qty_not_found().

                                            {
      switch ( qty ) {
      case Cuts::pT:   return vec_.perp();
      case Cuts::mass: return vec_.m();
    //      case Cuts::rap:  return vec_.rap(); // needs calculated conversion
      case Cuts::eta:  return vec_.pseudoRapidity();
      case Cuts::phi:  return vec_.phi();
      default: qty_not_found();
      }
      return -999.;
    }

Member Data Documentation

const HepMC::FourVector& vec_ [private]

Definition at line 353 of file Cuts.cc.


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