RecoVertex
GhostTrackFitter
src
AnnealingGhostTrackFitter.cc
Go to the documentation of this file.
1
#include <vector>
2
3
#include "
RecoVertex/VertexTools/interface/GeometricAnnealing.h
"
4
5
#include "
RecoVertex/GhostTrackFitter/interface/GhostTrackState.h
"
6
#include "
RecoVertex/GhostTrackFitter/interface/GhostTrackPrediction.h
"
7
8
#include "
RecoVertex/GhostTrackFitter/interface/AnnealingGhostTrackFitter.h
"
9
10
using namespace
reco
;
11
12
AnnealingGhostTrackFitter::AnnealingGhostTrackFitter
() : firstStep(
true
) {
13
annealing
.reset(
new
GeometricAnnealing
(3.0, 64.0, 0.25));
14
}
15
16
void
AnnealingGhostTrackFitter::postFit
(
const
GhostTrackFitter::PredictionUpdater
&updater,
17
const
GhostTrackPrediction
&pred,
18
std::vector<GhostTrackState> &states) {
19
for
(std::vector<GhostTrackState>::iterator state = states.begin(); state != states.end(); ++state) {
20
if
(!state->isValid())
21
continue
;
22
23
double
ndof
,
chi2
;
24
updater.
contribution
(pred, *state,
ndof
,
chi2
);
25
if
(
ndof
== 0. ||
firstStep
)
26
continue
;
27
28
state->setWeight(
annealing
->weight(
chi2
));
29
}
30
31
if
(
firstStep
)
32
firstStep
=
false
;
33
else
34
annealing
->anneal();
35
}
GhostTrackPrediction.h
reco::GhostTrackFitter::PredictionUpdater
Definition:
GhostTrackFitter.h:42
reco::GhostTrackFitter::PredictionUpdater::contribution
virtual void contribution(const GhostTrackPrediction &pred, const GhostTrackState &state, double &ndof, double &chi2, bool withPredError=false) const =0
GhostTrackState.h
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
hltPixelTracks_cff.chi2
chi2
Definition:
hltPixelTracks_cff.py:25
reco::AnnealingGhostTrackFitter::AnnealingGhostTrackFitter
AnnealingGhostTrackFitter()
Definition:
AnnealingGhostTrackFitter.cc:12
ndof
Definition:
HIMultiTrackSelector.h:49
reco::AnnealingGhostTrackFitter::annealing
std::unique_ptr< AnnealingSchedule > annealing
Definition:
AnnealingGhostTrackFitter.h:39
reco::AnnealingGhostTrackFitter::firstStep
bool firstStep
Definition:
AnnealingGhostTrackFitter.h:40
GeometricAnnealing.h
funct::true
true
Definition:
Factorize.h:173
reco::AnnealingGhostTrackFitter::postFit
void postFit(const GhostTrackFitter::PredictionUpdater &updater, const GhostTrackPrediction &pred, std::vector< GhostTrackState > &states) override
Definition:
AnnealingGhostTrackFitter.cc:16
GeometricAnnealing
Definition:
GeometricAnnealing.h:7
AnnealingGhostTrackFitter.h
reco::GhostTrackPrediction
Definition:
GhostTrackPrediction.h:21
Generated for CMSSW Reference Manual by
1.8.16