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

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 
)

Definition at line 69 of file ElectronUtilities.h.

70  { return (p-origin).eta() ; }
template<typename PointType >
double relative_phi ( const PointType &  p,
const PointType &  origin 
)

Definition at line 73 of file ElectronUtilities.h.

References normalizedPhi(), and EleRelPoint::phi().

74  { return normalizedPhi((p-origin).phi()) ; }
constexpr T normalizedPhi(T phi)
Definition: normalizedPhi.h:9