CMS 3D CMS Logo

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(), MillePedeFileConverter_cfg::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
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
T sqrt(T t)
Definition: SSEVec.h:18
Cos< T >::type cos(const T &t)
Definition: Cos.h:22