Mantid
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection Class Reference

This class computes all possible unique reflections within the specified d-limits, given a certain unit cell, lattice centering and point group. More...

#include <PeakStatisticsTools.h>

Public Member Functions

void addObservations (const std::vector< DataObjects::Peak > &peaks)
 Assigns the supplied peaks to the proper UniqueReflection. More...
 
size_t getObservedReflectionCount () const
 Number of observed reflections. More...
 
size_t getObservedUniqueReflectionCount (size_t moreThan=0) const
 Number of unique reflections that have more observations than the supplied number (default is 0 - gives number of ). More...
 
UniqueReflection getReflection (const Kernel::V3D &hkl) const
 Returns a copy of the UniqueReflection with the supplied HKL. More...
 
const std::map< Kernel::V3D, UniqueReflection > & getReflections () const
 Returns the internally stored reflection map. More...
 
size_t getUniqueReflectionCount () const
 Total number of unique reflections (theoretically possible). More...
 
std::vector< Kernel::V3DgetUnobservedUniqueReflections () const
 List of unobserved unique reflections in resolution range. More...
 
 UniqueReflectionCollection (const Geometry::UnitCell &cell, const std::pair< double, double > &dLimits, Geometry::PointGroup_sptr pointGroup, const Geometry::ReflectionCondition_sptr &centering)
 UniqueReflectionCollection::UniqueReflectionCollection. More...
 
 ~UniqueReflectionCollection ()=default
 

Protected Member Functions

 UniqueReflectionCollection (const std::map< Kernel::V3D, UniqueReflection > &reflections, const Geometry::PointGroup_sptr &pointGroup)
 Alternative constructor for testing purposes, no validation is performed. More...
 

Private Attributes

Geometry::PointGroup_sptr m_pointgroup
 
std::map< Kernel::V3D, UniqueReflectionm_reflections
 

Detailed Description

This class computes all possible unique reflections within the specified d-limits, given a certain unit cell, lattice centering and point group.

The cost of this computation depends directly on the size of the unit cell (larger cells result in more reflections) and to some extent also on the symmetry (higher symmetry results in more matrix operations).

After adding observations using addObservations, various reflection- counts can be obtained, for example to calculate redundancy or completeness of the observations.

Definition at line 70 of file PeakStatisticsTools.h.

Constructor & Destructor Documentation

◆ UniqueReflectionCollection() [1/2]

Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::UniqueReflectionCollection ( const Geometry::UnitCell cell,
const std::pair< double, double > &  dLimits,
Geometry::PointGroup_sptr  pointGroup,
const Geometry::ReflectionCondition_sptr centering 
)

UniqueReflectionCollection::UniqueReflectionCollection.

Takes the supplied parameters to calculate theoretically possible unique reflections and stores a UniqueReflection for each of those internally.

Parameters
cell:: UnitCell of the sample.
dLimits:: Resolution limits for the generated reflections.
pointGroup:: Point group of the sample.
centering:: Lattice centering.

Definition at line 113 of file PeakStatisticsTools.cpp.

References m_pointgroup, and m_reflections.

◆ ~UniqueReflectionCollection()

Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::~UniqueReflectionCollection ( )
default

◆ UniqueReflectionCollection() [2/2]

Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::UniqueReflectionCollection ( const std::map< Kernel::V3D, UniqueReflection > &  reflections,
const Geometry::PointGroup_sptr pointGroup 
)
inlineprotected

Alternative constructor for testing purposes, no validation is performed.

Definition at line 90 of file PeakStatisticsTools.h.

Member Function Documentation

◆ addObservations()

void Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::addObservations ( const std::vector< DataObjects::Peak > &  peaks)

Assigns the supplied peaks to the proper UniqueReflection.

Peaks for which the reflection family can not be found are ignored.

Definition at line 133 of file PeakStatisticsTools.cpp.

References m_pointgroup, m_reflections, and Mantid::Kernel::V3D::round().

Referenced by Mantid::Crystal::CountReflections::exec(), and Mantid::Crystal::SortHKL::getUniqueReflections().

◆ getObservedReflectionCount()

size_t Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::getObservedReflectionCount ( ) const

◆ getObservedUniqueReflectionCount()

size_t Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::getObservedUniqueReflectionCount ( size_t  moreThan = 0) const

Number of unique reflections that have more observations than the supplied number (default is 0 - gives number of ).

Definition at line 157 of file PeakStatisticsTools.cpp.

References m_reflections.

Referenced by Mantid::Crystal::CountReflections::exec().

◆ getReflection()

UniqueReflection Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::getReflection ( const Kernel::V3D hkl) const

Returns a copy of the UniqueReflection with the supplied HKL.

Raises an exception if the reflection is not found.

Definition at line 148 of file PeakStatisticsTools.cpp.

References m_pointgroup, and m_reflections.

◆ getReflections()

const std::map< V3D, UniqueReflection > & Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::getReflections ( ) const

Returns the internally stored reflection map.

May disappear or change if implementation changes.

Definition at line 187 of file PeakStatisticsTools.cpp.

References m_reflections.

Referenced by Mantid::Crystal::SortHKL::exec(), and Mantid::Crystal::PeakStatisticsTools::PeaksStatistics::PeaksStatistics().

◆ getUniqueReflectionCount()

size_t Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::getUniqueReflectionCount ( ) const

Total number of unique reflections (theoretically possible).

Definition at line 153 of file PeakStatisticsTools.cpp.

References m_reflections.

Referenced by Mantid::Crystal::CountReflections::exec().

◆ getUnobservedUniqueReflections()

std::vector< V3D > Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::getUnobservedUniqueReflections ( ) const

List of unobserved unique reflections in resolution range.

Definition at line 164 of file PeakStatisticsTools.cpp.

References m_reflections.

Referenced by Mantid::Crystal::CountReflections::getPeaksWorkspace().

Member Data Documentation

◆ m_pointgroup

Geometry::PointGroup_sptr Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::m_pointgroup
private

◆ m_reflections

std::map<Kernel::V3D, UniqueReflection> Mantid::Crystal::PeakStatisticsTools::UniqueReflectionCollection::m_reflections
private

The documentation for this class was generated from the following files: