CMS 3D CMS Logo

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