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

◆ RefCountedRefittedTrackState

Definition at line 20 of file PerigeeRefittedTrackState.h.

Constructor & Destructor Documentation

◆ PerigeeRefittedTrackState()

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

Definition at line 22 of file PerigeeRefittedTrackState.h.

Referenced by stateWithNewWeight().

25  : theState(tscp), momentumAtVertex(aMomentumAtVertex), theWeight(aWeight) {}
TrajectoryStateClosestToPoint theState

◆ ~PerigeeRefittedTrackState()

PerigeeRefittedTrackState::~PerigeeRefittedTrackState ( )
inlineoverride

Definition at line 27 of file PerigeeRefittedTrackState.h.

27 {}

Member Function Documentation

◆ components()

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

Implements RefittedTrackState< 5 >.

Definition at line 10 of file PerigeeRefittedTrackState.cc.

References mps_fire::result.

10  {
11  std::vector<RefCountedRefittedTrackState> result;
12  result.reserve(1);
13  result.push_back(RefCountedRefittedTrackState(const_cast<PerigeeRefittedTrackState*>(this)));
14  return result;
15 }
ReferenceCountingPointer< RefittedTrackState< 5 > > RefCountedRefittedTrackState

◆ covariance()

AlgebraicSymMatrix55 PerigeeRefittedTrackState::covariance ( void  ) const
inlineoverridevirtual

The covariance matrix

Implements RefittedTrackState< 5 >.

Definition at line 59 of file PerigeeRefittedTrackState.h.

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

const AlgebraicSymMatrix55 & covarianceMatrix() const
const PerigeeTrajectoryError & perigeeError() const
TrajectoryStateClosestToPoint theState

◆ freeTrajectoryState()

FreeTrajectoryState PerigeeRefittedTrackState::freeTrajectoryState ( ) const
inlineoverridevirtual

Transformation into a FreeTrajectoryState

Implements RefittedTrackState< 5 >.

Definition at line 33 of file PerigeeRefittedTrackState.h.

References theState, and TrajectoryStateClosestToPoint::theState().

Referenced by trajectoryStateOnSurface(), and transientTrack().

33 { return theState.theState(); }
TrajectoryStateClosestToPoint theState
const FreeTrajectoryState & theState() const

◆ momentumVector()

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.

8 { return momentumAtVertex; }

◆ parameters()

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 53 of file PerigeeRefittedTrackState.h.

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

53 { return theState.perigeeParameters().vector(); }
const AlgebraicVector5 & vector() const
const PerigeeTrajectoryParameters & perigeeParameters() const
TrajectoryStateClosestToPoint theState

◆ position()

GlobalPoint PerigeeRefittedTrackState::position ( ) const
inlineoverridevirtual

Position at which the momentum is defined.

Implements RefittedTrackState< 5 >.

Definition at line 65 of file PerigeeRefittedTrackState.h.

References TrajectoryStateClosestToPoint::referencePoint(), and theState.

65 { return theState.referencePoint(); }
TrajectoryStateClosestToPoint theState
const GlobalPoint & referencePoint() const

◆ stateWithNewWeight()

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 17 of file PerigeeRefittedTrackState.cc.

References momentumAtVertex, PerigeeRefittedTrackState(), and theState.

18  {
20 }
ReferenceCountingPointer< RefittedTrackState< 5 > > RefCountedRefittedTrackState
PerigeeRefittedTrackState(const TrajectoryStateClosestToPoint &tscp, const AlgebraicVector3 &aMomentumAtVertex, const double aWeight=1.)
TrajectoryStateClosestToPoint theState

◆ trajectoryStateOnSurface() [1/2]

TrajectoryStateOnSurface PerigeeRefittedTrackState::trajectoryStateOnSurface ( const Surface surface) const
overridevirtual

Transformation into a TSOS at a given surface

Implements RefittedTrackState< 5 >.

Definition at line 22 of file PerigeeRefittedTrackState.cc.

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

22  {
24  TrajectoryStateOnSurface tsos = thePropagator.propagate(freeTrajectoryState(), surface);
25  return TrajectoryStateOnSurface(weight(), tsos.globalParameters(), tsos.curvilinearError(), surface);
26 }
const GlobalTrajectoryParameters & globalParameters() const
const GlobalTrajectoryParameters & parameters() const
FreeTrajectoryState freeTrajectoryState() const override
TrajectoryStateClosestToPoint theState
const CurvilinearTrajectoryError & curvilinearError() const
const MagneticField & magneticField() const
const FreeTrajectoryState & theState() const
double weight() const override

◆ trajectoryStateOnSurface() [2/2]

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 28 of file PerigeeRefittedTrackState.cc.

References anyDirection, TrajectoryStateOnSurface::curvilinearError(), freeTrajectoryState(), TrajectoryStateOnSurface::globalParameters(), TrackCandidateProducer_cfi::propagator, and weight().

29  {
30  std::unique_ptr<Propagator> thePropagator(propagator.clone());
31  thePropagator->setPropagationDirection(anyDirection);
32 
33  TrajectoryStateOnSurface tsos = thePropagator->propagate(freeTrajectoryState(), surface);
34  return TrajectoryStateOnSurface(weight(), tsos.globalParameters(), tsos.curvilinearError(), surface);
35 }
const GlobalTrajectoryParameters & globalParameters() const
FreeTrajectoryState freeTrajectoryState() const override
const CurvilinearTrajectoryError & curvilinearError() const
double weight() const override

◆ transientTrack()

reco::TransientTrack PerigeeRefittedTrackState::transientTrack ( ) const
overridevirtual

Implements RefittedTrackState< 5 >.

Definition at line 37 of file PerigeeRefittedTrackState.cc.

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

37  {
39  return factory.build(freeTrajectoryState());
40 }
reco::TransientTrack build(const FreeTrajectoryState &fts) const
FreeTrajectoryState freeTrajectoryState() const override

◆ weight()

double PerigeeRefittedTrackState::weight ( ) const
inlineoverridevirtual

The weight of this component in a mixture

Implements RefittedTrackState< 5 >.

Definition at line 77 of file PerigeeRefittedTrackState.h.

References theWeight.

Referenced by trajectoryStateOnSurface().

Member Data Documentation

◆ momentumAtVertex

AlgebraicVector3 PerigeeRefittedTrackState::momentumAtVertex
private

Definition at line 91 of file PerigeeRefittedTrackState.h.

Referenced by momentumVector(), and stateWithNewWeight().

◆ theState

TrajectoryStateClosestToPoint PerigeeRefittedTrackState::theState
private

◆ theWeight

double PerigeeRefittedTrackState::theWeight
private

Definition at line 92 of file PerigeeRefittedTrackState.h.

Referenced by weight().