def getDatasetByName(self, name):
        """Returns a Dataset Object by its name.
        Input
        -----
        name : dataset name to search
        
        Return
        ------
        A Dataset Object or None when the dataset is not found
        """
        
        result = None
        for dataset in self.__datasets:
            datasetName = dataset.getName()
            if datasetName == name:
                result = dataset
                break
        return result