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
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, N
AlgebraicVectorN
 

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

Constructor & Destructor Documentation

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

Definition at line 27 of file PerigeeRefittedTrackState.h.

27 {}

Member Function Documentation

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
tuple result
Definition: mps_fire.py:311
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 PerigeeTrajectoryError & perigeeError() const
const AlgebraicSymMatrix55 & covarianceMatrix() const
TrajectoryStateClosestToPoint theState
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(); }
const FreeTrajectoryState & theState() const
TrajectoryStateClosestToPoint theState
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; }
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
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
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 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(), Propagator::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 & parameters() const
const FreeTrajectoryState & theState() const
const CurvilinearTrajectoryError & curvilinearError() const
FreeTrajectoryState freeTrajectoryState() const override
TrajectoryStateClosestToPoint theState
const GlobalTrajectoryParameters & globalParameters() const
double weight() const override
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 28 of file PerigeeRefittedTrackState.cc.

References anyDirection, Propagator::clone(), TrajectoryStateOnSurface::curvilinearError(), freeTrajectoryState(), TrajectoryStateOnSurface::globalParameters(), 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 CurvilinearTrajectoryError & curvilinearError() const
virtual Propagator * clone() const =0
FreeTrajectoryState freeTrajectoryState() const override
const GlobalTrajectoryParameters & globalParameters() const
double weight() const override
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 }
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 77 of file PerigeeRefittedTrackState.h.

References theWeight.

Referenced by trajectoryStateOnSurface().

Member Data Documentation

AlgebraicVector3 PerigeeRefittedTrackState::momentumAtVertex
private

Definition at line 91 of file PerigeeRefittedTrackState.h.

Referenced by momentumVector(), and stateWithNewWeight().

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

Definition at line 92 of file PerigeeRefittedTrackState.h.

Referenced by weight().