Skip to content
Snippets Groups Projects
Commit 8cd4b6a4 authored by Matthias Puchner's avatar Matthias Puchner
Browse files

replace direct usage of SimulationArea by iterateOver()

parent b3b8d47d
No related branches found
No related tags found
1 merge request!79Refactor for removing RegionOfInterest
......@@ -17,7 +17,6 @@
#include "Base/Pixel/SimulationElement.h"
#include "Device/Beam/Beam.h"
#include "Device/Detector/DetectorContext.h"
#include "Device/Detector/SimulationArea.h"
#include "Device/Mask/InfinitePlane.h"
#include "Device/ProDetector/RegionOfInterest.h"
......@@ -60,9 +59,9 @@ void IDetector2D::resetRegionOfInterest()
std::vector<size_t> IDetector2D::active_indices() const
{
std::vector<size_t> result;
SimulationArea area(this);
for (SimulationArea::iterator it = area.begin(); it != area.end(); ++it)
result.push_back(it.detectorIndex());
iterateOverNonMaskedPoints([&](const_iterator it) { result.push_back(it.detectorIndex()); });
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment