Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
atlas
athena
Commits
6260448b
Commit
6260448b
authored
Jan 08, 2021
by
scott snyder
Committed by
scott snyder
Feb 02, 2021
Browse files
eflowRec: Fix clang warnings.
Don't use references in a range-for if the object must be copied.
parent
eff3937e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Reconstruction/eflowRec/src/PFChargedFlowElementCreatorAlgorithm.cxx
View file @
6260448b
...
...
@@ -29,7 +29,7 @@ StatusCode PFChargedFlowElementCreatorAlgorithm::execute(const EventContext& ctx
/* Create Charged FlowElements from all eflowCaloObjects */
SG
::
ReadHandle
<
eflowCaloObjectContainer
>
eflowCaloObjectContainerReadHandle
(
m_eflowCaloObjectContainerReadHandleKey
,
ctx
);
for
(
const
auto
&
thisEflowCaloObject
:
*
eflowCaloObjectContainerReadHandle
)
createChargedFlowElements
(
*
thisEflowCaloObject
,
true
,
chargedFlowElementContainerWriteHandle
);
for
(
const
auto
thisEflowCaloObject
:
*
eflowCaloObjectContainerReadHandle
)
createChargedFlowElements
(
*
thisEflowCaloObject
,
true
,
chargedFlowElementContainerWriteHandle
);
std
::
sort
(
chargedFlowElementContainerWriteHandle
->
begin
(),
chargedFlowElementContainerWriteHandle
->
end
(),
[]
(
const
xAOD
::
FlowElement
*
flowElement1
,
const
xAOD
::
FlowElement
*
flowElement2
)
{
return
flowElement1
->
pt
()
>
flowElement2
->
pt
();});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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