Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
3a6b6bba
Commit
3a6b6bba
authored
11 years ago
by
Zhou, Wenduo
Browse files
Options
Downloads
Patches
Plain Diff
Added some comments and log output. Refs #9033.
parent
ec6563c3
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/Framework/Algorithms/src/FindPeakBackground.cpp
+4
-0
4 additions, 0 deletions
Code/Mantid/Framework/Algorithms/src/FindPeakBackground.cpp
with
4 additions
and
0 deletions
Code/Mantid/Framework/Algorithms/src/FindPeakBackground.cpp
+
4
−
0
View file @
3a6b6bba
...
@@ -238,6 +238,7 @@ namespace Algorithms
...
@@ -238,6 +238,7 @@ namespace Algorithms
double
a0
,
a1
,
a2
;
double
a0
,
a1
,
a2
;
if
(
peaks
.
size
()
>
0
)
if
(
peaks
.
size
()
>
0
)
{
{
g_log
.
information
()
<<
"Peaks' size = "
<<
peaks
.
size
()
<<
" -> esitmate background.
\n
"
;
if
(
peaks
[
peaks
.
size
()
-
1
].
stop
==
0
)
peaks
[
peaks
.
size
()
-
1
].
stop
=
n
-
1
;
if
(
peaks
[
peaks
.
size
()
-
1
].
stop
==
0
)
peaks
[
peaks
.
size
()
-
1
].
stop
=
n
-
1
;
std
::
sort
(
peaks
.
begin
(),
peaks
.
end
(),
by_len
());
std
::
sort
(
peaks
.
begin
(),
peaks
.
end
(),
by_len
());
...
@@ -251,9 +252,12 @@ namespace Algorithms
...
@@ -251,9 +252,12 @@ namespace Algorithms
else
else
{
{
// assume background is 12 first and last points
// assume background is 12 first and last points
g_log
.
information
(
"Peaks' size = 0 -> zero background."
);
min_peak
=
l0
+
12
;
min_peak
=
l0
+
12
;
max_peak
=
n
-
13
;
max_peak
=
n
-
13
;
if
(
min_peak
>
sizey
)
min_peak
=
sizey
-
1
;
if
(
min_peak
>
sizey
)
min_peak
=
sizey
-
1
;
// FIXME : as it is assumed that background is 12 first and 12 last, then
// why not do a simple fit here!
a0
=
0.0
;
a0
=
0.0
;
a1
=
0.0
;
a1
=
0.0
;
a2
=
0.0
;
a2
=
0.0
;
...
...
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