ATLAS Offline Software
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-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
16 #ifndef D3PDMAKERTEST_OBJ1OBJ2MULTIASSOCIATIONTOOL_H
17 #define D3PDMAKERTEST_OBJ1OBJ2MULTIASSOCIATIONTOOL_H
18 
19 
21 #include "D3PDMakerTest/Obj1.h"
22 
23 
24 namespace D3PDTest {
25 
26 
27 class Obj1;
28 class Obj2;
29 
30 
35  : public D3PD::MultiAssociationTool<Obj1, Obj2>
36 {
37 public:
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 
67 private:
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
MultiAssociationTool.h
Type-safe wrapper for multiple-target associator tools.
D3PDTest::Obj1
Test class for D3PD maker.
Definition: Obj1.h:38
D3PDTest::Obj1Obj2MultiAssociationTool
Test code: associate from an Obj1 to a set of Obj2.
Definition: Obj1Obj2MultiAssociationTool.h:36
D3PDTest::Obj1Obj2MultiAssociationTool::m_it
std::vector< Obj2 >::const_iterator m_it
Definition: Obj1Obj2MultiAssociationTool.h:70
D3PD::MultiAssociationTool
Type-safe wrapper for multiple-target associator tools.
Definition: MultiAssociationTool.h:158
D3PDTest::Obj1Obj2MultiAssociationTool::Obj1Obj2MultiAssociationTool
Obj1Obj2MultiAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: Obj1Obj2MultiAssociationTool.cxx:27
D3PDTest::Obj1Obj2MultiAssociationTool::next
virtual const Obj2 * next()
Return a pointer to the next element in the association.
Definition: Obj1Obj2MultiAssociationTool.cxx:59
D3PDTest::Obj1Obj2MultiAssociationTool::m_which
int m_which
Definition: Obj1Obj2MultiAssociationTool.h:68
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PDTest::Obj1Obj2MultiAssociationTool::Base
D3PD::MultiAssociationTool< Obj1, Obj2 > Base
Definition: Obj1Obj2MultiAssociationTool.h:38
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
D3PDTest::Obj1Obj2MultiAssociationTool::reset
virtual StatusCode reset(const Obj1 &p)
Start the iteration for a new association.
Definition: Obj1Obj2MultiAssociationTool.cxx:40
Obj1.h
Test class for D3PD maker.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PDTest
Definition: MapDumper.h:25
D3PDTest::Obj1Obj2MultiAssociationTool::m_end
std::vector< Obj2 >::const_iterator m_end
Definition: Obj1Obj2MultiAssociationTool.h:71
D3PDTest::Obj2
Test class for D3PD maker.
Definition: Obj2.h:28