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

◆ operator()()

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

Definition at line 21 of file VBuilders.h.

References funct::cos(), MillePedeFileConverter_cfg::e, PVValHelper::eta, DiDispStaMuonMonitor_cfi::pt, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, funct::sin(), and mathSSE::sqrt().

21  {
22  const double px = pt * cos(phi);
23  const double py = pt * sin(phi);
24  const double pz = pt * sinh(eta);
25  const double e = sqrt(px * px + py * py + pz * pz);
26  return math::XYZTLorentzVector(px, py, pz, e);
27  }
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:23
Cos< T >::type cos(const T &t)
Definition: Cos.h:22