Skip to content
Snippets Groups Projects
Commit 4aba9af5 authored by Michael Reuter's avatar Michael Reuter
Browse files

Handling pixel skipping for events. This refs #2888.

parent 01ac2631
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
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