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
4
template
<
unsigned
int
N>
5
VertexTrack<N>::VertexTrack
(
RefCountedLinearizedTrackState
lt,
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>
13
VertexTrack<N>::VertexTrack
(
RefCountedLinearizedTrackState
lt,
14
VertexState
v
,
float
weight
,
15
const
RefCountedRefittedTrackState
&
refittedState
,
16
float
smoothedChi2
)
17
:
theLinTrack
(
std
::
move
(lt)),
theVertexState
(
std
::
move
(v)),
theWeight
(weight),
18
stAvailable
(
true
),
covAvailable
(
false
),
theRefittedState
(refittedState),
19
smoothedChi2_
(smoothedChi2) {}
20
21
22
template
<
unsigned
int
N>
23
VertexTrack<N>::VertexTrack
(
RefCountedLinearizedTrackState
lt,
24
VertexState
v
,
float
weight
,
25
const
RefCountedRefittedTrackState
&
refittedState
,
26
float
smoothedChi2
,
const
AlgebraicSymMatrixOO
& fullCov)
27
:
theLinTrack
(
std
::
move
(lt)),
theVertexState
(
std
::
move
(v)),
theWeight
(weight),
28
stAvailable
(
true
),
covAvailable
(
true
),
29
theRefittedState
(refittedState),
fullCovariance_
(fullCov),
30
smoothedChi2_
(smoothedChi2) {}
31
32
33
template
<
unsigned
int
N>
34
typename
VertexTrack<N>::AlgebraicVectorN
VertexTrack<N>::refittedParamFromEquation
()
const
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
// }
funct::false
false
Definition:
Factorize.h:36
VertexTrack::refittedParamFromEquation
AlgebraicVectorN refittedParamFromEquation() const
Definition:
VertexTrack.cc:34
VertexTrack::smoothedChi2_
float smoothedChi2_
Definition:
VertexTrack.h:118
VertexTrack::AlgebraicSymMatrixOO
ROOT::Math::SMatrix< double, N+1, N+1, ROOT::Math::MatRepSym< double, N+1 > > AlgebraicSymMatrixOO
Definition:
VertexTrack.h:26
weight
Definition:
weight.py:1
std
Definition:
JetResolutionObject.h:80
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
VertexTrack::stAvailable
bool stAvailable
Definition:
VertexTrack.h:112
VertexTrack::smoothedChi2
float smoothedChi2() const
Definition:
VertexTrack.h:69
ReferenceCountingPointer< LinearizedTrackState< N > >
funct::true
true
Definition:
Factorize.h:185
VertexTrack::fullCovariance_
AlgebraicSymMatrixOO fullCovariance_
Definition:
VertexTrack.h:115
VertexTrack::theVertexState
VertexState theVertexState
Definition:
VertexTrack.h:110
VertexTrack::VertexTrack
VertexTrack(RefCountedLinearizedTrackState lt, VertexState v, float weight)
Definition:
VertexTrack.cc:5
VertexTrack.h
VertexTrack::AlgebraicVectorN
ROOT::Math::SVector< double, N > AlgebraicVectorN
Definition:
VertexTrack.h:23
VertexTrack::theRefittedState
RefCountedRefittedTrackState theRefittedState
Definition:
VertexTrack.h:114
VertexTrack::refittedState
RefCountedRefittedTrackState refittedState() const
Definition:
VertexTrack.h:74
VertexTrack::theWeight
float theWeight
Definition:
VertexTrack.h:111
VertexTrack::covAvailable
bool covAvailable
Definition:
VertexTrack.h:113
VertexState
Definition:
VertexState.h:13
VertexTrack::linearizedTrack
RefCountedLinearizedTrackState linearizedTrack() const
Definition:
VertexTrack.h:56
VertexTrack
Definition:
VertexTrack.h:19
eostools.move
def move(src, dest)
Definition:
eostools.py:511
VertexTrack::theLinTrack
RefCountedLinearizedTrackState theLinTrack
Definition:
VertexTrack.h:109
Generated for CMSSW Reference Manual by
1.8.11