def addInputToFile(fileSection, inputLFN, inputPFN):
    """
    _addInputToFile_

    Given the LFN of an input file add it to the input section of the output
    file.
    """
    if not hasattr(fileSection, 'input'):
        setattr(fileSection, 'input', [])
    if not hasattr(fileSection, 'inputpfns'):
        setattr(fileSection, 'inputpfns', [])
    fileSection.input.append(inputLFN)
    fileSection.inputpfns.append(inputPFN)
    return
