ATLAS Offline Software
Loading...
Searching...
No Matches
FirstAssociationTool.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$
14
15
16#ifndef D3PDMAKERCORECOMPS_FIRSTASSOCIATIONTOOL_H
17#define D3PDMAKERCORECOMPS_FIRSTASSOCIATIONTOOL_H
18
19
22#include "GaudiKernel/ToolHandle.h"
23
24
25namespace D3PD {
26
27
29
30
38 : public extends<AthAlgTool, ISingleAssociationTool>
39{
40public:
47 FirstAssociationTool (const std::string& type,
48 const std::string& name,
49 const IInterface* parent);
50
51
55 virtual StatusCode initialize() override;
56
57
66 virtual StatusCode configureD3PD (IAddVariable* tree,
67 const std::type_info& ti) override;
68
69
75 virtual StatusCode book() override;
76
77
81 virtual const std::type_info& typeinfo() const override;
82
83
91 virtual const void* getUntyped (const void* p) override;
92
93
103 virtual void releaseObjectUntyped (const void* p) override;
104
105
106private:
108 ToolHandle<IMultiAssociationTool> m_associator;
109};
110
111
112} // namespace D3PD
113
114
115#endif // not D3PDMAKERCORECOMPS_FIRSTASSOCIATIONTOOL_H
Abstract interface to form a single association.
virtual const void * getUntyped(const void *p) override
Return the target object.
virtual StatusCode configureD3PD(IAddVariable *tree, const std::type_info &ti) override
Configure during initialization: type-check.
ToolHandle< IMultiAssociationTool > m_associator
The wrapped multiple association tool.
virtual StatusCode book() override
Declare tuple variables.
virtual StatusCode initialize() override
Standard Gaudi initialize method.
virtual const std::type_info & typeinfo() const override
Return the type of object retrieved by this tool.
virtual void releaseObjectUntyped(const void *p) override
Release an object retrieved from the association.
FirstAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Common interface for adding a variable to a tuple.
Abstract interface to form a multi-way association.
Block filler tool for noisy FEB information.
TChain * tree