ATLAS Offline Software
CollectionGetterToolImpl.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$
16 #ifndef D3PDMAKERUTILS_COLLECTIONGETTERTOOLIMPL_H
17 #define D3PDMAKERUTILS_COLLECTIONGETTERTOOLIMPL_H
18 
19 
25 #include "GaudiKernel/ToolHandle.h"
26 
27 
28 namespace D3PD {
29 
30 
31 
41  : public extends<ObjGetterToolImpl, ICollectionGetterTool>
42 {
43 public:
50  CollectionGetterToolImpl (const std::string& type,
51  const std::string& name,
52  const IInterface* parent);
53 
54 
57 
58 
67  const void* nextTypeinfo (const std::type_info& ti);
68 
69 
78  StatusCode configureElementTypeinfo (const std::type_info& ti);
79 
80 
91  void releaseElementTypeinfo (const void* p,
92  const std::type_info& ti);
93 
94 
95 private:
97  std::string m_label;
98 
100  ToolHandle<ICollectionGetterRegistryTool> m_registry;
101 
104 
107 };
108 
109 
110 } // namespace D3PD
111 
112 
113 #endif // not D3PDMAKERUTILS_COLLECTIONGETTERTOOLIMPL_H
ICollectionGetterRegistryTool.h
Abstract interface to keep a registry of collection getter tools.
D3PD::CollectionGetterToolImpl::nextTypeinfo
const void * nextTypeinfo(const std::type_info &ti)
Return the next object cast to a different pointer type.
Definition: CollectionGetterToolImpl.cxx:68
TypeConverter.h
Helper to convert pointers.
ICollectionGetterTool.h
Abstract interface to get a collection of objects and iterate over it.
D3PD::CollectionGetterToolImpl::m_converter
TypeConverter m_converter
Helper to convert pointers.
Definition: CollectionGetterToolImpl.h:103
D3PD::TypeConverter
This is helper for converting between pointers of different types, given dynamically by std::type_inf...
Definition: TypeConverter.h:45
D3PD::CollectionGetterToolImpl::m_registry
ToolHandle< ICollectionGetterRegistryTool > m_registry
The collection getter registry tool.
Definition: CollectionGetterToolImpl.h:100
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
D3PD::CollectionGetterToolImpl::m_backConverter
TypeConverter m_backConverter
Helper to convert pointers back, for releaseElement.
Definition: CollectionGetterToolImpl.h:106
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ObjGetterToolImpl.h
Non-template parts of ObjGetterTool.
D3PD::CollectionGetterToolImpl::initialize
StatusCode initialize()
Standard Gaudi initialize method.
Definition: CollectionGetterToolImpl.cxx:45
D3PD::CollectionGetterToolImpl::CollectionGetterToolImpl
CollectionGetterToolImpl(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: CollectionGetterToolImpl.cxx:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::CollectionGetterToolImpl::configureElementTypeinfo
StatusCode configureElementTypeinfo(const std::type_info &ti)
Test type compatibility.
Definition: CollectionGetterToolImpl.cxx:147
D3PD::CollectionGetterToolImpl::m_label
std::string m_label
Property: label to assign to this getter (or null).
Definition: CollectionGetterToolImpl.h:97
D3PD::CollectionGetterToolImpl::releaseElementTypeinfo
void releaseElementTypeinfo(const void *p, const std::type_info &ti)
Release an element retrieved from the getter.
Definition: CollectionGetterToolImpl.cxx:104
D3PD::CollectionGetterToolImpl
Non-template parts of CollectionGetterTool.
Definition: CollectionGetterToolImpl.h:42