diff --git a/docs/examples/dl3_tool_config.json b/docs/examples/dl3_tool_config.json deleted file mode 100644 index c8d8c830e9..0000000000 --- a/docs/examples/dl3_tool_config.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "EventSelector": { - "filters": { - "intensity": [50, Infinity], - "width": [0, Infinity], - "length": [0, Infinity], - "r": [0, 1], - "wl": [0.01, 1], - "leakage_intensity_width_2": [0, 1], - "event_type": [32, 32] - } - }, - "DL3Cuts": { - "min_event_p_en_bin": 100, - "global_gh_cut": 0.7, - "gh_efficiency": 0.9, - "min_gh_cut": 0.1, - "max_gh_cut": 0.95, - "global_alpha_cut": 10, - "global_theta_cut": 0.2, - "theta_containment": 0.68, - "alpha_containment": 0.68, - "min_theta_cut": 0.1, - "max_theta_cut": 0.32, - "fill_theta_cut": 0.32, - "min_alpha_cut": 1, - "max_alpha_cut": 20, - "fill_alpha_cut": 20, - "allowed_tels": [1] - } -} diff --git a/docs/examples/irf_tool_config.json b/docs/examples/irf_dl3_tool_config.json similarity index 91% rename from docs/examples/irf_tool_config.json rename to docs/examples/irf_dl3_tool_config.json index 88f25dbe43..61de3ef1d6 100644 --- a/docs/examples/irf_tool_config.json +++ b/docs/examples/irf_dl3_tool_config.json @@ -13,13 +13,13 @@ "DL3Cuts": { "min_event_p_en_bin": 100, "global_gh_cut": 0.7, - "gh_efficiency": 0.9, + "gh_efficiency": 0.7, "min_gh_cut": 0.1, - "max_gh_cut": 0.95, + "max_gh_cut": 0.98, "global_alpha_cut": 10, "global_theta_cut": 0.2, - "theta_containment": 0.68, - "alpha_containment": 0.68, + "theta_containment": 0.7, + "alpha_containment": 0.7, "min_theta_cut": 0.1, "max_theta_cut": 0.32, "fill_theta_cut": 0.32, diff --git a/docs/introduction.rst b/docs/introduction.rst index 536bea50e1..48ead518a3 100644 --- a/docs/introduction.rst +++ b/docs/introduction.rst @@ -112,7 +112,7 @@ Here is an example configuration file for the IRF creation step. .. toggle:: - .. include:: examples/irf_tool_config.json + .. include:: examples/irf_dl3_tool_config.json :code: json @@ -126,12 +126,7 @@ To write DL3 files, you should use: For more information, try ``--help`` or see the :doc:`lstchain_api/index`. -Here is an example configuration file for the IRF creation step. - -.. toggle:: - - .. include:: examples/dl3_tool_config.json - :code: json +You should use the same configuration file used for the IRF creation (hence you have the same cuts). Post DL3 analysis diff --git a/docs/lst_analysis_workflow.rst b/docs/lst_analysis_workflow.rst index 52667c4fd0..7b0c4a1d21 100644 --- a/docs/lst_analysis_workflow.rst +++ b/docs/lst_analysis_workflow.rst @@ -130,10 +130,9 @@ DL3/IRF config files -------------------- -DL3/IRF example config files are provided in `docs/example`: +An example config file for IRF/DL3 creation is provided in `docs/example`: - - `dl3_tool_config.json `_ - - `irf_tool_config.json `_ + - `irf_dl3_tool_config.json `_ Such files should be used to produce DL3 files and IRFs from DL2 (see :ref:`the Analysis Steps `) @@ -175,4 +174,4 @@ Then, you can use the conda environment used to produce the MC files: The `ENV_NAME` used for MC production is provided in the lstmcipe config file. -Note: you may also activate the environment defined here using your own conda installation. \ No newline at end of file +Note: you may also activate the environment defined here using your own conda installation. diff --git a/lstchain/tools/tests/test_tools.py b/lstchain/tools/tests/test_tools.py index f081727efb..06f24d7931 100644 --- a/lstchain/tools/tests/test_tools.py +++ b/lstchain/tools/tests/test_tools.py @@ -69,7 +69,7 @@ def test_create_irf_full_enclosure_with_config( from lstchain.tools.lstchain_create_irf_files import IRFFITSWriter irf_file = temp_dir_observed_files / "fe_irf.fits.gz" - config_file = os.path.join(os.getcwd(), "./docs/examples/irf_tool_config.json") + config_file = os.path.join(os.getcwd(), "./docs/examples/irf_dl3_tool_config.json") assert ( run_tool( @@ -266,7 +266,7 @@ def test_create_dl3_with_config(temp_dir_observed_files, observed_dl2_file): """ from lstchain.tools.lstchain_create_dl3_file import DataReductionFITSWriter - config_file = os.path.join(os.getcwd(), "docs/examples/dl3_tool_config.json") + config_file = os.path.join(os.getcwd(), "docs/examples/irf_dl3_tool_config.json") assert ( run_tool(