66 if(siPMDigitizer && hpdDigitizer)
68 std::vector<DetId> siPMDetIds = siPMDigitizer->detIds();
69 std::sort(siPMDetIds.begin(), siPMDetIds.end());
70 std::vector<DetId> sortedCells = allCells;
71 std::sort(sortedCells.begin(), sortedCells.end());
72 std::vector<DetId> hpdCells;
73 std::set_difference(sortedCells.begin(), sortedCells.end(),
74 siPMDetIds.begin(), siPMDetIds.end(),
75 std::back_inserter(hpdCells) );
76 hpdDigitizer->setDetIds(hpdCells);
80 if(siPMDigitizer) siPMDigitizer->setDetIds(allCells);
81 if(hpdDigitizer) hpdDigitizer->setDetIds(allCells);