Main Page
Namespaces
Classes
Package Documentation
RecoVertex
VertexPrimitives
src
VertexTrack.cc
Go to the documentation of this file.
1
#include "
RecoVertex/VertexPrimitives/interface/VertexTrack.h
"
2
3
template
<
unsigned
int
N>
4
VertexTrack<N>::VertexTrack
(
RefCountedLinearizedTrackState
lt,
VertexState
v
,
float
weight
)
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>
13
VertexTrack<N>::VertexTrack
(
RefCountedLinearizedTrackState
lt,
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>
27
VertexTrack<N>::VertexTrack
(
RefCountedLinearizedTrackState
lt,
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>
43
typename
VertexTrack<N>::AlgebraicVectorN
VertexTrack<N>::refittedParamFromEquation
()
const
{
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
// }
funct::false
false
Definition:
Factorize.h:34
VertexTrack::refittedParamFromEquation
AlgebraicVectorN refittedParamFromEquation() const
Definition:
VertexTrack.cc:43
VertexTrack::smoothedChi2_
float smoothedChi2_
Definition:
VertexTrack.h:110
VertexTrack::AlgebraicSymMatrixOO
ROOT::Math::SMatrix< double, N+1, N+1, ROOT::Math::MatRepSym< double, N+1 > > AlgebraicSymMatrixOO
Definition:
VertexTrack.h:23
weight
Definition:
weight.py:1
std
Definition:
JetResolutionObject.h:76
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
VertexTrack::stAvailable
bool stAvailable
Definition:
VertexTrack.h:104
VertexTrack::smoothedChi2
float smoothedChi2() const
Definition:
VertexTrack.h:67
ReferenceCountingPointer< LinearizedTrackState< N > >
funct::true
true
Definition:
Factorize.h:173
VertexTrack::fullCovariance_
AlgebraicSymMatrixOO fullCovariance_
Definition:
VertexTrack.h:107
VertexTrack::theVertexState
VertexState theVertexState
Definition:
VertexTrack.h:102
VertexTrack::VertexTrack
VertexTrack(RefCountedLinearizedTrackState lt, VertexState v, float weight)
Definition:
VertexTrack.cc:4
VertexTrack::AlgebraicVectorN
ROOT::Math::SVector< double, N > AlgebraicVectorN
Definition:
VertexTrack.h:20
VertexTrack.h
VertexTrack::theRefittedState
RefCountedRefittedTrackState theRefittedState
Definition:
VertexTrack.h:106
VertexTrack::refittedState
RefCountedRefittedTrackState refittedState() const
Definition:
VertexTrack.h:71
VertexTrack::theWeight
float theWeight
Definition:
VertexTrack.h:103
VertexTrack::covAvailable
bool covAvailable
Definition:
VertexTrack.h:105
VertexState
Definition:
VertexState.h:13
VertexTrack::linearizedTrack
RefCountedLinearizedTrackState linearizedTrack() const
Definition:
VertexTrack.h:54
VertexTrack
Definition:
VertexTrack.h:18
eostools.move
def move(src, dest)
Definition:
eostools.py:511
VertexTrack::theLinTrack
RefCountedLinearizedTrackState theLinTrack
Definition:
VertexTrack.h:101
Generated for CMSSW Reference Manual by
1.8.11