BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IsGISAXSDetector.h
Go to the documentation of this file.
1 // ************************************************************************** //
2 //
3 // BornAgain: simulate and fit scattering at grazing incidence
4 //
5 //! @file Device/Detector/IsGISAXSDetector.h
6 //! @brief Defines class IsGISAXSDetector.
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_ISGISAXSDETECTOR_H
16 #define BORNAGAIN_CORE_DETECTOR_ISGISAXSDETECTOR_H
17 
19 
20 //! A spherical detector used for validation with IsGISAXS results.
21 //! @ingroup detector
22 
24 {
25 public:
27  IsGISAXSDetector(size_t n_phi, double phi_min, double phi_max, size_t n_alpha, double alpha_min,
28  double alpha_max);
29  IsGISAXSDetector(const IsGISAXSDetector& other);
30 
31  IsGISAXSDetector* clone() const override;
32 
33  void accept(INodeVisitor* visitor) const final { visitor->visit(this); }
34 
35 protected:
36  //! Generates an axis with correct name and default binning for given index
37  std::unique_ptr<IAxis> createAxis(size_t index, size_t n_bins, double min,
38  double max) const override;
39 
40  //! Returns index of pixel that contains the specular wavevector.
41  //! If no pixel contains this specular wavevector, the number of pixels is
42  //! returned. This corresponds to an overflow index.
43  size_t indexOfSpecular(const Beam& beam) const override;
44 };
45 
46 #endif // BORNAGAIN_CORE_DETECTOR_ISGISAXSDETECTOR_H
Defines class SphericalDetector.
Beam defined by wavelength, direction and intensity.
Definition: Beam.h:27
Visitor interface to visit ISample objects.
Definition: INodeVisitor.h:149
A spherical detector used for validation with IsGISAXS results.
std::unique_ptr< IAxis > createAxis(size_t index, size_t n_bins, double min, double max) const override
Generates an axis with correct name and default binning for given index.
void accept(INodeVisitor *visitor) const final
Calls the INodeVisitor's visit method.
IsGISAXSDetector * clone() const override
size_t indexOfSpecular(const Beam &beam) const override
Returns index of pixel that contains the specular wavevector.
A spherical detector with axes and resolution function.