|
ATLAS Offline Software
|
Go to the documentation of this file.
25 #include "GaudiKernel/ISvcLocator.h"
31 #include "AthLinks/ElementLink.h"
66 return StatusCode::SUCCESS;
113 if (testobj->
val() != 10) std::abort();
116 std::vector<SG::ReadHandle<MyDataObj> > vh =
m_dobjKeyArray.makeHandles (ctx);
117 for (
size_t i = 0;
i < vh.size();
i++) {
118 assert (vh[
i]->
val() ==
static_cast<int> (100+
i));
132 return( StatusCode::FAILURE);
167 for (
unsigned int it=0;
it<pVec->size();
it++) {
189 (
"event store claims it contains MyDataObj with FunnyNonExistingKey");
190 return( StatusCode::FAILURE);
193 (
"event store does not contain MyDataObj with FunnyNonExistingKey");
205 for (
const VecElemLink&
l : *pList) {
212 for (
const MapElemLink&
l : *vectorHandle) {
214 (
"VectorMapLinks::linked element: key " <<
l.index()
215 <<
" - value " << (*
l)
216 <<
" - stored as " <<
l);
244 return( StatusCode::FAILURE);
249 ATH_MSG_INFO (
" retrieve as BaseClass, print its address: ");
250 while(it2 != iEnd2) {
265 <<
" event: " <<
event
270 ATH_MSG_ERROR (
" Unable to retrieve EventInfo from StoreGate ");
271 return StatusCode::SUCCESS;
275 return StatusCode::SUCCESS;
283 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
SG::ReadHandleKey< std::list< ElementLink< std::vector< float > > > > m_pLinkListKey
ReadDataReentrant(const std::string &name, ISvcLocator *pSvcLocator)
std::vector< Identifier > ID
uint64_t eventNumber() const
The current event's event number.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
SG::ReadHandleKeyArray< MyDataObj > m_dobjKeyArray
A standard conforming forward iterator over items in StoreGate.
SG::ReadHandleKey< std::vector< float > > m_vFloatKey
uint32_t runNumber() const
The current event's run number.
SG::ReadHandleKey< std::vector< ElementLink< MapStringFloat > > > m_linkVectorKey
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
SG::ReadHandleKey< DataVector< MyContObj > > m_cobjKey
Testing reentrant algorithms.
virtual StatusCode initialize() override final
POOL::TEvent event(POOL::TEvent::kClassAccess)
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode finalize() override final
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
ElementLink implementation for ROOT usage.
static void hideErrorLocus(bool flag=true)
If set to true, hide the source file and line number in the output.
Helpers for checking error return status codes and reporting errors.
SG::ReadHandleKey< TestDataObject > m_testObjectKey
An STL vector of pointers that by default owns its pointed-to elements.
Handle class for modifying an existing object in StoreGate.
def time(flags, cells_name, *args, **kw)
#define ATH_MSG_WARNING(x)
Handle class for reading from StoreGate.
virtual StatusCode execute(const EventContext &ctx) const override final