def METHOD_NAME(
    self,
    product,
    imagename,
    ):
    """define file name dict for analysis in this code.
    """
    fname_dict = {}
    is_line_product = product in self._kh.get_line_products()
    if is_line_product:
        fname_dict['root'] = imagename
        fname_dict['suffix'] = ''
        fname_dict['image'] = imagename+'.image'
        fname_dict['model'] = imagename+'.model'
        fname_dict['residual'] = imagename+'.residual'
        fname_dict['mask'] = imagename+'.mask'
        fname_dict['pb'] = imagename+'.pb'
        fname_dict['psf'] = imagename+'.psf'
        fname_dict['weight'] = imagename+'.weight'
        fname_dict['sumwt'] = imagename+'.sumwt'
    else:
        fname_dict['root'] = imagename
        fname_dict['suffix'] = '.tt0'
        fname_dict['image'] = imagename+'.image.tt0'
        fname_dict['model'] = imagename+'.model.tt0'
        fname_dict['residual'] = imagename+'.residual.tt0'
        fname_dict['mask'] = imagename+'.mask.tt0'
        fname_dict['pb'] = imagename+'.pb.tt0'
        fname_dict['psf'] = imagename+'.psf.tt0'
        fname_dict['weight'] = imagename+'.weight.tt0'
        fname_dict['sumwt'] = imagename+'.sumwt.tt0'
        fname_dict['alpha'] = imagename+'.alpha'
        fname_dict['beta'] = imagename+'.beta'
    return fname_dict