ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODPFlow
xAODPFlow
PFOHelper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include <vector>
6
#include "AthLinks/ElementLink.h"
7
8
#include "
xAODBase/IParticleContainer.h
"
9
10
#include "
xAODPFlow/PFOContainer.h
"
11
12
namespace
xAOD
{
13
14
static
void
convertLinks
(std::vector<
ElementLink<PFOContainer>
>& pfoContainer, std::vector<
ElementLink<IParticleContainer>
>& particleContainer){
15
16
std::vector<ElementLink<PFOContainer>>
::iterator
firstPFO = pfoContainer.begin();
17
std::vector<ElementLink<PFOContainer>>
::iterator
lastPFO = pfoContainer.end();
18
19
for
(; firstPFO != lastPFO; ++firstPFO){
20
ElementLink<PFOContainer>
thePFOLink = *firstPFO;
21
thePFOLink.
toPersistent
();
22
ElementLink< xAOD::IParticleContainer >
myLink;
23
myLink.
resetWithKeyAndIndex
( thePFOLink.
persKey
(), thePFOLink.
persIndex
() );
24
particleContainer.push_back(myLink);
25
}
26
27
}
28
29
}
PFOContainer.h
ElementLinkBase::persIndex
stored_index_type persIndex() const
Return the index of the link.
Definition
ElementLinkBase.cxx:31
ElementLinkBase::persKey
sgkey_t persKey() const
Return the SG key that we reference, as a hash.
Definition
ElementLinkBase.cxx:13
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
ElementLink::toPersistent
bool toPersistent()
Dummy function provinding the offline interface.
Definition
A/AthLinks/ElementLink.h:202
ElementLink::resetWithKeyAndIndex
void resetWithKeyAndIndex(const ID_type &key, index_type index, xAOD::TVirtualEvent *event=0)
Reset with storable key and element index (fast).
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::iterator
JetConstituentVector::iterator iterator
Definition
JetConstituentVector.cxx:68
xAOD::convertLinks
static void convertLinks(std::vector< ElementLink< PFOContainer > > &pfoContainer, std::vector< ElementLink< IParticleContainer > > &particleContainer)
Definition
PFOHelper.h:14
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0