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
4aba9af5
Commit
4aba9af5
authored
13 years ago
by
Michael Reuter
Browse files
Options
Downloads
Patches
Plain Diff
Handling pixel skipping for events. This refs #2888.
parent
01ac2631
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/Framework/Algorithms/src/He3TubeEfficiency.cpp
+9
-2
9 additions, 2 deletions
Code/Mantid/Framework/Algorithms/src/He3TubeEfficiency.cpp
with
9 additions
and
2 deletions
Code/Mantid/Framework/Algorithms/src/He3TubeEfficiency.cpp
+
9
−
2
View file @
4aba9af5
...
@@ -421,7 +421,7 @@ double He3TubeEfficiency::getParameter(std::string wsPropName, std::size_t curre
...
@@ -421,7 +421,7 @@ double He3TubeEfficiency::getParameter(std::string wsPropName, std::size_t curre
*/
*/
void
He3TubeEfficiency
::
execEvent
()
void
He3TubeEfficiency
::
execEvent
()
{
{
g_log
.
information
(
"Processing event workspace"
);
this
->
g_log
.
information
(
"Processing event workspace"
);
const
API
::
MatrixWorkspace_const_sptr
matrixInputWS
=
this
->
getProperty
(
"InputWorkspace"
);
const
API
::
MatrixWorkspace_const_sptr
matrixInputWS
=
this
->
getProperty
(
"InputWorkspace"
);
DataObjects
::
EventWorkspace_const_sptr
inputWS
=
boost
::
dynamic_pointer_cast
<
const
DataObjects
::
EventWorkspace
>
(
matrixInputWS
);
DataObjects
::
EventWorkspace_const_sptr
inputWS
=
boost
::
dynamic_pointer_cast
<
const
DataObjects
::
EventWorkspace
>
(
matrixInputWS
);
...
@@ -462,6 +462,7 @@ void He3TubeEfficiency::execEvent()
...
@@ -462,6 +462,7 @@ void He3TubeEfficiency::execEvent()
}
}
double
exp_constant
;
double
exp_constant
;
bool
is_good
=
true
;
try
try
{
{
exp_constant
=
this
->
calculateExponential
(
i
,
det
);
exp_constant
=
this
->
calculateExponential
(
i
,
det
);
...
@@ -472,8 +473,14 @@ void He3TubeEfficiency::execEvent()
...
@@ -472,8 +473,14 @@ void He3TubeEfficiency::execEvent()
PARALLEL_CRITICAL
(
deteff_invalid
)
PARALLEL_CRITICAL
(
deteff_invalid
)
{
{
this
->
spectraSkipped
.
push_back
(
inputWS
->
getAxis
(
1
)
->
spectraNo
(
i
));
this
->
spectraSkipped
.
push_back
(
inputWS
->
getAxis
(
1
)
->
spectraNo
(
i
));
is_good
=
false
;
//outputWS->maskWorkspaceIndex(i);
}
}
//continue;
}
if
(
!
is_good
)
{
continue
;
}
}
// Do the correction
// Do the correction
...
...
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