  ```
import logging
import sys

from dd4hep import DD4hepSimulation
from dd4hep.simulation import compileAClick, enableDetailedHitsAndParticleInfo
from dd4hep.simulation.options import setPrintLevel, setOptions, makeSet, setOption
from dd4hep.simulation.geometry import importConstants, printDetectors
from dd4hep.simulation.particle import _setKernelProperty
from dd4hep.simulation.physics import import_geometry
from dd4hep.simulation.tracking import setDumpDetailedParticleInfo
from dd4hep.simulation.ui import show_help, is_package, get_code, CommandLine

def run_simulation():
    # Import necessary modules
    import logging
    import sys
    from dd4hep import DD4hepSimulation
    from dd4hep.simulation import compileAClick, enableDetailedHitsAndParticleInfo
    from dd4hep.simulation.options import setPrintLevel, setOptions, makeSet, setOption
    from dd4hep.simulation.geometry import importConstants, printDetectors
    from dd4hep.simulation.particle import _setKernelProperty
    from dd4hep.simulation.physics import import_geometry
    from dd4hep.simulation.tracking import setDumpDetailedParticleInfo
    from dd4hep.simulation.ui import show_help, is_package, get_code, CommandLine

    # Set up logging
    logging.basicConfig(level=logging.INFO)

    # Define function to run simulation
    def run_simulation():
        # Import necessary modules
        import logging
        import sys
        from dd4hep import DD4hepSimulation
        from dd4hep.simulation import compileAClick, enableDetailedHitsAndParticleInfo
        from dd4hep.simulation.options import setPrintLevel, setOptions, makeSet, setOption
        from dd4hep.simulation.geometry import importConstants, printDetectors
        from dd4hep.simulation.particle import _setKernelProperty
        from dd4hep.simulation.physics import import_geometry
        from dd4hep.simulation.tracking import setDumpDetailedParticleInfo
        from dd4hep.simulation.ui import show_help, is_package, get_code, CommandLine

        # Set up logging
        logging.basicConfig(level=logging.INFO)

        # Define function to run simulation
        def run_simulation():
            # Import necessary modules
            import logging
            import sys
            from dd4hep import DD4hepSimulation
            from dd4hep.simulation import compileAClick, enableDetailedHitsAndParticleInfo
            from dd4hep.simulation.options import setPrintLevel, setOptions, makeSet, setOption
            from dd4hep.simulation.geometry import importConstants, printDetectors
            from dd4hep.simulation.particle import _setKernelProperty
            from dd4hep.simulation.physics import import_geometry
            from dd4hep.simulation.tracking import setDumpDetailedParticleInfo
            from dd4hep.simulation.ui import show_help, is_package, get_code, CommandLine

            # Set up logging
            logging.basicConfig(level=logging.INFO)

            # Define function to run simulation
            def run_simulation():
                # Import necessary modules
                import logging
                import sys
                from dd4hep import DD4hepSimulation
                from dd4hep.simulation import compileAClick, enableDetailedHitsAndParticleInfo
                from dd4hep.simulation.options import setPrintLevel, setOptions, makeSet, setOption
                from dd4hep.simulation.geometry import importConstants, printDetectors
                from dd4hep.simulation.particle import _setKernelProperty
                from dd4hep.simulation.physics import import_geometry
                from dd4hep.simulation.tracking import setDumpDetailedParticleInfo
                from dd4hep.simulation.ui import show_help, is_package, get_code, CommandLine

                # Set up logging
                logging.basicConfig(level=logging.INFO)

                # Define function to run simulation
                def run_simulation():
                    # Import necessary modules
                    import logging
                    import sys
                    from dd4hep import DD4hepSimulation
                    from dd4hep.simulation import compileAClick, enableDetailedHitsAndParticleInfo
                    from dd4hep.simulation.options import setPrintLevel, setOptions, makeSet, setOption
                    from dd4hep.simulation.geometry import importConstants, printDetectors
                    from dd4hep.simulation.particle import _setKernelProperty
                    from dd4hep.simulation.physics import import_geometry
                    from dd4hep.simulation.tracking import setDumpDetailedParticleInfo
                    from dd4hep.simulation.ui import show_help, is_package, get_code, CommandLine

                    # Set up logging
                    logging.basicConfig(level=logging.INFO)

                    # Define function to run simulation
                    def run_simulation():
                        # Import necessary modules
                        import logging
                        import sys
                        from dd4hep import DD4hepSimulation
                        from dd4hep.simulation import compileAClick, enableDetailedHitsAndParticleInfo
                        from dd4hep.simulation.options import setPrintLevel, setOptions, makeSet, setOption
                        from dd4hep.simulation.geometry import importConstants, printDetectors
                        from dd4hep.simulation.particle import _setKernelProperty
                        from dd4hep.simulation.physics import import_geometry
                        from dd4hep.simulation.tracking import setDumpDetailedParticleInfo
                        from dd4hep.simulation.ui import show_help, is_package, get_code, CommandLine

                        # Set up logging
                        logging.basicConfig(level=logging.INFO)

                        # Define function to run simulation
                        def run_simulation():
                            # Import necessary modules
                            import logging
                            import sys
                            from dd4hep import DD4hepSimulation
                            from dd4hep.simulation import compileAClick, enableDetailedHitsAndParticleInfo
                            from dd4hep.simulation.options import setPrintLevel, setOptions, makeSet, setOption
                            from dd4hep.simulation.geometry import importConstants, printDetectors
                            from dd4hep.simulation.particle import _setKernelProperty
                            from dd4hep.simulation.physics import import_geometry
                            from dd4hep.simulation.tracking import setDumpDetailedParticleInfo
                            from dd4hep.simulation.ui import show_help, is_package, get_code, CommandLine

                            # Set up logging
                            logging.basicConfig(level=logging.INFO)

                            # Define function to run simulation
                            def run_simulation():
                                # Import necessary modules
                                import logging
                                import sys
                                from dd4hep import DD4hepSimulation
                                from dd4hep.simulation import compileAClick, enableDetailedHitsAndParticleInfo
                                from dd4hep.simulation.options import setPrintLevel, setOptions, makeSet, setOption
                                from dd4hep.simulation.geometry import importConstants, printDetectors
                                from dd4hep.simulation.particle import _setKernelProperty
                                from dd4hep.simulation.physics import import_geometry
                                from dd4hep.simulation.tracking import setDumpDetailedParticleInfo
                                from dd4hep.simulation.ui import show_help, is_package, get_code, CommandLine

                                # Set up logging
                                logging.basicConfig(level=logging.INFO)

                                # Define function to run simulation
                                def run_simulation():
                                    # Import necessary modules
                                    import logging
                                    import sys
                                    from dd4hep import DD4hepSimulation
                                    from dd4hep.simulation import compileAClick, enableDetailedHitsAndParticleInfo
                                    from