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