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,
17  float smoothedChi2)
18  : theLinTrack(std::move(lt)),
19  theVertexState(std::move(v)),
20  theWeight(weight),
23  theRefittedState(refittedState),
24  smoothedChi2_(smoothedChi2) {}
25 
26 template <unsigned int N>
28  VertexState v,
29  float weight,
31  float smoothedChi2,
32  const AlgebraicSymMatrixOO& fullCov)
33  : theLinTrack(std::move(lt)),
34  theVertexState(std::move(v)),
35  theWeight(weight),
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
float smoothedChi2_
Definition: VertexTrack.h:110
ROOT::Math::SMatrix< double, N+1, N+1, ROOT::Math::MatRepSym< double, N+1 > > AlgebraicSymMatrixOO
Definition: VertexTrack.h:23
Definition: weight.py:1
bool stAvailable
Definition: VertexTrack.h:104
float smoothedChi2() const
Definition: VertexTrack.h:67
AlgebraicSymMatrixOO fullCovariance_
Definition: VertexTrack.h:107
VertexState theVertexState
Definition: VertexTrack.h:102
VertexTrack(RefCountedLinearizedTrackState lt, VertexState v, float weight)
Definition: VertexTrack.cc:4
ROOT::Math::SVector< double, N > AlgebraicVectorN
Definition: VertexTrack.h:20
RefCountedRefittedTrackState theRefittedState
Definition: VertexTrack.h:106
RefCountedRefittedTrackState refittedState() const
Definition: VertexTrack.h:71
float theWeight
Definition: VertexTrack.h:103
bool covAvailable
Definition: VertexTrack.h:105
RefCountedLinearizedTrackState linearizedTrack() const
Definition: VertexTrack.h:54
def move(src, dest)
Definition: eostools.py:511
RefCountedLinearizedTrackState theLinTrack
Definition: VertexTrack.h:101