<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def det_lognl(self, det):
 """Returns the log likelihood of the noise in the given detector. Parameters det : str The name of the detector. Returns ------- float : The log likelihood of the noise in the requested detector. """

        try:
            return self.__det_lognls[det]
        except AttributeError:
            # hasn't been calculated yet, call lognl to calculate & store
            self._lognl()
            # now try returning
            return self.__det_lognls[det]