CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
L1MuonPixelTrackFitter::Circle Class Reference

#include <L1MuonPixelTrackFitter.h>

Public Types

typedef Point3DBase< long double, GlobalTagPoint
 
typedef Vector3DBase< long double, GlobalTagVector
 

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

◆ Point

Definition at line 32 of file L1MuonPixelTrackFitter.h.

◆ Vector

Definition at line 31 of file L1MuonPixelTrackFitter.h.

Constructor & Destructor Documentation

◆ Circle() [1/2]

L1MuonPixelTrackFitter::Circle::Circle ( )
inline

Definition at line 33 of file L1MuonPixelTrackFitter.h.

33 : theValid(false) {}

◆ Circle() [2/2]

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

Definition at line 34 of file L1MuonPixelTrackFitter.h.

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  }

References funct::abs(), ALCARECOTkAlJpsiMuMu_cff::charge, Calorimetry_cff::dp, p1, p2, mathSSE::sqrt(), theCenter, theCurvature, and theValid.

Member Function Documentation

◆ center()

const Point& L1MuonPixelTrackFitter::Circle::center ( ) const
inline

Definition at line 45 of file L1MuonPixelTrackFitter.h.

45 { return theCenter; }

References theCenter.

Referenced by L1MuonPixelTrackFitter::valPhi(), and L1MuonPixelTrackFitter::valTip().

◆ curvature()

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

Definition at line 46 of file L1MuonPixelTrackFitter.h.

46 { return theCurvature; }

References theCurvature.

◆ isValid()

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

Definition at line 44 of file L1MuonPixelTrackFitter.h.

44 { return theValid; }

References theValid.

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

Member Data Documentation

◆ theCenter

Point L1MuonPixelTrackFitter::Circle::theCenter
private

Definition at line 51 of file L1MuonPixelTrackFitter.h.

Referenced by center(), and Circle().

◆ theCurvature

long double L1MuonPixelTrackFitter::Circle::theCurvature
private

Definition at line 50 of file L1MuonPixelTrackFitter.h.

Referenced by Circle(), and curvature().

◆ theValid

bool L1MuonPixelTrackFitter::Circle::theValid
private

Definition at line 49 of file L1MuonPixelTrackFitter.h.

Referenced by Circle(), and isValid().

L1MuonPixelTrackFitter::Circle::Vector
Vector3DBase< long double, GlobalTag > Vector
Definition: L1MuonPixelTrackFitter.h:31
Vector
ROOT::Math::Plane3D::Vector Vector
Definition: EcalHitMaker.cc:29
L1MuonPixelTrackFitter::Circle::theValid
bool theValid
Definition: L1MuonPixelTrackFitter.h:49
L1MuonPixelTrackFitter::Circle::curvature
const long double & curvature() const
Definition: L1MuonPixelTrackFitter.h:46
Calorimetry_cff.dp
dp
Definition: Calorimetry_cff.py:157
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
p2
double p2[4]
Definition: TauolaWrapper.h:90
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
p1
double p1[4]
Definition: TauolaWrapper.h:89
L1MuonPixelTrackFitter::Circle::theCurvature
long double theCurvature
Definition: L1MuonPixelTrackFitter.h:50
L1MuonPixelTrackFitter::Circle::theCenter
Point theCenter
Definition: L1MuonPixelTrackFitter.h:51
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22