Skip to content
Snippets Groups Projects
Commit 4e107928 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm unused member

parent e040b3e7
No related branches found
No related tags found
1 merge request!1142simplify ISimulation2D and IDetector, improve comments
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
#include "Device/Detector/IDetector.h" #include "Device/Detector/IDetector.h"
DetectorContext::DetectorContext(const IDetector* detector) DetectorContext::DetectorContext(const IDetector* detector)
: m_analyzer_operator(detector->analyzer().matrix()) : m_active_indices(detector->active_indices())
, m_active_indices(detector->active_indices())
{ {
m_pixels.reserve(m_active_indices.size()); m_pixels.reserve(m_active_indices.size());
for (auto detector_index : m_active_indices) for (auto detector_index : m_active_indices)
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#ifndef BORNAGAIN_DEVICE_DETECTOR_DETECTORCONTEXT_H #ifndef BORNAGAIN_DEVICE_DETECTOR_DETECTORCONTEXT_H
#define BORNAGAIN_DEVICE_DETECTOR_DETECTORCONTEXT_H #define BORNAGAIN_DEVICE_DETECTOR_DETECTORCONTEXT_H
#include "Base/Spin/SpinMatrix.h"
#include "Base/Types/OwningVector.h" #include "Base/Types/OwningVector.h"
#include <memory> #include <memory>
#include <vector> #include <vector>
...@@ -40,7 +39,6 @@ public: ...@@ -40,7 +39,6 @@ public:
size_t detectorIndex(size_t element_index) const; size_t detectorIndex(size_t element_index) const;
private: private:
const SpinMatrix m_analyzer_operator;
const std::vector<size_t> m_active_indices; //! The sequence of bin indices (unmasked, in ROI) const std::vector<size_t> m_active_indices; //! The sequence of bin indices (unmasked, in ROI)
OwningVector<const IPixel> m_pixels; //! All unmasked pixels inside ROI. OwningVector<const IPixel> m_pixels; //! All unmasked pixels inside ROI.
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment