Mantid
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Mantid::Algorithms::PDCalibration::FittedPeaks Class Reference

private inner class More...

Public Member Functions

 FittedPeaks (const API::MatrixWorkspace_const_sptr &wksp, const std::size_t wkspIndex)
 Find the bins with non-zero counts and with minimum and maximum TOF. More...
 
void setPositions (const std::vector< double > &peaksInD, const std::vector< double > &peaksInDWindows, const double difa, const double difc, const double tzero)
 Store the positions of the peak centers, as well as the left and right fit ranges for each peak, in TOF units. More...
 

Public Attributes

std::set< detid_t > detid
 
std::vector< double > inDPos
 
std::vector< double > inTofPos
 
std::vector< double > inTofWindows
 
double tofMax
 
double tofMin
 
std::size_t wkspIndex
 

Detailed Description

private inner class

Definition at line 74 of file PDCalibration.cpp.

Constructor & Destructor Documentation

◆ FittedPeaks()

Mantid::Algorithms::PDCalibration::FittedPeaks::FittedPeaks ( const API::MatrixWorkspace_const_sptr wksp,
const std::size_t  wkspIndex 
)
inline

Find the bins with non-zero counts and with minimum and maximum TOF.

Parameters
wksp:: Input signal workspace
wkspIndex:: workspace index
Exceptions
runtime_error:: more than one detector is associated to the workspace index

Definition at line 85 of file PDCalibration.cpp.

References detid, tofMax, tofMin, wkspIndex, Mantid::Geometry::X, and Mantid::Geometry::Y.

Member Function Documentation

◆ setPositions()

void Mantid::Algorithms::PDCalibration::FittedPeaks::setPositions ( const std::vector< double > &  peaksInD,
const std::vector< double > &  peaksInDWindows,
const double  difa,
const double  difc,
const double  tzero 
)
inline

Store the positions of the peak centers, as well as the left and right fit ranges for each peak, in TOF units.

Parameters
peaksInD:: peak centers, in d-spacing
peaksInDWindows:: left and right fit ranges for each peak
difa:: difa diffractometer constant (quadratic term)
difc:: difc diffractometer constant (linear term)
tzero:: tzero diffractometer constant (constant term)

Definition at line 126 of file PDCalibration.cpp.

References Mantid::Kernel::difa, Mantid::Kernel::difc, inDPos, inTofPos, inTofWindows, Mantid::Kernel::Unit::toTOF(), and Mantid::Kernel::tzero.

Referenced by Mantid::Algorithms::PDCalibration::exec().

Member Data Documentation

◆ detid

std::set<detid_t> Mantid::Algorithms::PDCalibration::FittedPeaks::detid

Definition at line 150 of file PDCalibration.cpp.

Referenced by Mantid::Algorithms::PDCalibration::exec(), and FittedPeaks().

◆ inDPos

std::vector<double> Mantid::Algorithms::PDCalibration::FittedPeaks::inDPos

Definition at line 156 of file PDCalibration.cpp.

Referenced by setPositions().

◆ inTofPos

std::vector<double> Mantid::Algorithms::PDCalibration::FittedPeaks::inTofPos

Definition at line 153 of file PDCalibration.cpp.

Referenced by setPositions().

◆ inTofWindows

std::vector<double> Mantid::Algorithms::PDCalibration::FittedPeaks::inTofWindows

Definition at line 155 of file PDCalibration.cpp.

Referenced by Mantid::Algorithms::PDCalibration::exec(), and setPositions().

◆ tofMax

double Mantid::Algorithms::PDCalibration::FittedPeaks::tofMax

Definition at line 152 of file PDCalibration.cpp.

Referenced by FittedPeaks().

◆ tofMin

double Mantid::Algorithms::PDCalibration::FittedPeaks::tofMin

Definition at line 151 of file PDCalibration.cpp.

Referenced by FittedPeaks().

◆ wkspIndex

std::size_t Mantid::Algorithms::PDCalibration::FittedPeaks::wkspIndex

Definition at line 149 of file PDCalibration.cpp.

Referenced by FittedPeaks().


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