ATLAS Offline Software
Loading...
Searching...
No Matches
ToObj2MultiAssociationTool.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_TOOBJ2MULTIASSOCIATIONTOOL_H
17#define D3PDMAKERTEST_TOOBJ2MULTIASSOCIATIONTOOL_H
18
19
21#include "D3PDMakerTest/Obj1.h"
22
23
24namespace D3PDTest {
25
26
27class Obj1;
28class Obj2;
29
30
35 : public D3PD::MultiAssociationTool<D3PD::Types<Obj1, Obj2>, Obj2>
36{
37public:
39
40
47 ToObj2MultiAssociationTool (const std::string& type,
48 const std::string& name,
49 const IInterface* parent);
50
51
56 virtual StatusCode reset (const Obj1& p);
57
58
63 virtual StatusCode reset (const Obj2& p);
64
65
71 virtual const Obj2* next ();
72
73
74private:
75 int m_which{};
76
77 std::vector<Obj2>::const_iterator m_it{};
78 std::vector<Obj2>::const_iterator m_end{};
79
80 std::vector<Obj2> m_tmpvec;
81};
82
83
84} // namespace D3PDTest
85
86
87
88#endif // not D3PDMAKERTEST_TOOBJ2MULTIASSOCIATIONTOOL_H
Type-safe wrapper for multiple-target associator tools.
Test class for D3PD maker.
Test class for D3PD maker.
Definition Obj1.h:38
Test class for D3PD maker.
Definition Obj2.h:28
std::vector< Obj2 >::const_iterator m_it
ToObj2MultiAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
virtual const Obj2 * next()
Return a pointer to the next element in the association.
std::vector< Obj2 >::const_iterator m_end
D3PD::MultiAssociationTool< D3PD::Types< Obj1, Obj2 >, Obj2 > Base
virtual StatusCode reset(const Obj1 &p)
Start the iteration for a new association.
Type-safe wrapper for multiple-target associator tools.