code: def _restore_counts_maps(self):
          
  
          for c in self.components:
              c.restore_counts_maps()
  
          if hasattr(self.like.components[0].logLike, 'setCountsMap'):
              self._init_roi_model()
          else:
              self.write_xml('tmp')
              self._like = SummedLikelihood()
              for i, c in enumerate(self._components):
                  c._create_binned_analysis()
                  self._like.addComponent(c.like)
              self._init_roi_model()
              self.load_xml('tmp')
docs: Revert counts maps to their state prior to injecting any simulated
          components.