BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IDetectorResolution.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Device/Resolution/IDetectorResolution.h
6 //! @brief Defines class IDetectorResolution.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************** //
14 
15 #ifndef BORNAGAIN_CORE_DETECTOR_IDETECTORRESOLUTION_H
16 #define BORNAGAIN_CORE_DETECTOR_IDETECTORRESOLUTION_H
17 
18 #include "Base/Types/ICloneable.h"
19 #include "Device/Data/OutputData.h"
20 #include "Param/Node/INode.h"
21 
22 //! Interface for detector resolution algorithms
23 //! @ingroup algorithms_internal
24 
25 class IDetectorResolution : public ICloneable, public INode
26 {
27 public:
28  virtual ~IDetectorResolution() {}
29  //! Apply the resolution function to the intensity data
30  virtual void applyDetectorResolution(OutputData<double>* p_intensity_map) const = 0;
31 #ifndef SWIG
32  //! Applies the detector resolution to the matrix-valued intensity data
34 #endif
35  virtual IDetectorResolution* clone() const = 0;
36 };
37 
38 #endif // BORNAGAIN_CORE_DETECTOR_IDETECTORRESOLUTION_H
Defines and implements the standard mix-in ICloneable.
Defines class INode.
Defines and implements template class OutputData.
Interface for polymorphic classes that should not be copied, except by explicit cloning.
Definition: ICloneable.h:25
Interface for detector resolution algorithms.
void applyDetectorResolutionPol(OutputData< Eigen::Matrix2d > *p_matrix_intensity) const
Applies the detector resolution to the matrix-valued intensity data.
virtual IDetectorResolution * clone() const =0
virtual void applyDetectorResolution(OutputData< double > *p_intensity_map) const =0
Apply the resolution function to the intensity data.
Base class for tree-like structures containing parameterized objects.
Definition: INode.h:49