CMS 3D CMS Logo

Public Member Functions | Private Attributes

EleRelPoint Class Reference

#include <ElectronUtilities.h>

List of all members.

Public Member Functions

 EleRelPoint (const math::XYZPoint &p, const math::XYZPoint &origin)
 EleRelPoint (const GlobalPoint &p, const math::XYZPoint &origin)
 EleRelPoint (const GlobalPoint &p, const GlobalPoint &origin)
 EleRelPoint (const math::XYZPoint &p, const GlobalPoint &origin)
double eta ()
double perp ()
double phi ()

Private Attributes

math::XYZVector relP_

Detailed Description

Definition at line 60 of file ElectronUtilities.h.


Constructor & Destructor Documentation

EleRelPoint::EleRelPoint ( const math::XYZPoint p,
const math::XYZPoint origin 
) [inline]

Definition at line 63 of file ElectronUtilities.h.

: relP_(p.x()-origin.x(),p.y()-origin.y(),p.z()-origin.z()) {}
EleRelPoint::EleRelPoint ( const GlobalPoint p,
const math::XYZPoint origin 
) [inline]

Definition at line 64 of file ElectronUtilities.h.

: relP_(p.x()-origin.x(),p.y()-origin.y(),p.z()-origin.z()) {}
EleRelPoint::EleRelPoint ( const math::XYZPoint p,
const GlobalPoint origin 
) [inline]

Definition at line 65 of file ElectronUtilities.h.

: relP_(p.x()-origin.x(),p.y()-origin.y(),p.z()-origin.z()) {}
EleRelPoint::EleRelPoint ( const GlobalPoint p,
const GlobalPoint origin 
) [inline]

Definition at line 66 of file ElectronUtilities.h.

: relP_(p.x()-origin.x(),p.y()-origin.y(),p.z()-origin.z()) {}

Member Function Documentation

double EleRelPoint::eta ( void  ) [inline]

Definition at line 67 of file ElectronUtilities.h.

References relP_.

{ return relP_.eta() ; }
double EleRelPoint::perp ( ) [inline]

Definition at line 69 of file ElectronUtilities.h.

References relP_, and mathSSE::sqrt().

{ return sqrt(relP_.x()*relP_.x()+relP_.y()*relP_.y()) ; }
double EleRelPoint::phi ( void  ) [inline]

Definition at line 68 of file ElectronUtilities.h.

References normalized_phi(), and relP_.

{ return normalized_phi(relP_.phi()) ; }

Member Data Documentation

Definition at line 71 of file ElectronUtilities.h.

Referenced by eta(), perp(), and phi().