19 ISvcLocator* pSvcLocator)
28 return StatusCode::SUCCESS;
33 if (not rdoContainer.
isValid())
return StatusCode::SUCCESS;
36 nRDOs += collection->size();
41 ATH_CHECK(xaod.
record(std::make_unique<xAOD::SCTRawHitValidationContainer>(),
42 std::make_unique<xAOD::SCTRawHitValidationAuxContainer>()));
50 xaod->push_back(xrdo);
63 ATH_MSG_DEBUG(
" recorded SCT_RawData objects: size " << xaod->size());
64 return StatusCode::SUCCESS;
68 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
This is an Identifier helper class for the SCT subdetector.
InDetRawDataCollection< SCT_RDORawData > SCT_RDO_Collection
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
const ServiceHandle< StoreGateSvc > & detStore() const
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< SCT_RDO_Container > m_rdoContainerName
SG::WriteHandleKey< xAOD::SCTRawHitValidationContainer > m_xAodRawHitContainerName
virtual StatusCode finalize() override
SCT_RawDataToxAOD(const std::string &name, ISvcLocator *pSvcLocator)
const SCT_ID * m_SCTHelper
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
void setSide(int new_side)
set side of this RDO
void setBec(int new_bec)
set bec of this RDO
void setEta_module(int new_eta_module)
set eta_module of this RDO
void setWord(uint32_t new_word)
set data word of this RDO
void setLayer(int new_layer)
set layer of this RDO
void setPhi_module(int new_phi_module)
set phi_module of this RDO
void setIdentifier(uint64_t new_identifier)
set identifier of this RDO
SCTRawHitValidation_v1 SCTRawHitValidation
Reference the current persistent version: