Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
5400dce1
Commit
5400dce1
authored
12 years ago
by
Van Herck, Walter
Browse files
Options
Downloads
Patches
Plain Diff
Renamed DWBA formfactor test to IsGISAXS3 test
parent
be3d0a75
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
App/App.pro
+2
-2
2 additions, 2 deletions
App/App.pro
App/inc/TestIsGISAXS3.h
+8
-8
8 additions, 8 deletions
App/inc/TestIsGISAXS3.h
App/src/TestFactory.cpp
+2
-2
2 additions, 2 deletions
App/src/TestFactory.cpp
App/src/TestIsGISAXS3.cpp
+6
-6
6 additions, 6 deletions
App/src/TestIsGISAXS3.cpp
with
18 additions
and
18 deletions
App/App.pro
+
2
−
2
View file @
5400dce1
...
@@ -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
/
Test
DWBAFormFactor
.
cpp
\
src
/
Test
IsGISAXS3
.
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
/
Test
DWBAFormFactor
.
h
\
inc
/
Test
IsGISAXS3
.
h
\
inc
/
SampleFactory
.
h
\
inc
/
SampleFactory
.
h
\
inc
/
StandardSamples
.
h
\
inc
/
StandardSamples
.
h
\
inc
/
CommandLine
.
h
\
inc
/
CommandLine
.
h
\
...
...
This diff is collapsed.
Click to expand it.
App/inc/Test
DWBAFormFactor
.h
→
App/inc/Test
IsGISAXS3
.h
+
8
−
8
View file @
5400dce1
#ifndef TEST
DWBAFORMFACTOR
_H_
#ifndef TEST
ISGISAXS3
_H_
#define TEST
DWBAFORMFACTOR
_H_
#define TEST
ISGISAXS3
_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 Test
DWBAFormFactor
.h
//! @file Test
IsGISAXS3
.h
//! @brief Definition of Test
DWBAFormFactor
class for
formfactor
validation
//! @brief Definition of Test
IsGISAXS3
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
Test
DWBAFormFactor
:
public
IFunctionalTest
class
Test
IsGISAXS3
:
public
IFunctionalTest
{
{
public:
public:
Test
DWBAFormFactor
();
Test
IsGISAXS3
();
virtual
~
Test
DWBAFormFactor
();
virtual
~
Test
IsGISAXS3
();
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
/* TEST
DWBAFORMFACTOR
_H_ */
#endif
/* TEST
ISGISAXS3
_H_ */
This diff is collapsed.
Click to expand it.
App/src/TestFactory.cpp
+
2
−
2
View file @
5400dce1
...
@@ -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
>
);
...
...
This diff is collapsed.
Click to expand it.
App/src/Test
DWBAFormFactor
.cpp
→
App/src/Test
IsGISAXS3
.cpp
+
6
−
6
View file @
5400dce1
#include
"Test
DWBAFormFactor
.h"
#include
"Test
IsGISAXS3
.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 @@
Test
DWBAFormFactor
::
TestDWBAFormFactor
()
Test
IsGISAXS3
::
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
);
}
}
Test
DWBAFormFactor
::~
TestDWBAFormFactor
()
Test
IsGISAXS3
::~
TestIsGISAXS3
()
{
{
delete
mp_intensity_output
;
delete
mp_intensity_output
;
}
}
void
Test
DWBAFormFactor
::
execute
()
void
Test
IsGISAXS3
::
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
Test
DWBAFormFactor
::
draw
()
void
Test
IsGISAXS3
::
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
Test
DWBAFormFactor
::
write
()
void
Test
IsGISAXS3
::
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment