23 {
24
25 ROBFragmentList fragments;
26 std::vector<uint32_t> robIDs;
27
28
29
30 for (uint32_t detectorID : {eformat::MUON_STGC_ENDCAP_A_SIDE, eformat::MUON_STGC_ENDCAP_C_SIDE}) {
31 for (uint8_t sector{}; sector < 16; sector++) {
32 uint16_t moduleID = (0x1 << 4) | sector;
33 eformat::helper::SourceIdentifier sourceID{static_cast<eformat::SubDetector>(detectorID), moduleID};
34 robIDs.push_back(sourceID.simple_code());
35 }
36 }
37
39 ATH_MSG_DEBUG(__PRETTY_FUNCTION__ <<
": Got " << fragments.size() <<
" fragments");
40 SG::WriteHandle<xAOD::NSWTPRDOContainer> rdoContainerHandle{
m_rdoContainerKey, ctx};
42
43
44
45 ATH_CHECK(rdoContainerHandle.
record(std::make_unique<xAOD::NSWTPRDOContainer>(), std::make_unique<xAOD::NSWTPRDOAuxContainer>()));
46 pContainer = rdoContainerHandle.
ptr();
47 for (const auto *const fragment : fragments) {
48
50 }
51 return StatusCode::SUCCESS;
52}
#define ATH_CHECK
Evaluate an expression and check for errors.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
NSWTPRDOContainer_v1 NSWTPRDOContainer
Define the version of the NRPC RDO container.