ATLAS Offline Software
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
D3PDMakerTest
src
ToObj2AssociationTool.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$
12
13
14
#include "
ToObj2AssociationTool.h
"
15
#include "
D3PDMakerTest/Obj1.h
"
16
17
18
namespace
D3PDTest
{
19
20
27
ToObj2AssociationTool::ToObj2AssociationTool
(
const
std::string&
type
,
28
const
std::string& name,
29
const
IInterface* parent)
30
:
Base
(
type
, name, parent)
31
{
32
}
33
34
41
const
Obj2
*
ToObj2AssociationTool::get
(
const
Obj1
& p)
42
{
43
return
&p.m_o2;
44
}
45
46
53
const
Obj2
*
ToObj2AssociationTool::get
(
const
Obj2
& p)
54
{
55
return
&p;
56
}
57
58
59
}
// namespace D3PDTest
Obj1.h
Test class for D3PD maker.
ToObj2AssociationTool.h
Test code: Test SingleAssociationToolMulti.
D3PDTest::Obj1
Test class for D3PD maker.
Definition
Obj1.h:38
D3PDTest::Obj2
Test class for D3PD maker.
Definition
Obj2.h:28
D3PDTest::ToObj2AssociationTool::Base
D3PD::SingleAssociationTool< D3PD::Types< Obj1, Obj2 >, Obj2 > Base
Definition
ToObj2AssociationTool.h:37
D3PDTest::ToObj2AssociationTool::get
virtual const Obj2 * get(const Obj1 &p)
Return the target object.
Definition
ToObj2AssociationTool.cxx:41
D3PDTest::ToObj2AssociationTool::ToObj2AssociationTool
ToObj2AssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
ToObj2AssociationTool.cxx:27
D3PDTest
Definition
MapDumper.h:25
type
Generated on
for ATLAS Offline Software by
1.14.0