CMS 3D CMS Logo

Public Member Functions

fftjetcms::PtEtaP4Builder Struct Reference

#include <VBuilders.h>

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 20 of file VBuilders.h.


Member Function Documentation

math::XYZTLorentzVector fftjetcms::PtEtaP4Builder::operator() ( const double  pt,
const double  eta,
const double  phi 
) const [inline]

Definition at line 22 of file VBuilders.h.

References funct::cos(), alignCSCRings::e, funct::sin(), and mathSSE::sqrt().

            {
                const double px = pt*cos(phi);
                const double py = pt*sin(phi);
                const double pz = pt*sinh(eta);
                const double e = sqrt(px*px + py*py + pz*pz);
                return math::XYZTLorentzVector(px, py, pz, e);
            }