Module flarefly.pdf_configs

Helper functions to get the PDF configurations for signal and background PDFs.

Functions

def get_bkg_pdf_config(pdf_name: str)
Expand source code
def get_bkg_pdf_config(pdf_name: str):
    """Get the configuration for a specific PDF."""
    if pdf_name not in BACKGROUND_PDF_CONFIGS:
        Logger(f"Unknown background PDF name: {pdf_name}.", "FATAL")

    # Get the specific config
    config = BACKGROUND_PDF_CONFIGS[pdf_name].copy()

    return config

Get the configuration for a specific PDF.

def get_kde_pdf(kde_name: str)
Expand source code
def get_kde_pdf(kde_name: str):
    """Get the KDE PDF class for a specific KDE type."""
    if kde_name not in KDE_MAP:
        Logger(
            f"Unknown KDE type: {kde_name}. "
            f"Available types: {list(KDE_MAP.keys())}",
            "FATAL"
        )

    return KDE_MAP[kde_name]

Get the KDE PDF class for a specific KDE type.

def get_signal_pdf_config(pdf_name: str)
Expand source code
def get_signal_pdf_config(pdf_name: str):
    """Get the configuration for a specific PDF."""
    if pdf_name not in SIGNAL_PDF_CONFIGS:
        Logger(f"Unknown signal PDF name: {pdf_name}.", "FATAL")

    # Get the specific config
    config = SIGNAL_PDF_CONFIGS[pdf_name].copy()

    return config

Get the configuration for a specific PDF.