ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
D3PDMakerUtils
D3PDMakerUtils
ObjGetterToolImpl.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_OBJGETTERTOOLIMPL_H
17
#define D3PDMAKERUTILS_OBJGETTERTOOLIMPL_H
18
19
20
#include "
D3PDMakerInterfaces/IObjGetterTool.h
"
21
#include "
D3PDMakerUtils/TypeConverter.h
"
22
#include "
AthenaBaseComps/AthAlgTool.h
"
23
24
25
namespace
D3PD
{
26
27
39
class
ObjGetterToolImpl
40
:
public
extends<AthAlgTool, IObjGetterTool>
41
{
42
public
:
49
ObjGetterToolImpl
(
const
std::string&
type
,
50
const
std::string& name,
51
const
IInterface* parent);
52
53
63
virtual
const
void
*
getTypeinfo
(
const
std::type_info& ti,
64
bool
allowMissing =
false
);
65
66
75
virtual
StatusCode
configureTypeinfo
(
const
std::type_info& ti);
76
77
88
void
releaseObjectTypeinfo
(
const
void
* p,
89
const
std::type_info& ti);
90
91
92
private
:
94
TypeConverter
m_converter
;
95
97
TypeConverter
m_backConverter
;
98
};
99
100
101
}
// namespace D3PD
102
103
104
#endif
// not D3PDMAKERUTILS_OBJGETTERTOOLIMPL_H
AthAlgTool.h
IObjGetterTool.h
Abstract interface to get an object to put in the tuple.
TypeConverter.h
Helper to convert pointers.
D3PD::ObjGetterToolImpl::getTypeinfo
virtual const void * getTypeinfo(const std::type_info &ti, bool allowMissing=false)
Return the target object cast to a different pointer type.
Definition
ObjGetterToolImpl.cxx:45
D3PD::ObjGetterToolImpl::m_converter
TypeConverter m_converter
Helper to convert pointers.
Definition
ObjGetterToolImpl.h:94
D3PD::ObjGetterToolImpl::ObjGetterToolImpl
ObjGetterToolImpl(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
ObjGetterToolImpl.cxx:28
D3PD::ObjGetterToolImpl::m_backConverter
TypeConverter m_backConverter
Helper to convert pointers back, for releaseObject.
Definition
ObjGetterToolImpl.h:97
D3PD::ObjGetterToolImpl::releaseObjectTypeinfo
void releaseObjectTypeinfo(const void *p, const std::type_info &ti)
Release an object retrieved from the getter.
Definition
ObjGetterToolImpl.cxx:82
D3PD::ObjGetterToolImpl::configureTypeinfo
virtual StatusCode configureTypeinfo(const std::type_info &ti)
Test type compatibility.
Definition
ObjGetterToolImpl.cxx:124
D3PD::TypeConverter
This is helper for converting between pointers of different types, given dynamically by std::type_inf...
Definition
TypeConverter.h:45
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
type
Generated on
for ATLAS Offline Software by
1.17.0