Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
atlas
athena
Commits
c0db65ae
Commit
c0db65ae
authored
Jul 10, 2020
by
Mark Hodgkinson
Browse files
Add setting of attributes needed for e/p studies.
parent
741387d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Reconstruction/eflowRec/src/PFChargedFlowElementCreatorAlgorithm.cxx
View file @
c0db65ae
...
...
@@ -5,6 +5,8 @@
//EDM includes
#include
"xAODBase/IParticleContainer.h"
#include
"xAODPFlow/FlowElementAuxContainer.h"
#include
"xAODPFlow/PFODefs.h"
#include
"xAODCore/AuxStoreAccessorMacros.h"
PFChargedFlowElementCreatorAlgorithm
::
PFChargedFlowElementCreatorAlgorithm
(
const
std
::
string
&
name
,
ISvcLocator
*
pSvcLocator
)
:
AthReentrantAlgorithm
(
name
,
pSvcLocator
)
...
...
@@ -75,7 +77,19 @@ void PFChargedFlowElementCreatorAlgorithm::createChargedFlowElements(const eflow
/* In EOverPMode want charged eflowObjects to have extrapolated eta,phi as coordinates
* (needed for analysis of EOverP Data) */
etaPhi
=
efRecTrack
->
getTrackCaloPoints
().
getEM2etaPhi
();
/*add information to xAOD*/
const
SG
::
AuxElement
::
Accessor
<
int
>
accLHED
(
"eflowRec_layerHED"
);
accLHED
(
*
thisFE
)
=
efRecTrack
->
getLayerHED
();
const
SG
::
AuxElement
::
Accessor
<
std
::
vector
<
int
>
>
accCellOrderVector
(
"eflowRec_layerVectorCellOrdering"
);
accCellOrderVector
(
*
thisFE
)
=
efRecTrack
->
getLayerCellOrderVector
();
const
SG
::
AuxElement
::
Accessor
<
std
::
vector
<
float
>
>
accRadiusCellOrderVector
(
"eflowRec_radiusVectorCellOrdering"
);
accRadiusCellOrderVector
(
*
thisFE
)
=
efRecTrack
->
getRadiusCellOrderVector
();
const
SG
::
AuxElement
::
Accessor
<
std
::
vector
<
float
>
>
accAvgEDensityCellOrderVector
(
"eflowRec_avgEdensityVectorCellOrdering"
);
accAvgEDensityCellOrderVector
(
*
thisFE
)
=
efRecTrack
->
getAvgEDensityCellOrderVector
();
}
else
{
/* In normal mode we want the track eta,phi at the perigee */
etaPhi
.
first
=
efRecTrack
->
getTrack
()
->
eta
();
...
...
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