10#ifndef STOREGATE_DATAHANDLE_H
11#define STOREGATE_DATAHANDLE_H
40template <
typename DATA>
69 std::cerr <<
"invalid proxy\n";
89 operator int()
const {
return isValid(); }
126 return h1.m_proxy == h2.
m_proxy;
133 return h1.m_proxy != h2.
m_proxy;
const APEvtWeight operator!(const APEvtWeight &a_in)
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
Helpers for retrieving the payload held by a DataProxy.
uint32_t CLID
The Class ID type.
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Header file for AthHistogramAlgorithm.
SG::DataProxy * m_proxy
the proxy holding the object we are bound to
DataHandleBase()
Default constructor:
DataHandleBase & operator=(const DataHandleBase &rhs)
Assignment operator:
const DATA * const_pointer_type
bool isValid() const
RETRIEVES the DO to check it is valid and unlocked.
virtual ~DataHandle()
unbind from the proxy before we go
std::ptrdiff_t difference_type
const_reference_type operator*() const
virtual void reset(bool) override
reset pointer
const_pointer_type operator->() const
const_pointer_type dataPointer() const
DataHandleBase::ID_type ID_type
DataHandle(const DataHandle &h)
virtual CLID clid() const override
the CLID of the object we are bound to
DataHandle(SG::DataProxy *proxy)
const DATA & const_reference_type
const_pointer_type cptr() const
safer explicit ptr accessor
DataHandle(const SG::ConstProxyIterator &itr1, const SG::ConstProxyIterator &itr2)
std::forward_iterator_tag iterator_category
ProxyMap::const_iterator ConstProxyIterator