![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/ISvcLocator.h"
20 #include "AthLinks/ElementLink.h"
112 return (StatusCode::FAILURE);
138 return( StatusCode::FAILURE);
166 return( StatusCode::FAILURE);
168 ATH_MSG_INFO (
"Retrieved DataVector of MyContObj using a const pointer");
181 const std::vector<float>* pVec;
185 return( StatusCode::FAILURE);
188 for (
unsigned int it=0;
it<pVec->size();
it++) {
206 if (
evtStore()->contains<MyDataObj>(
"FunnyNonExistingKey")) {
208 (
"event store claims it contains MyDataObj with FunnyNonExistingKey");
209 return( StatusCode::FAILURE);
212 (
"event store does not contain MyDataObj with FunnyNonExistingKey");
223 const std::list<VecElemLink>* pList =
nullptr;
227 return( StatusCode::FAILURE);
231 std::list<VecElemLink>::const_iterator itL= pList->begin();
232 std::list<VecElemLink>::const_iterator endL= pList->end();
235 ATH_MSG_INFO (
"ListVecLinks::linked element " << **itL);
242 const std::vector<MapElemLink>* vectorHandle;
246 return( StatusCode::FAILURE);
250 std::vector<MapElemLink>::const_iterator itV= vectorHandle->begin();
251 std::vector<MapElemLink>::const_iterator endV= vectorHandle->end();
254 (
"VectorMapLinks::linked element: key " << itV->index()
255 <<
" - value " << (**itV)
256 <<
" - stored as " << *itV);
284 return( StatusCode::FAILURE);
289 ATH_MSG_INFO (
" retrieve as BaseClass, print its address: ");
290 while(it2 != iEnd2) {
303 <<
" event: " <<
event
308 ATH_MSG_ERROR (
" Unable to retrieve EventInfo from StoreGate ");
309 return StatusCode::SUCCESS;
312 return StatusCode::SUCCESS;
320 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
Const iterator class for DataVector/DataList.
std::vector< Identifier > ID
uint64_t eventNumber() const
The current event's event number.
This file contains the class definition for the ReadData class.
ReadData(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StatusCode assign(const std::string &sgkey)
Update the underlying key from a string.
std::string m_DataProducer
A standard conforming forward iterator over items in StoreGate.
uint32_t runNumber() const
The current event's run number.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
POOL::TEvent event(POOL::TEvent::kClassAccess)
::StatusCode StatusCode
StatusCode definition for legacy code.
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.
SG::ReadHandle< MyDataObj > m_dobj3
An STL vector of pointers that by default owns its pointed-to elements.
def time(flags, cells_name, *args, **kw)
#define ATH_MSG_WARNING(x)
StatusCode initialize(bool used=true)
Verify that the handle has been configured properly.