CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

PerigeeRefittedTrackState Class Reference

#include <PerigeeRefittedTrackState.h>

Inheritance diagram for PerigeeRefittedTrackState:
RefittedTrackState< 5 > ReferenceCounted

List of all members.

Public Types

typedef
ReferenceCountingPointer
< RefittedTrackState< 5 > > 
RefCountedRefittedTrackState

Public Member Functions

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

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

                                                       :
    theState(tscp), momentumAtVertex(aMomentumAtVertex), theWeight(aWeight) {}
virtual PerigeeRefittedTrackState::~PerigeeRefittedTrackState ( ) [inline, virtual]

Definition at line 29 of file PerigeeRefittedTrackState.h.

{}

Member Function Documentation

std::vector< PerigeeRefittedTrackState::RefCountedRefittedTrackState > PerigeeRefittedTrackState::components ( ) const [virtual]

Implements RefittedTrackState< 5 >.

Definition at line 14 of file PerigeeRefittedTrackState.cc.

References query::result.

{
  std::vector<RefCountedRefittedTrackState> result; result.reserve(1);
  result.push_back(RefCountedRefittedTrackState( 
                                const_cast<PerigeeRefittedTrackState*>(this)));
  return result;
}
virtual AlgebraicSymMatrix55 PerigeeRefittedTrackState::covariance ( void  ) const [inline, virtual]
virtual FreeTrajectoryState PerigeeRefittedTrackState::freeTrajectoryState ( ) const [inline, virtual]

Transformation into a FreeTrajectoryState

Implements RefittedTrackState< 5 >.

Definition at line 35 of file PerigeeRefittedTrackState.h.

References TrajectoryStateClosestToPoint::theState(), and theState.

Referenced by trajectoryStateOnSurface(), and transientTrack().

    {return theState.theState();}
AlgebraicVector3 PerigeeRefittedTrackState::momentumVector ( ) const [virtual]

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.

{
  return momentumAtVertex;
}
virtual AlgebraicVector5 PerigeeRefittedTrackState::parameters ( void  ) const [inline, virtual]

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

virtual GlobalPoint PerigeeRefittedTrackState::position ( void  ) const [inline, virtual]

Position at which the momentum is defined.

Implements RefittedTrackState< 5 >.

Definition at line 71 of file PerigeeRefittedTrackState.h.

References TrajectoryStateClosestToPoint::referencePoint(), and theState.

    {return theState.referencePoint();}
PerigeeRefittedTrackState::RefCountedRefittedTrackState PerigeeRefittedTrackState::stateWithNewWeight ( const double  newWeight) const [virtual]

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.

TrajectoryStateOnSurface PerigeeRefittedTrackState::trajectoryStateOnSurface ( const Surface surface,
const Propagator propagator 
) const [virtual]

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

{
  std::auto_ptr<Propagator> thePropagator( propagator.clone());
  thePropagator->setPropagationDirection(anyDirection);

  TrajectoryStateOnSurface tsos = thePropagator->propagate(freeTrajectoryState(), surface);
  return TrajectoryStateOnSurface (tsos.globalParameters(),
        tsos.curvilinearError(), surface ,weight()) ;
}
TrajectoryStateOnSurface PerigeeRefittedTrackState::trajectoryStateOnSurface ( const Surface surface) const [virtual]
reco::TransientTrack PerigeeRefittedTrackState::transientTrack ( ) const [virtual]
virtual double PerigeeRefittedTrackState::weight ( void  ) const [inline, virtual]

The weight of this component in a mixture

Implements RefittedTrackState< 5 >.

Definition at line 84 of file PerigeeRefittedTrackState.h.

References theWeight.

Referenced by trajectoryStateOnSurface().

{return theWeight;}

Member Data Documentation

Definition at line 100 of file PerigeeRefittedTrackState.h.

Referenced by momentumVector(), and stateWithNewWeight().

Definition at line 101 of file PerigeeRefittedTrackState.h.

Referenced by weight().