41 {
42
43 SG::ReadHandle<TgcPrepDataContainer> tgcAll{
m_AllBCKey, ctx};
44
47 return StatusCode::FAILURE;
48 }
49
50
51 auto tgc3BCHandles =
m_3BCKeys.makeHandles(ctx);
52 for (
int ibc = 0; ibc <
BC_ALL; ibc++) {
53 tgc3BCHandles.at(ibc) = std::make_unique<TgcPrepDataContainer>(
55 }
56
58 for (const Muon::TgcPrepData* to_copy : *coll) {
59
60 uint16_t bcBitMap = to_copy->getBcBitMap();
61 std::array<uint16_t, BC_NUM> hasBC{0};
64 }
67 }
70 }
71
72 const Identifier
channelId = to_copy->identify();
73 const Identifier elementId =
75 std::array<Muon::TgcPrepDataCollection*, BC_ALL> collections{};
76 for (
int ibc = 0; ibc <
BC_ALL; ibc++) {
77 collections[ibc] =
79 TgcIdHelper>(
80 elementId, tgc3BCHandles[ibc].ptr(),
82
83 if (!hasBC[ibc]) {
84 continue;
85 }
86 Muon::TgcPrepData* newPrepData =
89 collections[ibc]->size());
90 collections[ibc]->push_back(newPrepData);
91 }
92 }
93 }
94
95 return StatusCode::SUCCESS;
96}
virtual bool isValid() override final
Can the handle be successfully dereferenced?
void setHashAndIndex(unsigned short collHash, unsigned short objIndex)
TEMP for testing: might make some classes friends later ...
MuonPrepDataCollection< TgcPrepData > TgcPrepDataCollection
MuonPrepDataContainerT< TgcPrepData > TgcPrepDataContainer