12#ifndef STOREGATE_SG_READHANDLE_H
13#define STOREGATE_SG_READHANDLE_H 1
20#include "GaudiKernel/EventContext.h"
103 const EventContext& ctx);
113 const std::string& storename,
114 const EventContext& ctx);
154 const EventContext& ctx) =
delete;
297 const EventContext& ctx);
320 const EventContext& ctx);
334 const EventContext& ctx);
340#include "StoreGate/ReadHandle.icc"
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
Property holding a SG store/key/clid from which a ReadHandle is made.
Base class for VarHandle classes.
Property holding a SG store/key/clid from which a WriteHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadHandle(const ReadHandleKey< T > &key)
Constructor from a ReadHandleKey.
ReadHandle(const ReadHandleKey< T > &key, const EventContext &ctx)
Constructor from a ReadHandleKey and an explicit event context.
const xAOD::CaloClusterContainer & const_reference_type
const xAOD::CaloClusterContainer * const_pointer_type
ReadHandle & operator=(ReadHandle &&rhs)
Move operator.
xAOD::CaloClusterContainer * pointer_type
ReadHandle(const std::string &sgkey, const std::string &storename=StoreID::storeName(StoreID::EVENT_STORE))
Constructor specifying the key as a string.
ReadHandle & operator=(const ReadHandle &rhs)
Assignment operator.
ReadHandle(const ReadHandle &rhs)
Copy constructor.
xAOD::CaloClusterContainer & reference_type
ReadHandle(const std::string &sgkey, const std::string &storename, const EventContext &ctx)
Constructor specifying the key as a string, with context.
const_pointer_type ptr()
Dereference the pointer.
ReadHandle()
Default constructor.
const_pointer_type checkedCPtr()
StatusCode alias(const WriteHandleKey< xAOD::CaloClusterContainer > &key)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
ReadHandle(const std::string &sgkey, const EventContext &ctx)
Constructor specifying the key as a string, with context.
const_pointer_type operator->()
Dereference the pointer.
ReadHandle(ReadHandle &&rhs)
Move constructor.
const_reference_type operator*()
Dereference the pointer.
ReadHandle(SG::DataProxy *proxy)
Constructor from a DataProxy.
const_pointer_type cptr()
Dereference the pointer.
ReadHandle(SG::ReadHandleKey< T > &&key, const EventContext &ctx)=delete
const_pointer_type get() const
const_pointer_type cachedPtr() const
Return the cached pointer directly; no lookup.
ReadHandle(SG::ReadHandleKey< T > &&key)=delete
Base class for VarHandle types.
virtual const std::string & key() const override final
A property holding a SG store/key/clid from which a VarHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
static const std::string & storeName(const StoreID::type &s)
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())