Holds precalculated information for faster DiffuseElement generation.
size_t numberOfElements() const
DetectorContext & operator=(const DetectorContext &other)=delete
void setup_context(const IDetector *detector)
std::vector< size_t > m_active_indices
All unmasked pixels inside ROI.
DetectorContext(const IDetector *detector)
size_t detectorIndex(size_t element_index) const
std::vector< std::unique_ptr< IPixel > > m_pixels
std::unique_ptr< IPixel > createPixel(size_t element_index) const
Creates pixel for given element index. Element index is sequential index in a vector of DiffuseElemen...
DetectorContext(const DetectorContext &other)=delete
SpinMatrix m_analyzer_operator