36 : m_xAxis(xAxis.clone())
37 , m_yAxis(yAxis.clone())
38 , m_masked(xAxis.size() * yAxis.size(), false)
45 : m_xAxis(other.m_xAxis->clone())
46 , m_yAxis(other.m_yAxis->clone())
47 , m_stack(other.m_stack)
48 , m_masked(other.m_masked)
49 , m_number_of_masked_channels(other.m_number_of_masked_channels)
99 for (
size_t i_flat = 0; i_flat <
m_masked.size(); ++i_flat) {
103 bool is_masked(
false);
Defines structs Bin1D, Bin1DCVector.
Defines and implements templated class Datafield.
Defines class DetectorMask.
Defines basic class for all 2D shapes.
Collection of detector masks.
const MaskPattern * patternAt(size_t iMask) const
int m_number_of_masked_channels
bool isMasked(size_t index) const
bool hasMasks() const
Returns true if has masks.
size_t numberOfMasks() const
DetectorMask(const IAxis &xAxis, const IAxis &yAxis)
DetectorMask & operator=(const DetectorMask &other)
OwningVector< MaskPattern > m_stack
std::vector< bool > m_masked
void addMask(const IShape2D &shape, bool mask_value)
Add mask to the stack of detector masks. The value "true" means that the area will be excluded from t...
Abstract base class for one-dimensional axes.
virtual Bin1D bin(size_t index) const =0
retrieve a 1d bin for the given index
virtual size_t size() const =0
Returns the number of bins.
Basic class for all shapes in 2D.
IShape2D * clone() const override=0
virtual bool contains(double x, double y) const =0
Returns true if point with given coordinates is inside or on border of the shape.
MaskPattern(IShape2D *shape_, bool doMask_)
MaskPattern * clone() const
T *const & at(int i) const