Mantid
Loading...
Searching...
No Matches
BasicHKLFilters.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
14#include "MantidGeometry/DllConfig.h"
15
16namespace Mantid {
17namespace Geometry {
18
62class MANTID_GEOMETRY_DLL HKLFilterNone final : public HKLFilter {
63public:
64 inline std::string getDescription() const noexcept override { return "Accepts all HKL values."; }
65 inline bool isAllowed(const Kernel::V3D & /*hkl*/) const noexcept override { return true; }
66};
67
79class MANTID_GEOMETRY_DLL HKLFilterDRange final : public HKLFilter {
80public:
81 HKLFilterDRange(const UnitCell &cell, double dMin);
82 HKLFilterDRange(const UnitCell &cell, double dMin, double dMax);
83
84 std::string getDescription() const noexcept override;
85 bool isAllowed(const Kernel::V3D &hkl) const noexcept override;
86
87private:
88 void checkProperDRangeValues();
89
91 double m_dmin, m_dmax;
92};
93
101class MANTID_GEOMETRY_DLL HKLFilterSpaceGroup final : public HKLFilter {
102public:
104
105 std::string getDescription() const noexcept override;
106 bool isAllowed(const Kernel::V3D &hkl) const noexcept override;
107
108protected:
110};
111
120class MANTID_GEOMETRY_DLL HKLFilterStructureFactor final : public HKLFilter {
121public:
122 HKLFilterStructureFactor(StructureFactorCalculator_sptr calculator, double fSquaredMin = 1.0e-6);
123
124 std::string getDescription() const noexcept override;
125 bool isAllowed(const Kernel::V3D &hkl) const noexcept override;
126
127protected:
130};
131
138class MANTID_GEOMETRY_DLL HKLFilterCentering final : public HKLFilter {
139public:
141
142 std::string getDescription() const noexcept override;
143 bool isAllowed(const Kernel::V3D &hkl) const noexcept override;
144
145protected:
147};
148
149} // namespace Geometry
150} // namespace Mantid
A class to filter HKLs according to a lattice centering.
ReflectionCondition_sptr m_centering
A class to filter HKLs by their d-values.
bool isAllowed(const Kernel::V3D &) const noexcept override
std::string getDescription() const noexcept override
A class to filter HKLs according to a space group.
A class to filter HKLs according to structure factor magnitudes.
StructureFactorCalculator_sptr m_calculator
Class to implement unit cell of crystals.
Definition UnitCell.h:44
Class for 3D vectors.
Definition V3D.h:34
std::shared_ptr< ReflectionCondition > ReflectionCondition_sptr
Shared pointer to a ReflectionCondition.
std::shared_ptr< StructureFactorCalculator > StructureFactorCalculator_sptr
std::shared_ptr< const SpaceGroup > SpaceGroup_const_sptr
Definition SpaceGroup.h:82
Helper class which provides the Collimation Length for SANS instruments.