|
ATLAS Offline Software
|
Go to the documentation of this file.
21 #include "Identifier/Identifier.h"
26 #include "GaudiKernel/EventIDRange.h"
46 return StatusCode::FAILURE;
54 return StatusCode::SUCCESS;
65 <<
". In theory this should not be called, but may happen"
66 <<
" if multiple concurrent events are being processed out of order.");
67 return StatusCode::SUCCESS;
71 std::unique_ptr<ITkPixelCablingData> pCabling = std::make_unique<ITkPixelCablingData>();
75 return StatusCode::FAILURE;
78 const int numEntries = pCabling->
size();
79 ATH_MSG_DEBUG(numEntries <<
" entries were made to the identifier map.");
82 const EventIDBase
start{EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, 0, 0, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
83 const EventIDBase
stop{EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, EventIDBase::UNDEFNUM-1, EventIDBase::UNDEFNUM-1, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
85 if (writeHandle.
record(rangeW, std::move(pCabling)).isFailure()) {
87 <<
" with EventRange " << rangeW
88 <<
" into Conditions Store");
89 return StatusCode::FAILURE;
91 ATH_MSG_VERBOSE(
"recorded new conditions data object " << writeHandle.
key() <<
" with range " << rangeW <<
" into Conditions Store");
92 return (numEntries==0) ? (StatusCode::FAILURE) : (StatusCode::SUCCESS);
def retrieve(aClass, aKey=None)
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
#define ATH_MSG_VERBOSE(x)
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
virtual StatusCode initialize() override
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
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())
Fills an ITkPixelCablingData object and records it in Storegate.
const DataObjID & fullKey() const
::StatusCode StatusCode
StatusCode definition for legacy code.
const PixelID * m_idHelper
const std::string & key() const
StatusCode initialize(bool used=true)
ITkPixelCablingAlg(const std::string &name, ISvcLocator *svc)
SG::WriteCondHandleKey< ITkPixelCablingData > m_writeKey
virtual StatusCode execute(const EventContext &ctx) const override