code: def _create_catalog(self,catalog=None):
          
          if catalog is None:
              catalog = ugali.analysis.loglike.createCatalog(self.config,self.roi)
          cut = self.mask.restrictCatalogToObservableSpace(catalog)
          self.catalog = catalog.applyCut(cut)
docs: Bundle it.