Skip to content
Snippets Groups Projects
Commit 5400dce1 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Renamed DWBA formfactor test to IsGISAXS3 test

parent be3d0a75
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ SOURCES += \ ...@@ -11,7 +11,7 @@ SOURCES += \
src/DrawHelper.cpp \ src/DrawHelper.cpp \
src/TestFormFactor.cpp \ src/TestFormFactor.cpp \
src/TestRoughness.cpp \ src/TestRoughness.cpp \
src/TestDWBAFormFactor.cpp \ src/TestIsGISAXS3.cpp \
src/SampleFactory.cpp \ src/SampleFactory.cpp \
src/StandardSamples.cpp \ src/StandardSamples.cpp \
src/CommandLine.cpp \ src/CommandLine.cpp \
...@@ -28,7 +28,7 @@ HEADERS += \ ...@@ -28,7 +28,7 @@ HEADERS += \
inc/AppLinkDef.h \ inc/AppLinkDef.h \
inc/TestFormFactor.h \ inc/TestFormFactor.h \
inc/TestRoughness.h \ inc/TestRoughness.h \
inc/TestDWBAFormFactor.h \ inc/TestIsGISAXS3.h \
inc/SampleFactory.h \ inc/SampleFactory.h \
inc/StandardSamples.h \ inc/StandardSamples.h \
inc/CommandLine.h \ inc/CommandLine.h \
......
#ifndef TESTDWBAFORMFACTOR_H_ #ifndef TESTISGISAXS3_H_
#define TESTDWBAFORMFACTOR_H_ #define TESTISGISAXS3_H_
// ******************************************************************** // ********************************************************************
// * The BornAgain project * // * The BornAgain project *
// * Simulation of neutron and x-ray scattering at grazing incidence * // * Simulation of neutron and x-ray scattering at grazing incidence *
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
// * eget quam orci. Quisque porta varius dui, quis posuere nibh * // * eget quam orci. Quisque porta varius dui, quis posuere nibh *
// * mollis quis. Mauris commodo rhoncus porttitor. * // * mollis quis. Mauris commodo rhoncus porttitor. *
// ******************************************************************** // ********************************************************************
//! @file TestDWBAFormFactor.h //! @file TestIsGISAXS3.h
//! @brief Definition of TestDWBAFormFactor class for formfactor validation //! @brief Definition of TestIsGISAXS3 class for IsGISAXS validation
//! @author herk //! @author herk
//! @date 02.05.2012 //! @date 02.05.2012
...@@ -20,11 +20,11 @@ ...@@ -20,11 +20,11 @@
#include "DWBAFormFactor.h" #include "DWBAFormFactor.h"
class TestDWBAFormFactor : public IFunctionalTest class TestIsGISAXS3 : public IFunctionalTest
{ {
public: public:
TestDWBAFormFactor(); TestIsGISAXS3();
virtual ~TestDWBAFormFactor(); virtual ~TestIsGISAXS3();
virtual void execute(); virtual void execute();
void draw(); void draw();
void write(); void write();
...@@ -33,4 +33,4 @@ private: ...@@ -33,4 +33,4 @@ private:
OutputData<double> *mp_intensity_output; OutputData<double> *mp_intensity_output;
DWBAFormFactor m_dwba_ff; DWBAFormFactor m_dwba_ff;
}; };
#endif /* TESTDWBAFORMFACTOR_H_ */ #endif /* TESTISGISAXS3_H_ */
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
#include "TestRoughness.h" #include "TestRoughness.h"
#include "TestFresnelCoeff.h" #include "TestFresnelCoeff.h"
#include "TestFormFactor.h" #include "TestFormFactor.h"
#include "TestDWBAFormFactor.h"
#include "TestDiffuseReflection.h" #include "TestDiffuseReflection.h"
#include "TestIsGISAXS3.h"
#include "TestIsGISAXS10.h" #include "TestIsGISAXS10.h"
#include "TestConvolution.h" #include "TestConvolution.h"
...@@ -18,8 +18,8 @@ TestFactory::TestFactory() : m_benchmark(0) ...@@ -18,8 +18,8 @@ TestFactory::TestFactory() : m_benchmark(0)
registerItem("roughness", IFactoryCreateFunction<TestRoughness, IFunctionalTest> ); registerItem("roughness", IFactoryCreateFunction<TestRoughness, IFunctionalTest> );
registerItem("fresnel", IFactoryCreateFunction<TestFresnelCoeff, IFunctionalTest> ); registerItem("fresnel", IFactoryCreateFunction<TestFresnelCoeff, IFunctionalTest> );
registerItem("formfactor", IFactoryCreateFunction<TestFormFactor, IFunctionalTest> ); registerItem("formfactor", IFactoryCreateFunction<TestFormFactor, IFunctionalTest> );
registerItem("dwba", IFactoryCreateFunction<TestDWBAFormFactor, IFunctionalTest> );
registerItem("diffuse", IFactoryCreateFunction<TestDiffuseReflection, IFunctionalTest> ); registerItem("diffuse", IFactoryCreateFunction<TestDiffuseReflection, IFunctionalTest> );
registerItem("isgisaxs3", IFactoryCreateFunction<TestIsGISAXS3, IFunctionalTest> );
registerItem("isgisaxs10", IFactoryCreateFunction<TestIsGISAXS10, IFunctionalTest> ); registerItem("isgisaxs10", IFactoryCreateFunction<TestIsGISAXS10, IFunctionalTest> );
registerItem("convolution", IFactoryCreateFunction<TestConvolution, IFunctionalTest> ); registerItem("convolution", IFactoryCreateFunction<TestConvolution, IFunctionalTest> );
......
#include "TestDWBAFormFactor.h" #include "TestIsGISAXS3.h"
#include "IsGISAXSTools.h" #include "IsGISAXSTools.h"
#include "Types.h" #include "Types.h"
#include "Units.h" #include "Units.h"
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
TestDWBAFormFactor::TestDWBAFormFactor() TestIsGISAXS3::TestIsGISAXS3()
: m_dwba_ff(new FormFactorCylinder(5*Units::nanometer, 5*Units::nanometer)) : m_dwba_ff(new FormFactorCylinder(5*Units::nanometer, 5*Units::nanometer))
{ {
complex_t n_substrate(1.0-6e-6, 2e-8); complex_t n_substrate(1.0-6e-6, 2e-8);
...@@ -28,12 +28,12 @@ TestDWBAFormFactor::TestDWBAFormFactor() ...@@ -28,12 +28,12 @@ TestDWBAFormFactor::TestDWBAFormFactor()
mp_intensity_output->addAxis(p_z_axis); mp_intensity_output->addAxis(p_z_axis);
} }
TestDWBAFormFactor::~TestDWBAFormFactor() TestIsGISAXS3::~TestIsGISAXS3()
{ {
delete mp_intensity_output; delete mp_intensity_output;
} }
void TestDWBAFormFactor::execute() void TestIsGISAXS3::execute()
{ {
MultiIndex& index = mp_intensity_output->getIndex(); MultiIndex& index = mp_intensity_output->getIndex();
NamedVector<double> *p_y_axis = dynamic_cast<NamedVector<double>*>(mp_intensity_output->getAxis("detector y-axis")); NamedVector<double> *p_y_axis = dynamic_cast<NamedVector<double>*>(mp_intensity_output->getAxis("detector y-axis"));
...@@ -60,7 +60,7 @@ void TestDWBAFormFactor::execute() ...@@ -60,7 +60,7 @@ void TestDWBAFormFactor::execute()
write(); write();
} }
void TestDWBAFormFactor::draw() void TestIsGISAXS3::draw()
{ {
// creation of 2D histogram from calculated intensities // creation of 2D histogram from calculated intensities
TCanvas *c1 = new TCanvas("c1_test_dwba_formfactor", "Cylinder Formfactor", 0, 0, 1024, 768); TCanvas *c1 = new TCanvas("c1_test_dwba_formfactor", "Cylinder Formfactor", 0, 0, 1024, 768);
...@@ -100,7 +100,7 @@ void TestDWBAFormFactor::draw() ...@@ -100,7 +100,7 @@ void TestDWBAFormFactor::draw()
p_hist2D->Draw("CONT4 Z"); p_hist2D->Draw("CONT4 Z");
} }
void TestDWBAFormFactor::write() void TestIsGISAXS3::write()
{ {
std::ofstream file; std::ofstream file;
file.open("./IsGISAXS_examples/ex-3/dwbacyl.ima", std::ios::out); file.open("./IsGISAXS_examples/ex-3/dwbacyl.ima", std::ios::out);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment