|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   10 #include "GaudiKernel/ServiceHandle.h" 
   12 #include "GaudiKernel/EventIDBase.h" 
   13 #include "GaudiKernel/EventIDRange.h" 
   18             ISvcLocator* pSvcLocator ) : 
 
   33   return StatusCode::SUCCESS;
 
   38   const EventContext& ctx = Gaudi::Hive::currentContext();
 
   43     return StatusCode::FAILURE;
 
   47                 << 
" e: " << 
evt->eventNumber() );
 
   50   EventIDBase 
now(ctx.eventID());
 
   51   if (
evt->eventNumber() == 10) {
 
   52       std::this_thread::sleep_for(std::chrono::milliseconds( 500 ));
 
   59           << 
". In theory this should not be called, but may happen" 
   60           << 
" if multiple concurrent events are being processed out of order.");
 
   61     return StatusCode::SUCCESS;
 
   66         << 
" not valid. Getting new info for dbKey \""  
   67         << wch.
dbKey() << 
"\" from CondDb");
 
   71   if (
m_cds->getRange(wch.
dbKey(), getContext(), 
r, 
val).isFailure()) {
 
   73           << 
"\" in CondSvc registry");
 
   74     return StatusCode::FAILURE;
 
   78   if (wch.
record(
r, cdo).isFailure()) {
 
   81           << 
" with EventRange " << 
r);
 
   82     return StatusCode::FAILURE;
 
   86            << 
" with range " << 
r);
 
   88   return StatusCode::SUCCESS;
 
  
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_dbKey
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
ServiceHandle< IASCIICondDbSvc > m_cds
::StatusCode StatusCode
StatusCode definition for legacy code.
const std::string & dbKey() const
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
const std::string & key() const
CondAlgX(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize(bool used=true)
SG::ReadHandleKey< xAOD::EventInfo > m_evt
SG::WriteCondHandleKey< CondDataObj > m_wchk
void setDbKey(const std::string &dbKey)
virtual StatusCode execute() override