How mdebony/baccmod works
Main Components
a. Interface Layer (Top)
b. Core Processing Layer (Middle)
c. Data Management Layer (Bottom)
Component Details
a. Interface Layer:
• Two main acceptance map creator classes:
• RadialAcceptanceMapCreator
• Grid3DAcceptanceMapCreator
• To a common base class (BaseAcceptanceMapCreator)
b. Core Processing Layer:
• Following components:
• Modeling Component (modeling.py)
• Background Collection Handler (bkg_collection.py)
• Toolbox Utilities (toolbox.py)
c. Data Management Layer:
• External Dependencies:
• Gammapy
• Astropy
• Numpy/Scipy
• Regions
Data Flow and Interactions
• Input: Observation data → Acceptance Map Creators
• Processing: Through the core layer components
• Output: Background models in FITS format
• Zenith binning
• Interpolation
• OFF runs processing
Special Features to Highlight
• Basic acceptance map creation
• Run-wise normalization
• Zenith-binned modeling
• Zenith interpolation
Technical Details
• Annotations for key parameters:
• Energy axis configuration
• Offset axis settings
• Zenith binning parameters
• A note about telescope position requirements
Integration Points
• Integration with external systems:
• Input: DataStore from gammapy
• Output: FITS file format
• Pickle serialization for model storage