CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Attributes
L1MuonPixelTrackFitter::Circle Class Reference

#include <L1MuonPixelTrackFitter.h>

Public Types

typedef Point3DBase< long
double, GlobalTag
Point
 
typedef Vector3DBase< long
double, GlobalTag
Vector
 

Public Member Functions

const Pointcenter () const
 
 Circle ()
 
 Circle (const GlobalPoint &h1, const GlobalPoint &h2, double curvature)
 
const long double & curvature () const
 
bool isValid () const
 

Private Attributes

Point theCenter
 
long double theCurvature
 
bool theValid
 

Detailed Description

Definition at line 29 of file L1MuonPixelTrackFitter.h.

Member Typedef Documentation

Definition at line 32 of file L1MuonPixelTrackFitter.h.

Definition at line 31 of file L1MuonPixelTrackFitter.h.

Constructor & Destructor Documentation

L1MuonPixelTrackFitter::Circle::Circle ( )
inline

Definition at line 33 of file L1MuonPixelTrackFitter.h.

L1MuonPixelTrackFitter::Circle::Circle ( const GlobalPoint h1,
const GlobalPoint h2,
double  curvature 
)
inline

Definition at line 34 of file L1MuonPixelTrackFitter.h.

References funct::abs(), RecoTauCleanerPlugins::charge, Vector3DBase< T, FrameTag >::cross(), fireworks::p1, fireworks::p2, PV3DBase< T, PVType, FrameType >::perp2(), mathSSE::sqrt(), theCenter, theCurvature, and theValid.

35  Point p1(h1);
36  Point p2(h2);
37  Vector dp = (p2 - p1) / 2.;
38  int charge = theCurvature > 0 ? 1 : -1;
39  Vector ec = charge * dp.cross(Vector(0, 0, 1)).unit();
40  long double dist_tmp = 1. / theCurvature / theCurvature - dp.perp2();
41  theValid = (dist_tmp > 0.);
42  theCenter = p1 + dp + ec * sqrt(std::abs(dist_tmp));
43  }
Vector3DBase< long double, GlobalTag > Vector
const TString p2
Definition: fwPaths.cc:13
ROOT::Math::Plane3D::Vector Vector
Definition: EcalHitMaker.cc:29
T sqrt(T t)
Definition: SSEVec.h:19
const TString p1
Definition: fwPaths.cc:12
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const long double & curvature() const
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57

Member Function Documentation

const Point& L1MuonPixelTrackFitter::Circle::center ( ) const
inline
const long double& L1MuonPixelTrackFitter::Circle::curvature ( ) const
inline

Definition at line 46 of file L1MuonPixelTrackFitter.h.

References theCurvature.

bool L1MuonPixelTrackFitter::Circle::isValid ( void  ) const
inline

Member Data Documentation

Point L1MuonPixelTrackFitter::Circle::theCenter
private

Definition at line 51 of file L1MuonPixelTrackFitter.h.

Referenced by center(), and Circle().

long double L1MuonPixelTrackFitter::Circle::theCurvature
private

Definition at line 50 of file L1MuonPixelTrackFitter.h.

Referenced by Circle(), and curvature().

bool L1MuonPixelTrackFitter::Circle::theValid
private

Definition at line 49 of file L1MuonPixelTrackFitter.h.

Referenced by Circle(), and isValid().