|
| 1 | + |
| 2 | +# Launchers |
| 3 | + |
| 4 | +Currently, there are 8 launchers: |
| 5 | + |
| 6 | +`launch_GainSel.sh` |
| 7 | + |
| 8 | +- Executes Gain Selection |
| 9 | +- Stops when the flag `GainSelFinished.txt` exists |
| 10 | + |
| 11 | +`launch_GainSelCheck.sh` |
| 12 | + |
| 13 | +- Launches: |
| 14 | + |
| 15 | + - Gain Selection Check |
| 16 | + - Web interface |
| 17 | + |
| 18 | +- Stops when the flag `GainSelFinished.txt` exists |
| 19 | + |
| 20 | +Both of them are planned for removal when GainSel is no longer needed. |
| 21 | + |
| 22 | +`launch_Sequencer1.sh` |
| 23 | + |
| 24 | +- Starts DL1a production |
| 25 | +- Runs only when `GainSelFinished.txt` flag exists |
| 26 | + |
| 27 | +Future option: trigger when the first `gainselection*.closed` file exists. |
| 28 | + |
| 29 | +`launch_SequencerCatB.sh` |
| 30 | + |
| 31 | +- Launches `sequencer_catB_tailcuts` |
| 32 | +- Starts when the date directory is created in running_analysis |
| 33 | + |
| 34 | +`launch_Sequencer2.sh` |
| 35 | + |
| 36 | +- Starts DL1ab production using the first config file |
| 37 | +- Includes an alternative condition (commented out, fallback option) |
| 38 | + |
| 39 | +`launch_SequencerWeb.sh` |
| 40 | + |
| 41 | +- Launches web Sequencer 1 and 2 |
| 42 | +- Requires `GainSelFinished.txt` flag |
| 43 | + |
| 44 | +`launch_Autocloser.sh` |
| 45 | + |
| 46 | +- Responsible for closing the night |
| 47 | +- Executes only when a `tailcut` directory exists in running_analysis |
| 48 | + |
| 49 | +Sequencer and autocloser stop execution once `NightFinished.txt` exists. |
| 50 | + |
| 51 | +`launch_Datacheck.sh` |
| 52 | + |
| 53 | +- Executes `copy_datacheck` for DL1 files |
| 54 | +- Starts when the date directory exists in running_analysis |
| 55 | + |
| 56 | +## Environment Configuration |
| 57 | + |
| 58 | +All launchers source a common environment file `osa-env.sh` |
| 59 | + |
| 60 | +This file: |
| 61 | + |
| 62 | +- Defines global parameters |
| 63 | + |
| 64 | +- Ensures consistency across all launchers |
| 65 | + |
| 66 | +- Enables scalable design for future extensions (e.g., adding new telescopes) |
| 67 | + |
| 68 | +## Standalone Usage |
| 69 | + |
| 70 | +Launchers can also be executed manually (outside crontab). They allow you to |
| 71 | + |
| 72 | +- Define the desired environment variables in the terminal |
| 73 | + |
| 74 | +- Optionally pass additional arguments |
| 75 | + |
| 76 | +### Example |
| 77 | + |
| 78 | +Run in a single line: |
| 79 | + |
| 80 | +```bash |
| 81 | +OBS_DATE=2026-01-28 CFG=/path/to/mysequencer.cfg ./launch_Sequencer2.sh -s |
| 82 | +``` |
| 83 | + |
| 84 | +This sets a custom observation date (OBS_DATE) and config (CFG). |
| 85 | +It runs Sequencer2 in simulation mode (-s). |
0 commit comments