CMS 3D CMS Logo

VertexTrack.cc
Go to the documentation of this file.
2 
3 
4 template <unsigned int N>
6  VertexState v,
7  float weight)
8  : theLinTrack(std::move(lt)), theVertexState(std::move(v)), theWeight(weight),
9  stAvailable(false), covAvailable(false), smoothedChi2_(-1.) {}
10 
11 
12 template <unsigned int N>
14  VertexState v, float weight,
16  float smoothedChi2)
17  : theLinTrack(std::move(lt)), theVertexState(std::move(v)), theWeight(weight),
19  smoothedChi2_(smoothedChi2) {}
20 
21 
22 template <unsigned int N>
24  VertexState v, float weight,
26  float smoothedChi2, const AlgebraicSymMatrixOO & fullCov)
27  : theLinTrack(std::move(lt)), theVertexState(std::move(v)), theWeight(weight),
29  theRefittedState(refittedState), fullCovariance_(fullCov),
30  smoothedChi2_(smoothedChi2) {}
31 
32 
33 template <unsigned int N>
35 {
36  return linearizedTrack()->refittedParamFromEquation(theRefittedState);
37 }
38 
39 template class VertexTrack<5>;
40 template class VertexTrack<6>;
41 
42 // /** Track to vertex covariance
43 // */
44 // template <unsigned int N>
45 // typename VertexTrack<N>::AlgebraicMatrix3M VertexTrack<N>::tkToVtxCovariance() const {
46 // if (!tkToVertexCovarianceAvailable()) {
47 // throw VertexException("VertexTrack::track to vertex covariance not available");
48 // }
49 // // if (N==5) {
50 // // ROOT::Math::SMatrix<double,6,6,ROOT::Math::MatRepSym<double,6> > b6 = fullCovariance_;
51 // // return b.Sub<AlgebraicMatrix3M>(3,0);
52 // // //a = b.Sub< ROOT::Math::SMatrix<double,3,N-2,ROOT::Math::MatRepStd<double,3,N-2> > >(3,0);
53 // // }
54 // ROOT::Math::SMatrix<double,3,N-2,ROOT::Math::MatRepStd<double,3,N-2> > a;
55 // return a;
56 // }
AlgebraicVectorN refittedParamFromEquation() const
Definition: VertexTrack.cc:34
float smoothedChi2_
Definition: VertexTrack.h:118
ROOT::Math::SMatrix< double, N+1, N+1, ROOT::Math::MatRepSym< double, N+1 > > AlgebraicSymMatrixOO
Definition: VertexTrack.h:26
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
VertexTrack(RefCountedLinearizedTrackState lt, VertexState v, float weight)
Definition: VertexTrack.cc:5
ROOT::Math::SVector< double, N > AlgebraicVectorN
Definition: VertexTrack.h:23
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
RefCountedLinearizedTrackState linearizedTrack() const
Definition: VertexTrack.h:56
def move(src, dest)
Definition: eostools.py:510
RefCountedLinearizedTrackState theLinTrack
Definition: VertexTrack.h:109