ATLAS Offline Software
Loading...
Searching...
No Matches
Obj1Obj2MultiAssociationTool.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14
15
16#ifndef D3PDMAKERTEST_OBJ1OBJ2MULTIASSOCIATIONTOOL_H
17#define D3PDMAKERTEST_OBJ1OBJ2MULTIASSOCIATIONTOOL_H
18
19
21#include "D3PDMakerTest/Obj1.h"
22
23
24namespace D3PDTest {
25
26
27class Obj1;
28class Obj2;
29
30
35 : public D3PD::MultiAssociationTool<Obj1, Obj2>
36{
37public:
39
40
47 Obj1Obj2MultiAssociationTool (const std::string& type,
48 const std::string& name,
49 const IInterface* parent);
50
51
56 virtual StatusCode reset (const Obj1& p);
57
58
64 virtual const Obj2* next ();
65
66
67private:
68 int m_which{};
69
70 std::vector<Obj2>::const_iterator m_it{};
71 std::vector<Obj2>::const_iterator m_end{};
72};
73
74
75} // namespace D3PDTest
76
77
78
79#endif // not D3PDMAKERTEST_OBJ1OBJ2MULTIASSOCIATIONTOOL_H
Type-safe wrapper for multiple-target associator tools.
Test class for D3PD maker.
virtual StatusCode reset(const Obj1 &p)
Start the iteration for a new association.
Obj1Obj2MultiAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
D3PD::MultiAssociationTool< Obj1, Obj2 > Base
std::vector< Obj2 >::const_iterator m_end
virtual const Obj2 * next()
Return a pointer to the next element in the association.
Test class for D3PD maker.
Definition Obj1.h:38
Test class for D3PD maker.
Definition Obj2.h:28
Type-safe wrapper for multiple-target associator tools.