23 const EventContext& ctx)
const {
27 CHECK(h_caloCells.isValid());
29 const auto & allCaloCells = *h_caloCells;
34 ATH_MSG_ERROR(
"CaloCellCollection does not contain LAREM cells");
35 return StatusCode::FAILURE;
38 std::vector<const CaloCell*>
45 calocell_id->calo_sample(calocell_id->calo_cell_hash(cell->ID())) ==
46 CaloCell_Base_ID::EMB1;
50 std::vector<const CaloCell*> emb1_cells;
51 std::copy_if(laremCells.cbegin(),
53 std::back_inserter(emb1_cells),
56 cells.push_back(std::move(emb1_cells));
58 return StatusCode::SUCCESS;