15 (
const std::string&
t,
const std::string&
n,
const IInterface*
p)
16 : base_class(
t,
n,
p) {}
22 for(
int ibc = 0; ibc < BC_ALL; ibc++) {
23 std::ostringstream location;
24 location <<
"TGC_Measurements"
25 << (ibc == BC_PREVIOUS ?
"PriorBC" :
"")
26 << (ibc == BC_NEXT ?
"NextBC" :
"");
27 m_3BCKeys.at(ibc) = location.str();
33 return StatusCode::SUCCESS;
38 return convertAllBCto3BC(ctx);
45 if(!tgcAll.isValid()) {
47 return StatusCode::FAILURE;
52 auto tgc3BCHandles = m_3BCKeys.makeHandles(ctx);
53 for (
int ibc = 0; ibc < BC_ALL; ibc++){
54 tgc3BCHandles.at(ibc) = std::make_unique<TgcPrepDataContainer>(m_idHelperSvc->tgcIdHelper().module_hash_max());
60 uint16_t bcBitMap = to_copy->getBcBitMap();
61 std::array<uint16_t, BC_NUM> hasBC{0};
71 std::array<Muon::TgcPrepDataCollection*, BC_ALL> collections{};
72 for (
int ibc = 0; ibc < BC_ALL; ibc++) {
73 collections[ibc] = Muon::IDC_Helper::getCollection<TgcPrepDataContainer, TgcIdHelper>
74 (elementId, tgc3BCHandles[ibc].
ptr(), m_idHelperSvc->tgcIdHelper(),
msg());
76 if (!hasBC[ibc])
continue;
79 collections[ibc]->push_back(newPrepData);
85 return StatusCode::SUCCESS;
94 const std::vector<Identifier> &identifierList = to_copy->
rdoList();
98 identifierList, newErrHitPos, descriptor);