code: def _create_likelihood(self, srcmdl=None):
          
  
          self._like = SummedLikelihood()
          for c in self.components:
              c._create_binned_analysis(srcmdl)
              self._like.addComponent(c.like)
  
          self.like.model = self.like.components[0].model
          self._fitcache = None
          self._init_roi_model()
docs: Instantiate the likelihood object for each component and
          create a SummedLikelihood.