14#ifndef ASG_DATA_HANDLES_READ_HANDLE_H
15#define ASG_DATA_HANDLES_READ_HANDLE_H
18#ifndef XAOD_STANDALONE
39 :
public SG::VarHandleBase
89 explicit ReadHandle (
const ReadHandleKey<T>&
key,
const EventContext& ctx);
167 explicit ReadHandle (
const VarHandleKey&
key,
const EventContext* ctx);
208 const EventContext& ctx);
231 const EventContext& ctx);
Handle class for reading from StoreGate.
virtual const std::string & key() const =0
Property holding a SG store/key/clid from which a ReadHandle is made.
const T & const_reference_type
const T * const_pointer_type
const_pointer_type ptr()
Dereference the pointer.
ReadHandle()
Default constructor.
const_pointer_type checkedCPtr()
Helper: dereference the pointer.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type operator->()
Dereference the pointer.
const_reference_type operator*()
Dereference the pointer.
const_pointer_type cptr()
Dereference the pointer.
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
bool isPresent_impl(const std::string &key) const
Is the referenced object present in SG?
bool isPresent() const
Is the referenced object present in SG?
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())