BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
Instrument.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Model/Device/Instrument.cpp
6 //! @brief Implements class Instrument.
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 
16 #include "Device/Beam/Beam.h"
17 #include "Device/Detector/IDetector.h"
18 
19 Instrument::Instrument(const Beam& beam, const IDetector& detector)
20  : m_beam(beam.clone()) // TODO take ownership of pointer arg instead of cloning
21  , m_detector(detector.clone())
22 {
23 }
24 
25 Instrument::~Instrument() = default;
Defines class Instrument.
Instrument(const Beam &beam, const IDetector &detector)
Definition: Instrument.cpp:19