Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GenFit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
GenFit
Commits
e4a74a5f
Unverified
Commit
e4a74a5f
authored
6 years ago
by
Nils Braun
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #85 from TadeasB/patch-2
Use auxInfo from reference
parents
e9c2d570
2b53e952
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GBL/src/GblFitterInfo.cc
+11
-10
11 additions, 10 deletions
GBL/src/GblFitterInfo.cc
with
11 additions
and
10 deletions
GBL/src/GblFitterInfo.cc
+
11
−
10
View file @
e4a74a5f
...
...
@@ -83,8 +83,8 @@ namespace genfit {
bwdPrediction_
=
referenceState
.
getState
();
//TODO: reset even if already fitted?
fittedStateBwd_
.
reset
(
new
MeasuredStateOnPlane
(
referenceState
,
trackPoint_
->
getTrack
()
->
getCovSeed
()));
fittedStateFwd_
.
reset
(
new
MeasuredStateOnPlane
(
referenceState
,
trackPoint_
->
getTrack
()
->
getCovSeed
()));
fittedStateBwd_
.
reset
(
new
MeasuredStateOnPlane
(
referenceState
.
getState
()
,
trackPoint_
->
getTrack
()
->
getCovSeed
()
,
sharedPlane_
,
rep_
,
referenceState
.
getAuxInfo
()
));
fittedStateFwd_
.
reset
(
new
MeasuredStateOnPlane
(
referenceState
.
getState
()
,
trackPoint_
->
getTrack
()
->
getCovSeed
()
,
sharedPlane_
,
rep_
,
referenceState
.
getAuxInfo
()
));
}
...
...
@@ -116,7 +116,7 @@ namespace genfit {
//NOTE: 3rd update and update anytime GblPoint is requested
// mostly likely will update with reference as on 2nd update
StateOnPlane
sop
(
getFittedState
().
getState
(),
sharedPlane_
,
rep_
);
StateOnPlane
sop
(
getFittedState
().
getState
(),
sharedPlane_
,
rep_
,
getFittedState
(
true
).
getAuxInfo
()
);
// Scatterer
...
...
@@ -329,8 +329,8 @@ namespace genfit {
fwdPrediction_
+=
fwdStateCorrection_
;
// This is the update!
bwdPrediction_
+=
bwdStateCorrection_
;
// This is the update!
fittedStateFwd_
.
reset
(
new
MeasuredStateOnPlane
(
fwdPrediction_
,
fwdCov_
,
sharedPlane_
,
rep_
)
);
fittedStateBwd_
.
reset
(
new
MeasuredStateOnPlane
(
bwdPrediction_
,
bwdCov_
,
sharedPlane_
,
rep_
)
);
fittedStateFwd_
.
reset
(
new
MeasuredStateOnPlane
(
fwdPrediction_
,
fwdCov_
,
sharedPlane_
,
rep_
,
getFittedState
(
true
).
getAuxInfo
()
)
);
fittedStateBwd_
.
reset
(
new
MeasuredStateOnPlane
(
bwdPrediction_
,
bwdCov_
,
sharedPlane_
,
rep_
,
getFittedState
(
true
).
getAuxInfo
()
)
);
// Set scattering/measurement residual data
kinkResiduals_
=
kResiduals
;
...
...
@@ -367,7 +367,7 @@ namespace genfit {
// Take forward state from previous fitter info,
// its (maybe updated) plane
// and our rep
StateOnPlane
prevState
(
prevFitterInfo
->
getFittedState
(
true
).
getState
(),
prevFitterInfo
->
getPlane
(),
rep_
);
StateOnPlane
prevState
(
prevFitterInfo
->
getFittedState
(
true
).
getState
(),
prevFitterInfo
->
getPlane
(),
rep_
,
getFittedState
(
true
).
getAuxInfo
()
);
if
(
hasMeasurements
())
{
SharedPlanePtr
newPlane
=
trackPoint_
->
getRawMeasurement
(
0
)
->
constructPlane
(
prevState
);
...
...
@@ -383,14 +383,14 @@ namespace genfit {
//
// Extrap predictions to new plane
//
StateOnPlane
oldFwdState
(
fwdPrediction_
,
oldPlane
,
rep_
);
StateOnPlane
oldBwdState
(
bwdPrediction_
,
oldPlane
,
rep_
);
StateOnPlane
oldFwdState
(
fwdPrediction_
,
oldPlane
,
rep_
,
getFittedState
(
true
).
getAuxInfo
()
);
StateOnPlane
oldBwdState
(
bwdPrediction_
,
oldPlane
,
rep_
,
getFittedState
(
true
).
getAuxInfo
()
);
rep_
->
extrapolateToPlane
(
oldFwdState
,
sharedPlane_
);
rep_
->
extrapolateToPlane
(
oldBwdState
,
sharedPlane_
);
fwdPrediction_
=
oldFwdState
.
getState
();
bwdPrediction_
=
oldBwdState
.
getState
();
fittedStateBwd_
.
reset
();
fittedStateFwd_
.
reset
();
fittedStateBwd_
.
reset
(
new
MeasuredStateOnPlane
(
fwdPrediction_
,
fwdCov_
,
sharedPlane_
,
rep_
,
getFittedState
(
true
).
getAuxInfo
())
);
fittedStateFwd_
.
reset
(
new
MeasuredStateOnPlane
(
bwdPrediction_
,
bwdCov_
,
sharedPlane_
,
rep_
,
getFittedState
(
true
).
getAuxInfo
())
);
//
}
...
...
@@ -399,6 +399,7 @@ namespace genfit {
// ALways biased from GBL (global fit!)
if
(
!
fittedStateFwd_
||
!
fittedStateBwd_
)
{
//NOTE: This should be already set (from reference)! The auxInfo is being book-kept by it. If reference is not set, default auxInfo is used
fittedStateFwd_
.
reset
(
new
MeasuredStateOnPlane
(
fwdPrediction_
,
fwdCov_
,
sharedPlane_
,
rep_
));
fittedStateBwd_
.
reset
(
new
MeasuredStateOnPlane
(
bwdPrediction_
,
bwdCov_
,
sharedPlane_
,
rep_
));
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment