CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
VertexTrack< N > Class Template Referencefinal

#include <VertexTrack.h>

Inheritance diagram for VertexTrack< N >:
ReferenceCounted

Public Types

typedef ROOT::Math::SMatrix< double, 3, N-2, ROOT::Math::MatRepStd< double, 3, N-2 > > AlgebraicMatrix3M
 
typedef ROOT::Math::SMatrix< double, N-2, N-2, ROOT::Math::MatRepStd< double, N-2, N-2 > > AlgebraicMatrixMM
 
typedef ROOT::Math::SMatrix< double, N+1, N+1, ROOT::Math::MatRepSym< double, N+1 > > AlgebraicSymMatrixOO
 
typedef ROOT::Math::SVector< double, NAlgebraicVectorN
 
typedef ReferenceCountingPointer< LinearizedTrackState< N > > RefCountedLinearizedTrackState
 
typedef ReferenceCountingPointer< RefittedTrackState< N > > RefCountedRefittedTrackState
 

Public Member Functions

AlgebraicSymMatrixOO fullCovariance () const
 
bool fullCovarianceAvailable () const
 
RefCountedLinearizedTrackState linearizedTrack () const
 
bool operator== (const VertexTrack< N > &data) const
 
AlgebraicVectorN refittedParamFromEquation () const
 
RefCountedRefittedTrackState refittedState () const
 
bool refittedStateAvailable () const
 
float smoothedChi2 () const
 
bool tkToVertexCovarianceAvailable () const
 
VertexState vertexState () const
 
 VertexTrack (RefCountedLinearizedTrackState lt, VertexState v, float weight)
 
 VertexTrack (RefCountedLinearizedTrackState lt, VertexState v, float weight, const RefCountedRefittedTrackState &refittedState, float smoothedChi2)
 
 VertexTrack (RefCountedLinearizedTrackState lt, VertexState v, float weight, const RefCountedRefittedTrackState &refittedState, float smoothedChi2, const AlgebraicSymMatrixOO &fullCov)
 
float weight () const
 

Private Attributes

ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > b6
 
ROOT::Math::SMatrix< double, 7, 7, ROOT::Math::MatRepSym< double, 7 > > b7
 
bool covAvailable
 
AlgebraicSymMatrixOO fullCovariance_
 
float smoothedChi2_
 
bool stAvailable
 
RefCountedLinearizedTrackState theLinTrack
 
RefCountedRefittedTrackState theRefittedState
 
VertexState theVertexState
 
float theWeight
 

Detailed Description

template<unsigned int N>
class VertexTrack< N >

Track information relative to a track-to-vertex association. The track weight corresponds to the distance of the track to the seed position.

Definition at line 19 of file VertexTrack.h.

Member Typedef Documentation

template<unsigned int N>
typedef ROOT::Math::SMatrix<double,3,N-2,ROOT::Math::MatRepStd<double,3,N-2> > VertexTrack< N >::AlgebraicMatrix3M

Definition at line 25 of file VertexTrack.h.

template<unsigned int N>
typedef ROOT::Math::SMatrix<double,N-2,N-2,ROOT::Math::MatRepStd<double,N-2,N-2> > VertexTrack< N >::AlgebraicMatrixMM

Definition at line 24 of file VertexTrack.h.

template<unsigned int N>
typedef ROOT::Math::SMatrix<double,N+1,N+1,ROOT::Math::MatRepSym<double,N+1> > VertexTrack< N >::AlgebraicSymMatrixOO

Definition at line 26 of file VertexTrack.h.

template<unsigned int N>
typedef ROOT::Math::SVector<double,N> VertexTrack< N >::AlgebraicVectorN

Definition at line 23 of file VertexTrack.h.

Definition at line 29 of file VertexTrack.h.

Definition at line 30 of file VertexTrack.h.

Constructor & Destructor Documentation

template<unsigned int N>
VertexTrack< N >::VertexTrack ( RefCountedLinearizedTrackState  lt,
VertexState  v,
float  weight 
)

Constructor with the linearized track data, vertex seed and weight

Definition at line 5 of file VertexTrack.cc.

9  stAvailable(false), covAvailable(false), smoothedChi2_(-1.) {}
float smoothedChi2_
Definition: VertexTrack.h:118
Definition: weight.py:1
bool stAvailable
Definition: VertexTrack.h:112
VertexState theVertexState
Definition: VertexTrack.h:110
float theWeight
Definition: VertexTrack.h:111
bool covAvailable
Definition: VertexTrack.h:113
def move(src, dest)
Definition: eostools.py:510
RefCountedLinearizedTrackState theLinTrack
Definition: VertexTrack.h:109
template<unsigned int N>
VertexTrack< N >::VertexTrack ( RefCountedLinearizedTrackState  lt,
VertexState  v,
float  weight,
const RefCountedRefittedTrackState refittedState,
float  smoothedChi2 
)

Constructor with the linearized track data, vertex seed and weight and state at vertex, constrained by vertex

Definition at line 13 of file VertexTrack.cc.

float smoothedChi2_
Definition: VertexTrack.h:118
Definition: weight.py:1
bool stAvailable
Definition: VertexTrack.h:112
float smoothedChi2() const
Definition: VertexTrack.h:69
VertexState theVertexState
Definition: VertexTrack.h:110
RefCountedRefittedTrackState theRefittedState
Definition: VertexTrack.h:114
RefCountedRefittedTrackState refittedState() const
Definition: VertexTrack.h:74
float theWeight
Definition: VertexTrack.h:111
bool covAvailable
Definition: VertexTrack.h:113
def move(src, dest)
Definition: eostools.py:510
RefCountedLinearizedTrackState theLinTrack
Definition: VertexTrack.h:109
template<unsigned int N>
VertexTrack< N >::VertexTrack ( RefCountedLinearizedTrackState  lt,
VertexState  v,
float  weight,
const RefCountedRefittedTrackState refittedState,
float  smoothedChi2,
const AlgebraicSymMatrixOO fullCov 
)

Constructor with the linearized track data, vertex seed and weight and state and covariance at vertex, constrained by vertex

Definition at line 23 of file VertexTrack.cc.

28  stAvailable(true), covAvailable(true),
float smoothedChi2_
Definition: VertexTrack.h:118
Definition: weight.py:1
bool stAvailable
Definition: VertexTrack.h:112
float smoothedChi2() const
Definition: VertexTrack.h:69
AlgebraicSymMatrixOO fullCovariance_
Definition: VertexTrack.h:115
VertexState theVertexState
Definition: VertexTrack.h:110
RefCountedRefittedTrackState theRefittedState
Definition: VertexTrack.h:114
RefCountedRefittedTrackState refittedState() const
Definition: VertexTrack.h:74
float theWeight
Definition: VertexTrack.h:111
bool covAvailable
Definition: VertexTrack.h:113
def move(src, dest)
Definition: eostools.py:510
RefCountedLinearizedTrackState theLinTrack
Definition: VertexTrack.h:109

Member Function Documentation

template<unsigned int N>
AlgebraicSymMatrixOO VertexTrack< N >::fullCovariance ( ) const
inline

Track to vertex covariance Track to vertex covariance

Definition at line 87 of file VertexTrack.h.

References VertexTrack< N >::fullCovariance_, and VertexTrack< N >::tkToVertexCovarianceAvailable().

87  {
89  throw VertexException("VertexTrack::track to vertex covariance not available");
90  }
91  return fullCovariance_;
92  }
bool tkToVertexCovarianceAvailable() const
Definition: VertexTrack.h:60
Common base class.
AlgebraicSymMatrixOO fullCovariance_
Definition: VertexTrack.h:115
template<unsigned int N>
bool VertexTrack< N >::fullCovarianceAvailable ( ) const
inline

Definition at line 61 of file VertexTrack.h.

References VertexTrack< N >::covAvailable.

61 { return covAvailable; }
bool covAvailable
Definition: VertexTrack.h:113
template<unsigned int N>
RefCountedLinearizedTrackState VertexTrack< N >::linearizedTrack ( ) const
inline

Access methods

Definition at line 56 of file VertexTrack.h.

References VertexTrack< N >::theLinTrack.

Referenced by VertexTrack< N >::operator==(), and VertexTrack< N >::refittedParamFromEquation().

56 { return theLinTrack; }
RefCountedLinearizedTrackState theLinTrack
Definition: VertexTrack.h:109
template<unsigned int N>
bool VertexTrack< N >::operator== ( const VertexTrack< N > &  data) const
inline

Equality for finding a VertexTrack in a container Compares the RecTrack addresses

Definition at line 97 of file VertexTrack.h.

References VertexTrack< N >::linearizedTrack(), and VertexTrack< N >::refittedParamFromEquation().

98  {
99  return ((*data.linearizedTrack()) == (*linearizedTrack()));
100  }
RefCountedLinearizedTrackState linearizedTrack() const
Definition: VertexTrack.h:56
template<unsigned int N>
VertexTrack< N >::AlgebraicVectorN VertexTrack< N >::refittedParamFromEquation ( ) const

Method helping Kalman vertex fit

Definition at line 34 of file VertexTrack.cc.

References VertexTrack< N >::linearizedTrack(), and VertexTrack< N >::theRefittedState.

Referenced by VertexTrack< N >::operator==().

35 {
36  return linearizedTrack()->refittedParamFromEquation(theRefittedState);
37 }
RefCountedRefittedTrackState theRefittedState
Definition: VertexTrack.h:114
RefCountedLinearizedTrackState linearizedTrack() const
Definition: VertexTrack.h:56
template<unsigned int N>
RefCountedRefittedTrackState VertexTrack< N >::refittedState ( ) const
inline

Track state with vertex constraint

Definition at line 74 of file VertexTrack.h.

References VertexTrack< N >::refittedStateAvailable(), and VertexTrack< N >::theRefittedState.

74  {
75  if (!refittedStateAvailable()) {
76  throw VertexException("VertexTrack::refitted state not available");
77  }
78  return theRefittedState;
79  }
Common base class.
bool refittedStateAvailable() const
Definition: VertexTrack.h:59
RefCountedRefittedTrackState theRefittedState
Definition: VertexTrack.h:114
template<unsigned int N>
bool VertexTrack< N >::refittedStateAvailable ( ) const
inline

Definition at line 59 of file VertexTrack.h.

References VertexTrack< N >::stAvailable.

Referenced by VertexTrack< N >::refittedState().

59 { return stAvailable; }
bool stAvailable
Definition: VertexTrack.h:112
template<unsigned int N>
float VertexTrack< N >::smoothedChi2 ( ) const
inline

The smoother track-chi2 (can be used to test the track-vertex compatibility). Its value has a meaning only if the smoother has been run after the vertex fit (track-refit) . Otherwise, the value returned is -1.

Definition at line 69 of file VertexTrack.h.

References VertexTrack< N >::smoothedChi2_.

69 { return smoothedChi2_; }
float smoothedChi2_
Definition: VertexTrack.h:118
template<unsigned int N>
bool VertexTrack< N >::tkToVertexCovarianceAvailable ( ) const
inline

Definition at line 60 of file VertexTrack.h.

References VertexTrack< N >::covAvailable.

Referenced by VertexTrack< N >::fullCovariance().

60 { return covAvailable; }
bool covAvailable
Definition: VertexTrack.h:113
template<unsigned int N>
VertexState VertexTrack< N >::vertexState ( ) const
inline

Definition at line 57 of file VertexTrack.h.

References VertexTrack< N >::theVertexState.

57 { return theVertexState; }
VertexState theVertexState
Definition: VertexTrack.h:110
template<unsigned int N>
float VertexTrack< N >::weight ( void  ) const
inline

Definition at line 58 of file VertexTrack.h.

References VertexTrack< N >::theWeight.

58 { return theWeight; }
float theWeight
Definition: VertexTrack.h:111

Member Data Documentation

template<unsigned int N>
ROOT::Math::SMatrix<double,6,6,ROOT::Math::MatRepSym<double,6> > VertexTrack< N >::b6
private

Definition at line 116 of file VertexTrack.h.

template<unsigned int N>
ROOT::Math::SMatrix<double,7,7,ROOT::Math::MatRepSym<double,7> > VertexTrack< N >::b7
private

Definition at line 117 of file VertexTrack.h.

template<unsigned int N>
bool VertexTrack< N >::covAvailable
private
template<unsigned int N>
AlgebraicSymMatrixOO VertexTrack< N >::fullCovariance_
private

Definition at line 115 of file VertexTrack.h.

Referenced by VertexTrack< N >::fullCovariance().

template<unsigned int N>
float VertexTrack< N >::smoothedChi2_
private

Definition at line 118 of file VertexTrack.h.

Referenced by VertexTrack< N >::smoothedChi2().

template<unsigned int N>
bool VertexTrack< N >::stAvailable
private

Definition at line 112 of file VertexTrack.h.

Referenced by VertexTrack< N >::refittedStateAvailable().

template<unsigned int N>
RefCountedLinearizedTrackState VertexTrack< N >::theLinTrack
private

Definition at line 109 of file VertexTrack.h.

Referenced by VertexTrack< N >::linearizedTrack().

template<unsigned int N>
RefCountedRefittedTrackState VertexTrack< N >::theRefittedState
private
template<unsigned int N>
VertexState VertexTrack< N >::theVertexState
private

Definition at line 110 of file VertexTrack.h.

Referenced by VertexTrack< N >::vertexState().

template<unsigned int N>
float VertexTrack< N >::theWeight
private

Definition at line 111 of file VertexTrack.h.

Referenced by VertexTrack< N >::weight().