|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #ifndef ASG_DATA_HANDLES_READ_HANDLE_H
15 #define ASG_DATA_HANDLES_READ_HANDLE_H
18 #ifndef XAOD_STANDALONE
28 template <
class T>
class ReadHandleKey;
89 explicit ReadHandle (
const ReadHandleKey<T>&
key,
const EventContext& ctx);
167 explicit ReadHandle (
const VarHandleKey&
key,
const EventContext* ctx);
208 const EventContext& ctx);
218 const T*
get (
const ReadHandleKey<T>&
key);
230 const T*
get (
const ReadHandleKey<T>&
key,
231 const EventContext& ctx);
242 #endif //> !STOREGATE_SG_READHANDLE_H
const_pointer_type checkedCPtr()
Helper: dereference the pointer.
const_pointer_type cptr()
Dereference the pointer.
Base class for VarHandle types.
const_reference_type operator*()
Dereference the pointer.
a smart pointer to an object of a given type in an IProxyDict (such as StoreGateSvc)....
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
const_pointer_type operator->()
Dereference the pointer.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
bool isPresent_impl(const std::string &key) const
Is the referenced object present in SG?
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
const_pointer_type ptr()
Dereference the pointer.
const T * const_pointer_type
const T & const_reference_type
bool isPresent() const
Is the referenced object present in SG?
Handle class for reading from StoreGate.
const T * get(const ReadHandleKey< T > &key)
Convenience function to retrieve an object given a ReadHandleKey.
ReadHandle()
Default constructor.