Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Merge requests
!1577
Fix crashes in analysis tree converter
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Fix crashes in analysis tree converter
f.uhlig/cbmroot:fix_analysis_tree_converter
into
master
Overview
2
Commits
1
Pipelines
1
Changes
2
Merged
Florian Uhlig
requested to merge
f.uhlig/cbmroot:fix_analysis_tree_converter
into
master
1 year ago
Overview
2
Commits
1
Pipelines
1
Changes
2
Add protections when tracking and/or track matching delivers strange results.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
7154c397
1 commit,
1 year ago
2 files
+
6
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
analysis/common/analysis_tree_converter/CbmFsdHitsConverter.cxx
+
5
−
0
View file @ 7154c397
Edit in single-file editor
Open in Web IDE
Show full file
@@ -266,6 +266,11 @@ void CbmFsdHitsConverter::ProcessData(CbmEvent* event)
if
((
bestMatchedIndex
>=
0
)
&&
(
bestChi2
>
fsdgtrack_minChi2_
)
&&
(
bestChi2
<
fsdgtrack_maxChi2_
))
{
const
auto
trackIndex
=
event
?
event
->
GetIndex
(
ECbmDataType
::
kGlobalTrack
,
bestMatchedIndex
)
:
bestMatchedIndex
;
if
(
trackIndex
>
cbm_global_tracks_
->
GetEntriesFast
())
{
LOG
(
error
)
<<
"Trying to access element "
<<
trackIndex
<<
" which is out ot the global track array of size"
<<
cbm_global_tracks_
->
GetEntriesFast
();
continue
;
}
const
auto
*
globalTrack
=
static_cast
<
const
CbmGlobalTrack
*>
(
cbm_global_tracks_
->
At
(
trackIndex
));
FairTrackParam
param_last
=
*
(
globalTrack
->
GetParamLast
());
FairTrackParam
param_fsd
=
ExtrapolateGtrack
(
hitZ
,
param_last
);
Loading