Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
RecoVertex
GhostTrackFitter
src
AnnealingGhostTrackFitter.cc
Go to the documentation of this file.
1
#include <memory>
2
3
#include <vector>
4
5
#include "
RecoVertex/VertexTools/interface/GeometricAnnealing.h
"
6
7
#include "
RecoVertex/GhostTrackFitter/interface/GhostTrackState.h
"
8
#include "
RecoVertex/GhostTrackFitter/interface/GhostTrackPrediction.h
"
9
10
#include "
RecoVertex/GhostTrackFitter/interface/AnnealingGhostTrackFitter.h
"
11
12
using namespace
reco
;
13
14
AnnealingGhostTrackFitter::AnnealingGhostTrackFitter
() : firstStep(
true
) {
15
annealing
= std::make_unique<GeometricAnnealing>(3.0, 64.0, 0.25);
16
}
17
18
void
AnnealingGhostTrackFitter::postFit
(
const
GhostTrackFitter::PredictionUpdater
&updater,
19
const
GhostTrackPrediction
&pred,
20
std::vector<GhostTrackState> &states) {
21
for
(std::vector<GhostTrackState>::iterator
state
= states.begin();
state
!= states.end(); ++
state
) {
22
if
(!
state
->isValid())
23
continue
;
24
25
double
ndof
,
chi2
;
26
updater.
contribution
(pred, *
state
,
ndof
,
chi2
);
27
if
(
ndof
== 0. ||
firstStep
)
28
continue
;
29
30
state
->setWeight(
annealing
->weight(
chi2
));
31
}
32
33
if
(
firstStep
)
34
firstStep
=
false
;
35
else
36
annealing
->anneal();
37
}
reco::AnnealingGhostTrackFitter::annealing
std::unique_ptr< AnnealingSchedule > annealing
Definition:
AnnealingGhostTrackFitter.h:39
reco::GhostTrackPrediction
Definition:
GhostTrackPrediction.h:21
hltPixelTracks_cff.chi2
chi2
Definition:
hltPixelTracks_cff.py:25
reco::AnnealingGhostTrackFitter::firstStep
bool firstStep
Definition:
AnnealingGhostTrackFitter.h:40
reco::GhostTrackFitter::PredictionUpdater::contribution
virtual void contribution(const GhostTrackPrediction &pred, const GhostTrackState &state, double &ndof, double &chi2, bool withPredError=false) const =0
funct::true
true
Definition:
Factorize.h:173
reco::GhostTrackFitter::PredictionUpdater
Definition:
GhostTrackFitter.h:42
GeometricAnnealing.h
reco::AnnealingGhostTrackFitter::AnnealingGhostTrackFitter
AnnealingGhostTrackFitter()
Definition:
AnnealingGhostTrackFitter.cc:14
reco::AnnealingGhostTrackFitter::postFit
void postFit(const GhostTrackFitter::PredictionUpdater &updater, const GhostTrackPrediction &pred, std::vector< GhostTrackState > &states) override
Definition:
AnnealingGhostTrackFitter.cc:18
RunInfoPI::state
state
Definition:
RunInfoPayloadInspectoHelper.h:21
GhostTrackState.h
ndof
Definition:
HIMultiTrackSelector.h:49
GhostTrackPrediction.h
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
AnnealingGhostTrackFitter.h
Generated for CMSSW Reference Manual by
1.8.14