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.

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

Referenced by stateWithNewWeight().

◆ ~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.

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

References mps_fire::result.

◆ covariance()

AlgebraicSymMatrix55 PerigeeRefittedTrackState::covariance ( void  ) const
inlineoverridevirtual

◆ freeTrajectoryState()

FreeTrajectoryState PerigeeRefittedTrackState::freeTrajectoryState ( ) const
inlineoverridevirtual

Transformation into a FreeTrajectoryState

Implements RefittedTrackState< 5 >.

Definition at line 33 of file PerigeeRefittedTrackState.h.

33 { return theState.theState(); }

References theState, and TrajectoryStateClosestToPoint::theState().

Referenced by trajectoryStateOnSurface(), and transientTrack().

◆ 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.

8 { return momentumAtVertex; }

References 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.

53 { return theState.perigeeParameters().vector(); }

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

◆ position()

GlobalPoint PerigeeRefittedTrackState::position ( ) const
inlineoverridevirtual

Position at which the momentum is defined.

Implements RefittedTrackState< 5 >.

Definition at line 65 of file PerigeeRefittedTrackState.h.

65 { return theState.referencePoint(); }

References TrajectoryStateClosestToPoint::referencePoint(), and theState.

◆ 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.

◆ trajectoryStateOnSurface() [1/2]

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

◆ 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.

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 }

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

◆ transientTrack()

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

Implements RefittedTrackState< 5 >.

Definition at line 37 of file PerigeeRefittedTrackState.cc.

37  {
39  return factory.build(freeTrajectoryState());
40 }

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

◆ 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.

77 { return theWeight; }

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().

PerigeeRefittedTrackState::PerigeeRefittedTrackState
PerigeeRefittedTrackState(const TrajectoryStateClosestToPoint &tscp, const AlgebraicVector3 &aMomentumAtVertex, const double aWeight=1.)
Definition: PerigeeRefittedTrackState.h:22
anyDirection
Definition: PropagationDirection.h:4
PerigeeRefittedTrackState::theWeight
double theWeight
Definition: PerigeeRefittedTrackState.h:92
PerigeeRefittedTrackState::freeTrajectoryState
FreeTrajectoryState freeTrajectoryState() const override
Definition: PerigeeRefittedTrackState.h:33
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
TrackCandidateProducer_cfi.propagator
propagator
Definition: TrackCandidateProducer_cfi.py:17
PerigeeRefittedTrackState::RefCountedRefittedTrackState
ReferenceCountingPointer< RefittedTrackState< 5 > > RefCountedRefittedTrackState
Definition: PerigeeRefittedTrackState.h:20
TrajectoryStateClosestToPoint::perigeeError
const PerigeeTrajectoryError & perigeeError() const
Definition: TrajectoryStateClosestToPoint.h:84
TrajectoryStateClosestToPoint::perigeeParameters
const PerigeeTrajectoryParameters & perigeeParameters() const
Definition: TrajectoryStateClosestToPoint.h:73
TransientTrackFromFTSFactory::build
reco::TransientTrack build(const FreeTrajectoryState &fts) const
Definition: TransientTrackFromFTSFactory.cc:7
FreeTrajectoryState::parameters
const GlobalTrajectoryParameters & parameters() const
Definition: FreeTrajectoryState.h:79
PerigeeTrajectoryParameters::vector
const AlgebraicVector5 & vector() const
Definition: PerigeeTrajectoryParameters.h:82
PerigeeTrajectoryError::covarianceMatrix
const AlgebraicSymMatrix55 & covarianceMatrix() const
Definition: PerigeeTrajectoryError.h:29
AnalyticalPropagator
Definition: AnalyticalPropagator.h:22
TrajectoryStateOnSurface::curvilinearError
const CurvilinearTrajectoryError & curvilinearError() const
Definition: TrajectoryStateOnSurface.h:72
PerigeeRefittedTrackState::theState
TrajectoryStateClosestToPoint theState
Definition: PerigeeRefittedTrackState.h:90
TransientTrackFromFTSFactory
Definition: TransientTrackFromFTSFactory.h:10
PerigeeRefittedTrackState::momentumAtVertex
AlgebraicVector3 momentumAtVertex
Definition: PerigeeRefittedTrackState.h:91
GlobalTrajectoryParameters::magneticField
const MagneticField & magneticField() const
Definition: GlobalTrajectoryParameters.h:106
PerigeeRefittedTrackState::weight
double weight() const override
Definition: PerigeeRefittedTrackState.h:77
mps_fire.result
result
Definition: mps_fire.py:311
TrajectoryStateClosestToPoint::referencePoint
const GlobalPoint & referencePoint() const
Definition: TrajectoryStateClosestToPoint.h:67
TrajectoryStateOnSurface::globalParameters
const GlobalTrajectoryParameters & globalParameters() const
Definition: TrajectoryStateOnSurface.h:64
TrajectoryStateClosestToPoint::theState
const FreeTrajectoryState & theState() const
Definition: TrajectoryStateClosestToPoint.h:96