CMS 3D CMS Logo

Classes | Functions
ElectronUtilities.h File Reference
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include "DataFormats/Math/interface/Point3D.h"
#include "DataFormats/Math/interface/Vector3D.h"
#include "DataFormats/Math/interface/normalizedPhi.h"

Go to the source code of this file.

Classes

class  EleRelPoint
 
class  EleRelPointPair
 

Functions

template<typename Type1 , typename Type2 >
void ele_convert (const Type1 &obj1, Type2 &obj2)
 
template<typename PointType >
double relative_eta (const PointType &p, const PointType &origin)
 
template<typename PointType >
double relative_phi (const PointType &p, const PointType &origin)
 

Function Documentation

◆ ele_convert()

template<typename Type1 , typename Type2 >
void ele_convert ( const Type1 &  obj1,
Type2 &  obj2 
)

◆ relative_eta()

template<typename PointType >
double relative_eta ( const PointType &  p,
const PointType &  origin 
)

Definition at line 87 of file ElectronUtilities.h.

References AlCaHLTBitMon_ParallelJobs::p.

87  {
88  return (p - origin).eta();
89 }

◆ relative_phi()

template<typename PointType >
double relative_phi ( const PointType &  p,
const PointType &  origin 
)

Definition at line 92 of file ElectronUtilities.h.

References normalizedPhi(), AlCaHLTBitMon_ParallelJobs::p, and PVValHelper::phi.

92  {
93  return normalizedPhi((p - origin).phi());
94 }
constexpr T normalizedPhi(T phi)
Definition: normalizedPhi.h:8