ATLAS Offline Software
Loading...
Searching...
No Matches
SGCollectionGetterTool.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_SGCOLLECTIONGETTERTOOL_H
17#define D3PDMAKERUTILS_SGCOLLECTIONGETTERTOOL_H
18
19
23
24
25namespace D3PD {
26
27
38template <class CONT>
40 : public SGGetterImpl, public CollectionGetterTool<CONT>
41{
42public:
49 SGCollectionGetterTool (const std::string& type,
50 const std::string& name,
51 const IInterface* parent);
52
53
55 virtual StatusCode initialize();
56
57
61 virtual const std::type_info& typeinfo() const;
62
63
72 virtual const void* getUntyped (bool allowMissing = false);
73
74
83 virtual const CONT* get (bool allowMissing = false);
84};
85
86
87} // namespace D3PD
88
89
91
92
93#endif // not D3PDMAKERUTILS_SGCOLLECTIONGETTERTOOL_H
Type-safe wrapper for collection getter tools.
Helpers for checking error return status codes and reporting errors.
Common object getter code for retrieving from StoreGate.
Type-safe wrapper for ICollectionGetterTool.
virtual const CONT * get(bool allowMissing=false)
Type-safe wrapper for get.
virtual const std::type_info & typeinfo() const
Return the type of object retrieved by this tool.
SGCollectionGetterTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
virtual const void * getUntyped(bool allowMissing=false)
Return the target object.
virtual StatusCode initialize()
Standard Gaudi initialize method.
SGGetterImpl(const std::string &name, ServiceHandle< StoreGateSvc > &sg)
Constructor.
Block filler tool for noisy FEB information.