ATLAS Offline Software
Loading...
Searching...
No Matches
ConversionVertexAssociationTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id: ConversionVertexAssociationTool.cxx 605545 2014-07-09 04:51:09Z ssnyder $
12
13
16
17
18namespace D3PD {
19
20
28 const std::string& name,
29 const IInterface* parent)
30 : Base (type, name, parent),
31 m_vxCounter(0),
32 m_ph(0)
33{
34}
35
36
41{
42 m_vxCounter = 0;
43 m_ph = &ph;
44 return StatusCode::SUCCESS;
45}
46
47
54const xAOD::Vertex*
56{
57 if(!m_ph || m_vxCounter >= m_ph->nVertices())
58 return 0;
59
60 return m_ph->vertex(m_vxCounter++);
61}
62
63
64} // namespace D3PD
Helpers for checking error return status codes and reporting errors.
virtual const xAOD::Vertex * next()
Return a pointer to the next associated object.
virtual StatusCode reset(const xAOD::Photon &ph)
Start the iteration for a new association.
MultiAssociationTool< xAOD::Photon, xAOD::Vertex > Base
ConversionVertexAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Block filler tool for noisy FEB information.
Vertex_v1 Vertex
Define the latest version of the vertex class.
Photon_v1 Photon
Definition of the current "egamma version".