CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
PerigeeRefittedTrackState Class Reference

#include <PerigeeRefittedTrackState.h>

Inheritance diagram for PerigeeRefittedTrackState:
RefittedTrackState< 5 > ReferenceCounted

Public Types

typedef ReferenceCountingPointer< RefittedTrackState< 5 > > RefCountedRefittedTrackState
 
- Public Types inherited from RefittedTrackState< 5 >
typedef ROOT::Math::SMatrix< double, N, N, ROOT::Math::MatRepSym< double, N > > AlgebraicSymMatrixNN
 
typedef ROOT::Math::SVector< double, N-2 > AlgebraicVectorM
 
typedef ROOT::Math::SVector< double, NAlgebraicVectorN
 

Public Member Functions

std::vector< ReferenceCountingPointer< RefittedTrackState< 5 > > > components () const override
 
AlgebraicSymMatrix55 covariance () const override
 
FreeTrajectoryState freeTrajectoryState () const override
 
AlgebraicVector3 momentumVector () const override
 
AlgebraicVector5 parameters () const override
 
 PerigeeRefittedTrackState (const TrajectoryStateClosestToPoint &tscp, const AlgebraicVector3 &aMomentumAtVertex, const double aWeight=1.)
 
GlobalPoint position () const override
 
ReferenceCountingPointer< RefittedTrackState< 5 > > stateWithNewWeight (const double newWeight) const override
 
TrajectoryStateOnSurface trajectoryStateOnSurface (const Surface &surface) const override
 
TrajectoryStateOnSurface trajectoryStateOnSurface (const Surface &surface, const Propagator &propagator) const override
 
reco::TransientTrack transientTrack () const override
 
double weight () const override
 
 ~PerigeeRefittedTrackState () override
 
- Public Member Functions inherited from RefittedTrackState< 5 >
 ~RefittedTrackState () override
 

Private Attributes

AlgebraicVector3 momentumAtVertex
 
TrajectoryStateClosestToPoint theState
 
double theWeight
 

Detailed Description

Definition at line 18 of file PerigeeRefittedTrackState.h.

Member Typedef Documentation

Definition at line 22 of file PerigeeRefittedTrackState.h.

Constructor & Destructor Documentation

PerigeeRefittedTrackState::PerigeeRefittedTrackState ( const TrajectoryStateClosestToPoint tscp,
const AlgebraicVector3 aMomentumAtVertex,
const double  aWeight = 1. 
)
inline

Definition at line 24 of file PerigeeRefittedTrackState.h.

Referenced by stateWithNewWeight().

26  :
27  theState(tscp), momentumAtVertex(aMomentumAtVertex), theWeight(aWeight) {}
TrajectoryStateClosestToPoint theState
PerigeeRefittedTrackState::~PerigeeRefittedTrackState ( )
inlineoverride

Definition at line 29 of file PerigeeRefittedTrackState.h.

29 {}

Member Function Documentation

std::vector< PerigeeRefittedTrackState::RefCountedRefittedTrackState > PerigeeRefittedTrackState::components ( ) const
overridevirtual

Implements RefittedTrackState< 5 >.

Definition at line 14 of file PerigeeRefittedTrackState.cc.

References mps_fire::result.

Referenced by weight().

15 {
16  std::vector<RefCountedRefittedTrackState> result; result.reserve(1);
17  result.push_back(RefCountedRefittedTrackState(
18  const_cast<PerigeeRefittedTrackState*>(this)));
19  return result;
20 }
ReferenceCountingPointer< RefittedTrackState< 5 > > RefCountedRefittedTrackState
AlgebraicSymMatrix55 PerigeeRefittedTrackState::covariance ( void  ) const
inlineoverridevirtual

The covariance matrix

Implements RefittedTrackState< 5 >.

Definition at line 64 of file PerigeeRefittedTrackState.h.

References PerigeeTrajectoryError::covarianceMatrix(), TrajectoryStateClosestToPoint::perigeeError(), and theState.

const PerigeeTrajectoryError & perigeeError() const
const AlgebraicSymMatrix55 & covarianceMatrix() const
TrajectoryStateClosestToPoint theState
FreeTrajectoryState PerigeeRefittedTrackState::freeTrajectoryState ( ) const
inlineoverridevirtual
AlgebraicVector3 PerigeeRefittedTrackState::momentumVector ( ) const
overridevirtual

Vector containing the parameters describing the momentum as the vertex. These are (signed transverse curvature, theta, phi)

Implements RefittedTrackState< 5 >.

Definition at line 8 of file PerigeeRefittedTrackState.cc.

References momentumAtVertex.

Referenced by position().

9 {
10  return momentumAtVertex;
11 }
AlgebraicVector5 PerigeeRefittedTrackState::parameters ( void  ) const
inlineoverridevirtual

Vector containing the refitted track parameters.
These are (signed transverse curvature, theta, phi, (signed) transverse , longitudinal impact parameter)

Implements RefittedTrackState< 5 >.

Definition at line 57 of file PerigeeRefittedTrackState.h.

References TrajectoryStateClosestToPoint::perigeeParameters(), theState, and PerigeeTrajectoryParameters::vector().

58  {return theState.perigeeParameters().vector();}
const AlgebraicVector5 & vector() const
const PerigeeTrajectoryParameters & perigeeParameters() const
TrajectoryStateClosestToPoint theState
GlobalPoint PerigeeRefittedTrackState::position ( ) const
inlineoverridevirtual

Position at which the momentum is defined.

Implements RefittedTrackState< 5 >.

Definition at line 71 of file PerigeeRefittedTrackState.h.

References momentumVector(), TrajectoryStateClosestToPoint::referencePoint(), and theState.

72  {return theState.referencePoint();}
TrajectoryStateClosestToPoint theState
const GlobalPoint & referencePoint() const
PerigeeRefittedTrackState::RefCountedRefittedTrackState PerigeeRefittedTrackState::stateWithNewWeight ( const double  newWeight) const
overridevirtual

Returns a new refitted state of the same type, but with another weight. The current state is unchanged.

Implements RefittedTrackState< 5 >.

Definition at line 23 of file PerigeeRefittedTrackState.cc.

References momentumAtVertex, PerigeeRefittedTrackState(), and theState.

Referenced by weight().

24 {
27 }
ReferenceCountingPointer< RefittedTrackState< 5 > > RefCountedRefittedTrackState
PerigeeRefittedTrackState(const TrajectoryStateClosestToPoint &tscp, const AlgebraicVector3 &aMomentumAtVertex, const double aWeight=1.)
TrajectoryStateClosestToPoint theState
TrajectoryStateOnSurface PerigeeRefittedTrackState::trajectoryStateOnSurface ( const Surface surface) const
overridevirtual

Transformation into a TSOS at a given surface

Implements RefittedTrackState< 5 >.

Definition at line 30 of file PerigeeRefittedTrackState.cc.

References anyDirection, TrajectoryStateOnSurface::curvilinearError(), freeTrajectoryState(), TrajectoryStateOnSurface::globalParameters(), GlobalTrajectoryParameters::magneticField(), FreeTrajectoryState::parameters(), Propagator::propagate(), theState, TrajectoryStateClosestToPoint::theState(), and weight().

Referenced by freeTrajectoryState().

31 {
33  TrajectoryStateOnSurface tsos = thePropagator.propagate(freeTrajectoryState(), surface);
35  tsos.curvilinearError(), surface) ;
36 }
double weight() const override
const GlobalTrajectoryParameters & parameters() const
const FreeTrajectoryState & theState() const
const CurvilinearTrajectoryError & curvilinearError() const
FreeTrajectoryState freeTrajectoryState() const override
TrajectoryStateClosestToPoint theState
const GlobalTrajectoryParameters & globalParameters() const
const MagneticField & magneticField() const
TrajectoryStateOnSurface PerigeeRefittedTrackState::trajectoryStateOnSurface ( const Surface surface,
const Propagator propagator 
) const
overridevirtual

Transformation into a TSOS at a given surface, with a given propagator

Implements RefittedTrackState< 5 >.

Definition at line 39 of file PerigeeRefittedTrackState.cc.

References anyDirection, Propagator::clone(), TrajectoryStateOnSurface::curvilinearError(), freeTrajectoryState(), TrajectoryStateOnSurface::globalParameters(), and weight().

41 {
42  std::unique_ptr<Propagator> thePropagator( propagator.clone());
43  thePropagator->setPropagationDirection(anyDirection);
44 
45  TrajectoryStateOnSurface tsos = thePropagator->propagate(freeTrajectoryState(), surface);
47  tsos.curvilinearError(), surface) ;
48 }
double weight() const override
virtual Propagator * clone() const =0
const CurvilinearTrajectoryError & curvilinearError() const
FreeTrajectoryState freeTrajectoryState() const override
const GlobalTrajectoryParameters & globalParameters() const
reco::TransientTrack PerigeeRefittedTrackState::transientTrack ( ) const
overridevirtual

Implements RefittedTrackState< 5 >.

Definition at line 50 of file PerigeeRefittedTrackState.cc.

References TransientTrackFromFTSFactory::build(), and freeTrajectoryState().

Referenced by weight().

51 {
53  return factory.build(freeTrajectoryState());
54 }
FreeTrajectoryState freeTrajectoryState() const override
reco::TransientTrack build(const FreeTrajectoryState &fts) const
double PerigeeRefittedTrackState::weight ( ) const
inlineoverridevirtual

The weight of this component in a mixture

Implements RefittedTrackState< 5 >.

Definition at line 84 of file PerigeeRefittedTrackState.h.

References components(), stateWithNewWeight(), theWeight, and transientTrack().

Referenced by trajectoryStateOnSurface().

Member Data Documentation

AlgebraicVector3 PerigeeRefittedTrackState::momentumAtVertex
private

Definition at line 100 of file PerigeeRefittedTrackState.h.

Referenced by momentumVector(), and stateWithNewWeight().

TrajectoryStateClosestToPoint PerigeeRefittedTrackState::theState
private
double PerigeeRefittedTrackState::theWeight
private

Definition at line 101 of file PerigeeRefittedTrackState.h.

Referenced by weight().