src
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