12#ifndef STOREGATE_SG_READHANDLE_H
13#define STOREGATE_SG_READHANDLE_H 1
20#include "GaudiKernel/EventContext.h"
101 explicit ReadHandle(
const std::string& sgkey,
const EventContext& ctx);
119 const std::string& storename,
120 const EventContext& ctx);
160 const EventContext& ctx) =
delete;
303 const EventContext& ctx);
326 const EventContext& ctx);
340 const EventContext& ctx);
346#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
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.
ReadHandle(const std::string &sgkey, IProxyDict *sg)
Constructor specifying the key as a string, with data store.
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.
ReadHandle(ReadHandle &&rhs) noexcept
Move constructor.
ReadHandle & operator=(ReadHandle &&rhs) noexcept
Move operator.
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.
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())