/** * Create & cached the normalization workspace * @param dataWS The binned workspace that will be used for the data */ void MDNormDirectSC::createNormalizationWS(const MDHistoWorkspace &dataWS) { // Copy the MDHisto workspace, and change signals and errors to 0. m_normWS = dataWS.clone(); m_normWS->setTo(0., 0., 0.); }
/** * Create & cached the normalization workspace * @param dataWS The binned workspace that will be used for the data */ void MDNormSCD::createNormalizationWS(const MDHistoWorkspace &dataWS) { // Copy the MDHisto workspace, and change signals and errors to 0. m_normWS.reset(dataWS.clone().release()); m_normWS->setTo(0., 0., 0.); }