Skip to content

Commit

Permalink
Started the task to mask det in MDworkspace. Refs #11449.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Apr 1, 2015
1 parent 0ba9ae9 commit d1f8c97
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Code/Mantid/Framework/DataHandling/src/MaskDetectors.cpp
Expand Up @@ -84,6 +84,9 @@ void MaskDetectors::exec() {
// Is it a Mask Workspace ?
MaskWorkspace_sptr isMaskWS = boost::dynamic_pointer_cast<MaskWorkspace>(WS);

// TODO: Is it an MDEventWorkspace?
MDEventWorkspace_sptr isMDEVentWS = boost::dynamic_pointer_cast<MDEventWorkspace>(WS);

std::vector<size_t> indexList = getProperty("WorkspaceIndexList");
std::vector<specid_t> spectraList = getProperty("SpectraList");
const std::vector<detid_t> detectorList = getProperty("DetectorList");
Expand Down Expand Up @@ -277,6 +280,20 @@ void MaskDetectors::execPeaks(PeaksWorkspace_sptr WS) {
}
}
}

/**
* @brief MaskDetectors::execMDWorkspaces
*/
MaskDetectors::execMDWorkspaces()
{
size_t numruns = WS->numRuns();
for (size_t irun = 0; irun < numruns; ++irun)
{
WS->getExperimetnInfo(irun)->getIntrument();
}
}


/**
* Convert a list of spectra numbers into the corresponding workspace indices
* @param indexList :: An output index list from the given spectra list
Expand Down

0 comments on commit d1f8c97

Please sign in to comment.