/** * Add the fake data to the given workspace * @param workspace A pointer to MD event workspace to fill using the object * parameters */ void FakeMD::fill(API::IMDEventWorkspace_sptr workspace) { setupDetectorCache(*workspace); CALL_MDEVENT_FUNCTION(this->addFakePeak, workspace) CALL_MDEVENT_FUNCTION(this->addFakeUniformData, workspace) // Mark that events were added, so the file back end (if any) needs updating workspace->setFileNeedsUpdating(true); }