CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 30 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 31 of file VBuilders.h.

References funct::cos(), DiDispStaMuonMonitor_cfi::pt, and funct::sin().

31  {
32  // There is no mass associated with this energy... We will
33  // assume that the mass is 0 and proceed as if the energy
34  // is the momentum.
35  const double pt = e / cosh(eta);
36  return math::XYZTLorentzVector(pt * cos(phi), pt * sin(phi), pt * sinh(eta), e);
37  }
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
Cos< T >::type cos(const T &t)
Definition: Cos.h:22