ATLAS Offline Software
Loading...
Searching...
No Matches
BlockFillerToolImpl.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#ifndef D3PDMAKERUTILS_BLOCKFILLERTOOLIMPL_H
16#define D3PDMAKERUTILS_BLOCKFILLERTOOLIMPL_H
17
18
23#include "GaudiKernel/AlgTool.h"
24#include <string>
25
26
27namespace D3PD {
28
29
43 : public extends<AthAlgTool, IBlockFillerTool>, public AddVariable
44{
45public:
52 BlockFillerToolImpl (const std::string& type,
53 const std::string& name,
54 const IInterface* parent);
55
56
57protected:
70 StatusCode configureImpl (IAddVariable* tree,
71 const std::type_info& ti,
72 const std::type_info& fill_ti);
73
74
91 StatusCode configureImpl (IAddVariable* tree,
92 const std::type_info& ti,
93 const std::vector<const std::type_info*>& tis,
94 size_t& which);
95
96
107 StatusCode convert (void const* & p) const;
108
109
110private:
112 std::string m_prefix;
113
115 std::string m_suffix;
116
118 std::string m_blockName;
119
122};
123
124
125} // namespace D3PD
126
127
128#endif // not D3PDMAKERUTILS_BLOCKFILLERTOOLIMPL_H
Common implementation of IAddVariable.
Abstract interface for tool to fill a block in the D3PD.
Helper to convert pointers.
AddVariable(const std::string &prefix, const std::string &blockName=s_emptyString)
Constructor.
std::string m_prefix
Property: the variable prefix for this block.
StatusCode configureImpl(IAddVariable *tree, const std::type_info &ti, const std::type_info &fill_ti)
Configure during initialization: type-check.
std::string m_suffix
Property: the variable prefix for this block.
TypeConverter m_converter
Helper to do type conversions.
std::string m_blockName
Property: the name of this block.
StatusCode convert(void const *&p) const
Do type conversion.
BlockFillerToolImpl(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Common interface for adding a variable to a tuple.
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