CMS 3D CMS Logo

Public Member Functions

fftjetcms::EnergyEtaP4Builder Struct Reference

#include <VBuilders.h>

List of all members.

Public Member Functions

math::XYZTLorentzVector operator() (const double e, const double eta, const double phi) const

Detailed Description

Definition at line 33 of file VBuilders.h.


Member Function Documentation

math::XYZTLorentzVector fftjetcms::EnergyEtaP4Builder::operator() ( const double  e,
const double  eta,
const double  phi 
) const [inline]

Definition at line 35 of file VBuilders.h.

References funct::cos(), and funct::sin().

            {
                // There is no mass associated with this energy... We will
                // assume that the mass is 0 and proceed as if the energy
                // is the momentum.
                const double pt = e/cosh(eta);
                return math::XYZTLorentzVector(
                    pt*cos(phi), pt*sin(phi), pt*sinh(eta), e);
            }