ATLAS Offline Software
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$
16 #ifndef D3PDMAKERUTILS_SGCOLLECTIONGETTERTOOL_H
17 #define D3PDMAKERUTILS_SGCOLLECTIONGETTERTOOL_H
18 
19 
23 
24 
25 namespace D3PD {
26 
27 
38 template <class CONT>
40  : public SGGetterImpl, public CollectionGetterTool<CONT>
41 {
42 public:
49  SGCollectionGetterTool (const std::string& type,
50  const std::string& name,
51  const IInterface* parent);
52 
53 
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
D3PD::SGCollectionGetterTool::typeinfo
virtual const std::type_info & typeinfo() const
Return the type of object retrieved by this tool.
SGCollectionGetterTool.icc
D3PD::SGCollectionGetterTool
Collection getter tool retrieving a container from StoreGate.
Definition: SGCollectionGetterTool.h:41
D3PD::CollectionGetterTool
Type-safe wrapper for ICollectionGetterTool.
Definition: CollectionGetterTool.h:40
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::SGCollectionGetterTool::initialize
virtual StatusCode initialize()
Standard Gaudi initialize method.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
D3PD::SGCollectionGetterTool::getUntyped
virtual const void * getUntyped(bool allowMissing=false)
Return the target object.
errorcheck.h
Helpers for checking error return status codes and reporting errors.
CollectionGetterTool.h
Type-safe wrapper for collection getter tools.
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::SGCollectionGetterTool::get
virtual const CONT * get(bool allowMissing=false)
Type-safe wrapper for get.
SGGetterImpl.h
Common object getter code for retrieving from StoreGate.
D3PD::SGCollectionGetterTool::SGCollectionGetterTool
SGCollectionGetterTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
D3PD::SGGetterImpl
Common object getter code for retrieving from StoreGate.
Definition: SGGetterImpl.h:52