Skip to content

Commit

Permalink
add efficiency cuts to dl2 to irfs options (#477)
Browse files Browse the repository at this point in the history
* add efficiency cuts to dl2 to irfs options

* add efficiency cuts to dl2 to irfs options

* add energy dependent cuts option for irfs
  • Loading branch information
vuillaut authored Aug 26, 2024
1 parent 5e0ea9a commit 412c989
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lstmcpipe/config/paths_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,10 @@ def path_dict(gamma_part, offset):
'electron_file': self.dl2_output_file('electron'),
},
'output': os.path.join(self.irf_dir(gamma_src_offset=offset), f'irf_{self.prod_id}_{offset}.fits.gz'),
'options': '--point-like' if gamma_part == 'gamma' else '',
'options': '--gh-efficiency 0.7 --theta-containment 0.7 --energy-dependent-gh --energy-dependent-theta '
}
if gamma_part == 'gamma':
d['options'] += ' --point-like'
return d

for gamma_part in ['gamma-diffuse', 'gamma']:
Expand Down Expand Up @@ -814,18 +816,17 @@ def dl2_to_irfs(self):
paths = []

for pointing in self.pointing_dirs():
paths.append(
{
pp = {
'input': {
'gamma_file': self.dl2_output_file(pointing),
'proton_file': None,
'electron_file': None,
},
'output': os.path.join(self.irf_dir(pointing), f'irf_{self.prod_id}_{pointing}.fits.gz'),
'options': '--point-like',
'options': '--point-like --gh-efficiency 0.7 --theta-containment 0.7 --energy-dependent-gh --energy-dependent-theta ',
'extra_slurm_options': {'mem': '6GB'},
}
)
paths.append(pp)

return paths

Expand Down

0 comments on commit 412c989

Please sign in to comment.