Commit 88743037 authored by Walsh, Michael's avatar Walsh, Michael
Browse files

added some comments

parent d1c4e4d0
......@@ -87,6 +87,7 @@ FindCenterOfMassPosition2::sumUsingSpectra(DataObjects::EventWorkspace_const_spt
return inputWS;
}
// find the min/max for x/y coords in set of valid spectra, update position of bounding box
double initBoundingBox(WorkspaceBoundingBox &boundingBox, const int numSpec, const double beamRadius,
const bool directBeam) {
double totalCount = 0;
......@@ -104,6 +105,8 @@ double initBoundingBox(WorkspaceBoundingBox &boundingBox, const int numSpec, con
return totalCount;
}
// In subsequent iterations check if spectra fits in the normalized bounding box(generated by previous iterations)
// If so, update position
double updateBoundingBox(WorkspaceBoundingBox &boundingBox, WorkspaceBoundingBox previousBoundingBox, const int numSpec,
const double beamRadius, const bool directBeam) {
double totalCount = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment