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::EnergyEtaP4Builder Struct Reference

#include <VBuilders.h>

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(), EnergyCorrector::pt, and funct::sin().

37  {
38  // There is no mass associated with this energy... We will
39  // assume that the mass is 0 and proceed as if the energy
40  // is the momentum.
41  const double pt = e/cosh(eta);
43  pt*cos(phi), pt*sin(phi), pt*sinh(eta), e);
44  }
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:29
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
Definition: DDAxes.h:10