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
cab85167
Unverified
Commit
cab85167
authored
7 years ago
by
Nils Braun
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #71 from GenFit/feature/add-rep-reset
Added a function to reset the fit result for a given rep
parents
3c8c8eb3
94a58c3a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/include/Track.h
+9
-0
9 additions, 0 deletions
core/include/Track.h
core/src/Track.cc
+14
-0
14 additions, 0 deletions
core/src/Track.cc
with
23 additions
and
0 deletions
core/include/Track.h
+
9
−
0
View file @
cab85167
...
...
@@ -259,6 +259,15 @@ class Track : public TObject {
//! get time of flight in ns between to trackPoints (if nullptr, for cardinal rep)
double
getTOF
(
AbsTrackRep
*
rep
=
nullptr
,
int
startId
=
0
,
int
endId
=
-
1
)
const
;
/**
* Delete the fit status and all the FitStates of the TrackPoints
* for the given hypothesis.
* This is equal to resetting the track for the rep, so another fit
* can start from scratch.
* Useful if you have changed some seeds.
*/
void
deleteFittedState
(
const
genfit
::
AbsTrackRep
*
rep
);
//! Construct a new TrackCand containing the hit IDs of the measurements
/**
* The idea is hat you can get a TrackCand for storing the hit IDs after a track has been fitted.
...
...
This diff is collapsed.
Click to expand it.
core/src/Track.cc
+
14
−
0
View file @
cab85167
...
...
@@ -505,6 +505,20 @@ void Track::deletePoint(int id) {
void
Track
::
insertMeasurement
(
AbsMeasurement
*
measurement
,
int
id
)
{
insertPoint
(
new
TrackPoint
(
measurement
,
this
),
id
);
}
void
Track
::
deleteFittedState
(
const
genfit
::
AbsTrackRep
*
rep
)
{
if
(
hasFitStatus
(
rep
))
{
delete
fitStatuses_
.
at
(
rep
);
fitStatuses_
.
erase
(
rep
);
}
// delete FitterInfos related to the deleted TrackRep
for
(
const
auto
&
trackPoint
:
trackPoints_
)
{
if
(
trackPoint
->
hasFitterInfo
(
rep
))
{
trackPoint
->
deleteFitterInfo
(
rep
);
}
}
}
void
Track
::
mergeTrack
(
const
Track
*
other
,
int
id
)
{
...
...
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