Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
atlas
athena
Commits
e4c74ceb
Commit
e4c74ceb
authored
Aug 18, 2020
by
Mark Hodgkinson
Browse files
Make some minor changes in reponse to MR code review.
parent
6e35ba02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Reconstruction/eflowRec/src/PFChargedFlowElementCreatorAlgorithm.cxx
View file @
e4c74ceb
...
@@ -29,7 +29,7 @@ StatusCode PFChargedFlowElementCreatorAlgorithm::execute(const EventContext& ctx
...
@@ -29,7 +29,7 @@ StatusCode PFChargedFlowElementCreatorAlgorithm::execute(const EventContext& ctx
/* Create Charged FlowElements from all eflowCaloObjects */
/* Create Charged FlowElements from all eflowCaloObjects */
SG
::
ReadHandle
<
eflowCaloObjectContainer
>
eflowCaloObjectContainerReadHandle
(
m_eflowCaloObjectContainerReadHandleKey
,
ctx
);
SG
::
ReadHandle
<
eflowCaloObjectContainer
>
eflowCaloObjectContainerReadHandle
(
m_eflowCaloObjectContainerReadHandleKey
,
ctx
);
for
(
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
();});
std
::
sort
(
chargedFlowElementContainerWriteHandle
->
begin
(),
chargedFlowElementContainerWriteHandle
->
end
(),
[]
(
const
xAOD
::
FlowElement
*
flowElement1
,
const
xAOD
::
FlowElement
*
flowElement2
)
{
return
flowElement1
->
pt
()
>
flowElement2
->
pt
();});
...
@@ -46,9 +46,7 @@ void PFChargedFlowElementCreatorAlgorithm::createChargedFlowElements(const eflow
...
@@ -46,9 +46,7 @@ void PFChargedFlowElementCreatorAlgorithm::createChargedFlowElements(const eflow
eflowRecTrack
*
efRecTrack
=
energyFlowCaloObject
.
efRecTrack
(
iTrack
);
eflowRecTrack
*
efRecTrack
=
energyFlowCaloObject
.
efRecTrack
(
iTrack
);
/* Skip tracks that haven't been subtracted */
/* Skip tracks that haven't been subtracted */
if
(
false
==
m_eOverPMode
){
if
(
!
m_eOverPMode
&&
!
efRecTrack
->
isSubtracted
()){
continue
;}
if
(
!
efRecTrack
->
isSubtracted
()){
continue
;
}
}
/* Create new xAOD::FlowElement and set the type to charged PFlow */
/* Create new xAOD::FlowElement and set the type to charged PFlow */
xAOD
::
FlowElement
*
thisFE
=
new
xAOD
::
FlowElement
();
xAOD
::
FlowElement
*
thisFE
=
new
xAOD
::
FlowElement
();
...
@@ -108,7 +106,7 @@ void PFChargedFlowElementCreatorAlgorithm::createChargedFlowElements(const eflow
...
@@ -108,7 +106,7 @@ void PFChargedFlowElementCreatorAlgorithm::createChargedFlowElements(const eflow
accIsInDenseEnvironment
(
*
thisFE
)
=
efRecTrack
->
isInDenseEnvironment
();
accIsInDenseEnvironment
(
*
thisFE
)
=
efRecTrack
->
isInDenseEnvironment
();
/* Optionally we add the links to clusters to the xAOD::PFO */
/* Optionally we add the links to clusters to the xAOD::PFO */
if
(
true
==
addClusters
){
if
(
addClusters
){
std
::
vector
<
std
::
pair
<
eflowTrackClusterLink
*
,
float
>
>
trackClusterLinkPairs
=
energyFlowCaloObject
.
efRecLink
();
std
::
vector
<
std
::
pair
<
eflowTrackClusterLink
*
,
float
>
>
trackClusterLinkPairs
=
energyFlowCaloObject
.
efRecLink
();
...
...
Write
Preview
Supports
Markdown
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