Define DetectorContext class.
size_t numberOfElements() const
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...
SpinMatrix m_analyzer_operator