CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
fftjetcms::PtEtaP4Builder Struct Reference

#include <VBuilders.h>

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().

24  {
25  const double px = pt*cos(phi);
26  const double py = pt*sin(phi);
27  const double pz = pt*sinh(eta);
28  const double e = sqrt(px*px + py*py + pz*pz);
29  return math::XYZTLorentzVector(px, py, pz, e);
30  }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
T eta() const
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:30
T sqrt(T t)
Definition: SSEVec.h:46
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
Definition: DDAxes.h:10