ATLAS Offline Software
Loading...
Searching...
No Matches
SingleAssociationToolImpl.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 D3PDMAKERUTILS_SINGLEASSOCIATIONTOOLIMPL_H
17#define D3PDMAKERUTILS_SINGLEASSOCIATIONTOOLIMPL_H
18
19
24#include <vector>
25
26
27namespace D3PD {
28
29
45 : public extends<AthAlgTool, ISingleAssociationTool>,
46 public AddVariable
47{
48public:
55 SingleAssociationToolImpl (const std::string& type,
56 const std::string& name,
57 const IInterface* parent);
58
59
69 virtual StatusCode configureD3PD (D3PD::IAddVariable* tree,
70 const std::type_info& ti);
71
72
79 virtual StatusCode book();
80
81
85 virtual const std::type_info& fromTypeinfo() const = 0;
86
87
88protected:
94 const void* doConversion (const void* p);
95
96
111 const std::type_info& ti,
112 const std::vector<const std::type_info*>& tis,
113 size_t& which);
114
115
116private:
118 std::string m_prefix;
119
121 std::string m_blockName;
122
125};
126
127
128} // namespace D3PD
129
130
131#endif // not D3PDMAKERUTILS_SINGLEASSOCIATIONTOOLIMPL_H
Common implementation of IAddVariable.
Abstract interface to form a single association.
Helper to convert pointers.
AddVariable(const std::string &prefix, const std::string &blockName=s_emptyString)
Constructor.
Common interface for adding a variable to a tuple.
virtual const std::type_info & fromTypeinfo() const =0
Return the std::type_info for the source of the association.
StatusCode configureMulti(D3PD::IAddVariable *tree, const std::type_info &ti, const std::vector< const std::type_info * > &tis, size_t &which)
Configure during initialization: type-check.
std::string m_blockName
Property: the name of this block.
std::string m_prefix
Parameter: source object prefix.
SingleAssociationToolImpl(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
TypeConverter m_inputConverter
Helper to convert source object pointers.
const void * doConversion(const void *p)
Helper to convert pointers to source objects.
virtual StatusCode configureD3PD(D3PD::IAddVariable *tree, const std::type_info &ti)
Configure during initialization: type-check.
virtual StatusCode book()
Create any needed tuple variables.
This is helper for converting between pointers of different types, given dynamically by std::type_inf...
Block filler tool for noisy FEB information.
TChain * tree