RecoVertex
VertexTools
interface
VertexTrackFactory.h
Go to the documentation of this file.
1
#ifndef VertexTrackFactory_H
2
#define VertexTrackFactory_H
3
4
#include "
DataFormats/GeometrySurface/interface/ReferenceCounted.h
"
5
#include "
RecoVertex/VertexPrimitives/interface/VertexTrack.h
"
6
#include "
RecoVertex/VertexPrimitives/interface/LinearizedTrackState.h
"
7
15
template
<
unsigned
int
N>
16
class
VertexTrackFactory
{
17
public
:
18
typedef
ReferenceCountingPointer<RefittedTrackState<N>
>
RefCountedRefittedTrackState
;
19
typedef
ReferenceCountingPointer<VertexTrack<N>
>
RefCountedVertexTrack
;
20
typedef
ReferenceCountingPointer<LinearizedTrackState<N>
>
RefCountedLinearizedTrackState
;
21
typedef
ROOT::Math::SMatrix<double, 3,
N
- 2, ROOT::Math::MatRepStd<double, 3,
N
- 2> >
AlgebraicMatrix3M
;
22
typedef
ROOT::Math::SMatrix<double, N + 1, N + 1, ROOT::Math::MatRepSym<double, N + 1> >
AlgebraicSymMatrixOO
;
23
24
VertexTrackFactory
() {}
25
~VertexTrackFactory
() {}
26
27
RefCountedVertexTrack
vertexTrack
(
const
RefCountedLinearizedTrackState
lt,
28
const
VertexState
vs,
29
float
weight
= 1.0)
const
{
30
return
RefCountedVertexTrack
(
new
VertexTrack<N>
(lt, vs,
weight
));
31
};
32
33
RefCountedVertexTrack
vertexTrack
(
const
RefCountedLinearizedTrackState
lt,
34
const
VertexState
vs,
35
const
RefCountedRefittedTrackState
& refittedState,
36
float
smoothedChi2,
37
float
weight
= 1.0)
const
{
38
return
RefCountedVertexTrack
(
new
VertexTrack<N>
(lt, vs,
weight
, refittedState, smoothedChi2));
39
};
40
41
RefCountedVertexTrack
vertexTrack
(
const
RefCountedLinearizedTrackState
lt,
42
const
VertexState
vs,
43
const
RefCountedRefittedTrackState
& refittedState,
44
float
smoothedChi2,
45
const
AlgebraicSymMatrixOO
& tVCov,
46
float
weight
= 1.0)
const
{
47
return
RefCountedVertexTrack
(
new
VertexTrack<N>
(lt, vs,
weight
, refittedState, smoothedChi2, tVCov));
48
};
49
};
50
51
#endif
LinearizedTrackState.h
VertexTrackFactory::vertexTrack
RefCountedVertexTrack vertexTrack(const RefCountedLinearizedTrackState lt, const VertexState vs, float weight=1.0) const
Definition:
VertexTrackFactory.h:27
VertexTrackFactory::RefCountedRefittedTrackState
ReferenceCountingPointer< RefittedTrackState< N > > RefCountedRefittedTrackState
Definition:
VertexTrackFactory.h:18
weight
Definition:
weight.py:1
VertexTrackFactory::RefCountedLinearizedTrackState
ReferenceCountingPointer< LinearizedTrackState< N > > RefCountedLinearizedTrackState
Definition:
VertexTrackFactory.h:20
VertexTrackFactory::vertexTrack
RefCountedVertexTrack vertexTrack(const RefCountedLinearizedTrackState lt, const VertexState vs, const RefCountedRefittedTrackState &refittedState, float smoothedChi2, const AlgebraicSymMatrixOO &tVCov, float weight=1.0) const
Definition:
VertexTrackFactory.h:41
ReferenceCountingPointer
Definition:
ReferenceCounted.h:60
ReferenceCounted.h
VertexTrack.h
VertexTrackFactory::~VertexTrackFactory
~VertexTrackFactory()
Definition:
VertexTrackFactory.h:25
VertexTrackFactory::AlgebraicSymMatrixOO
ROOT::Math::SMatrix< double, N+1, N+1, ROOT::Math::MatRepSym< double, N+1 > > AlgebraicSymMatrixOO
Definition:
VertexTrackFactory.h:22
VertexTrackFactory::RefCountedVertexTrack
ReferenceCountingPointer< VertexTrack< N > > RefCountedVertexTrack
Definition:
VertexTrackFactory.h:19
VertexTrackFactory::vertexTrack
RefCountedVertexTrack vertexTrack(const RefCountedLinearizedTrackState lt, const VertexState vs, const RefCountedRefittedTrackState &refittedState, float smoothedChi2, float weight=1.0) const
Definition:
VertexTrackFactory.h:33
N
#define N
Definition:
blowfish.cc:9
VertexTrackFactory
Definition:
VertexTrackFactory.h:16
VertexTrackFactory::AlgebraicMatrix3M
ROOT::Math::SMatrix< double, 3, N - 2, ROOT::Math::MatRepStd< double, 3, N - 2 > > AlgebraicMatrix3M
Definition:
VertexTrackFactory.h:21
VertexState
Definition:
VertexState.h:13
VertexTrackFactory::VertexTrackFactory
VertexTrackFactory()
Definition:
VertexTrackFactory.h:24
VertexTrack
Definition:
VertexTrack.h:18
Generated for CMSSW Reference Manual by
1.8.14