test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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

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
 
virtual TrajectoryStateOnSurface trajectoryStateOnSurface (const Surface &surface, const Propagator &propagator) const
 
virtual reco::TransientTrack transientTrack () const
 
virtual double weight () const
 
virtual ~PerigeeRefittedTrackState ()
 
- Public Member Functions inherited from RefittedTrackState< 5 >
virtual ~RefittedTrackState ()
 

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
virtual PerigeeRefittedTrackState::~PerigeeRefittedTrackState ( )
inlinevirtual

Definition at line 29 of file PerigeeRefittedTrackState.h.

29 {}

Member Function Documentation

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

Implements RefittedTrackState< 5 >.

Definition at line 14 of file PerigeeRefittedTrackState.cc.

References mps_fire::result.

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
tuple result
Definition: mps_fire.py:83
virtual AlgebraicSymMatrix55 PerigeeRefittedTrackState::covariance ( void  ) const
inlinevirtual

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
virtual FreeTrajectoryState PerigeeRefittedTrackState::freeTrajectoryState ( ) const
inlinevirtual

Transformation into a FreeTrajectoryState

Implements RefittedTrackState< 5 >.

Definition at line 35 of file PerigeeRefittedTrackState.h.

References theState, and TrajectoryStateClosestToPoint::theState().

Referenced by trajectoryStateOnSurface(), and transientTrack().

36  {return theState.theState();}
const FreeTrajectoryState & theState() const
TrajectoryStateClosestToPoint 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.

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

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
virtual GlobalPoint PerigeeRefittedTrackState::position ( ) const
inlinevirtual

Position at which the momentum is defined.

Implements RefittedTrackState< 5 >.

Definition at line 71 of file PerigeeRefittedTrackState.h.

References TrajectoryStateClosestToPoint::referencePoint(), and theState.

72  {return theState.referencePoint();}
TrajectoryStateClosestToPoint theState
const GlobalPoint & referencePoint() const
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.

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
virtual

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

31 {
33  TrajectoryStateOnSurface tsos = thePropagator.propagate(freeTrajectoryState(), surface);
35  tsos.curvilinearError(), surface) ;
36 }
virtual FreeTrajectoryState freeTrajectoryState() const
const GlobalTrajectoryParameters & parameters() const
const FreeTrajectoryState & theState() const
const CurvilinearTrajectoryError & curvilinearError() const
virtual double weight() const
TrajectoryStateClosestToPoint theState
const GlobalTrajectoryParameters & globalParameters() const
const MagneticField & magneticField() const
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().

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

Implements RefittedTrackState< 5 >.

Definition at line 50 of file PerigeeRefittedTrackState.cc.

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

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

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