BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
IDetectorResolution.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Device/Resolution/IDetectorResolution.h
6 //! @brief Defines interface 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_DEVICE_RESOLUTION_IDETECTORRESOLUTION_H
16 #define BORNAGAIN_DEVICE_RESOLUTION_IDETECTORRESOLUTION_H
17 
18 #include "Base/Types/ICloneable.h"
19 #include "Device/Data/Datafield.h"
20 #include "Param/Node/INode.h"
21 
22 //! Interface for detector resolution algorithms
23 
24 class IDetectorResolution : public ICloneable, public INode {
25 public:
26  ~IDetectorResolution() override = default;
27  IDetectorResolution* clone() const override = 0;
28 
29  //! Apply the resolution function to the intensity data
30  virtual void applyDetectorResolution(Datafield* p_intensity_map) const = 0;
31 };
32 
33 #endif // BORNAGAIN_DEVICE_RESOLUTION_IDETECTORRESOLUTION_H
Defines and implements templated class Datafield.
Defines and implements the standard mix-in ICloneable.
Defines interface INode.
Stores radiation power per bin.
Definition: Datafield.h:30
Interface for polymorphic classes that should not be copied, except by explicit cloning.
Definition: ICloneable.h:23
Interface for detector resolution algorithms.
~IDetectorResolution() override=default
IDetectorResolution * clone() const override=0
virtual void applyDetectorResolution(Datafield *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:40