|
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<ITkStripCablingData> pCabling = std::make_unique<ITkStripCablingData>();
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 SCT subdetector. This class is a factory for creating comp...
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
ITkStripCablingAlg(const std::string &name, ISvcLocator *svc)
virtual StatusCode initialize() override
#define ATH_MSG_VERBOSE(x)
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
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())
const DataObjID & fullKey() const
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::WriteCondHandleKey< ITkStripCablingData > m_writeKey
const SCT_ID * m_idHelper
virtual StatusCode execute(const EventContext &ctx) const override
const std::string & key() const
StatusCode initialize(bool used=true)
Fills an ITkStripCablingData object and records it in Storegate (based on ITkPixelCabling package)