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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
c4cd757d
Commit
c4cd757d
authored
3 years ago
by
drslebedev
Committed by
Florian Uhlig
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
RICH track projection: Check for NaN in the input track params.
parent
52e18366
No related branches found
No related tags found
1 merge request
!418
RICH track projection: Check for NaN in the input track params.
Pipeline
#12239
passed
3 years ago
Stage: documentation
Stage: deploy
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reco/detectors/rich/tracks/CbmRichProjectionProducerAnalytical.cxx
+4
-1
4 additions, 1 deletion
...ctors/rich/tracks/CbmRichProjectionProducerAnalytical.cxx
with
4 additions
and
1 deletion
reco/detectors/rich/tracks/CbmRichProjectionProducerAnalytical.cxx
+
4
−
1
View file @
c4cd757d
...
...
@@ -87,6 +87,9 @@ void CbmRichProjectionProducerAnalytical::DoProjection(CbmEvent* event, TClonesA
if
(
trPar
->
GetX
()
==
0
&&
trPar
->
GetY
()
==
0
&&
trPar
->
GetZ
()
==
0
&&
trPar
->
GetTx
()
==
0
&&
trPar
->
GetTy
()
==
0
)
continue
;
if
(
trPar
->
GetQp
()
==
0
)
continue
;
if
(
TMath
::
IsNaN
(
trPar
->
GetX
())
||
TMath
::
IsNaN
(
trPar
->
GetY
())
||
TMath
::
IsNaN
(
trPar
->
GetZ
())
||
TMath
::
IsNaN
(
trPar
->
GetTx
())
||
TMath
::
IsNaN
(
trPar
->
GetTy
())
||
TMath
::
IsNaN
(
trPar
->
GetQp
()))
continue
;
Double_t
rho1
=
0.
;
TVector3
startP
,
momP
,
crossP
,
centerP
;
...
...
@@ -95,7 +98,7 @@ void CbmRichProjectionProducerAnalytical::DoProjection(CbmEvent* event, TClonesA
Double_t
p
=
1.
/
TMath
::
Abs
(
trPar
->
GetQp
());
Double_t
pz
;
Double_t
pz2
=
1
+
trPar
->
GetTx
()
*
trPar
->
GetTx
()
+
trPar
->
GetTy
()
*
trPar
->
GetTy
();
if
(
pz2
>
0.
)
pz
=
p
/
TMath
::
Sqrt
(
pz2
);
if
(
pz2
>
0.
)
{
pz
=
p
/
TMath
::
Sqrt
(
pz2
);
}
else
{
LOG
(
error
)
<<
"CbmRichProjectionProducerAnalytical::DoProjection(): strange value for calculating pz: "
<<
pz2
;
pz
=
0.
;
...
...
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