Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCb
Alignment
Commits
e4b37e8b
Commit
e4b37e8b
authored
Nov 27, 2022
by
Rosen Matev
Browse files
Lock entire AlignAlgorithm operator
parent
ca586c4a
Pipeline
#4818304
failed with stages
in 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Alignment/TAlignment/src/AlignAlgorithm.cpp
View file @
e4b37e8b
...
...
@@ -39,6 +39,8 @@ namespace LHCb::Alignment {
bool
accumulate
(
Equations
&
equations
,
const
Residuals
<
TNode
>&
residuals
)
const
;
bool
testTrackNodes
(
const
Track
&
track
)
const
;
bool
testNodes
(
const
TFitResult
*
fr
)
const
;
mutable
std
::
mutex
m_lock
;
};
using
AlignAlgo
=
AlignAlgorithm
<
LHCb
::
KalmanFitResult
,
LHCb
::
FitNode
>
;
...
...
@@ -51,6 +53,7 @@ namespace LHCb::Alignment {
//=============================================================================
template
<
typename
TFitResult
,
typename
TNode
>
void
AlignAlgorithm
<
TFitResult
,
TNode
>::
operator
()(
const
EventContext
&
,
const
GenericDetElem
&
lhcb
)
const
{
auto
lock
=
std
::
scoped_lock
{
m_lock
};
// FIXME XXX : we should check that the ConditionContext does not change
// If it does, we should throw an exception and stop processing
// The risk is to mix data from different runs by mistake and screw the alignment procedure
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment