Skip to content

Commit

Permalink
Move comment about NSB extraction from simtel file to the function do…
Browse files Browse the repository at this point in the history
…cstring.
  • Loading branch information
gabemery committed Jul 5, 2024
1 parent f011b7f commit 88eb930
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lstchain/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,14 +1263,16 @@ def remove_duplicated_events(data):

def extract_simulation_nsb(filename):
"""
Get current run NSB from configuration in simtel file
Get current run NSB from configuration in simtel file.
WARNING : In current MC, correct NSB are logged after 'STORE_PHOTOELECTRONS' entries
In any new production, behaviour needs to be verified.
New version of simtel will allow to use better metadata.
:param str filename: Input file name
:return dict of `float` by tel_id: NSB rate
"""
nsb = {}
# In current MC, correct NSB are logged after 'STORE_PHOTOELECTRONS' entries
# TODO In any new production, behaviour needs to be verified.
# New version of simtel will allow to use better metadata
next_nsb = False
tel_id = 1
with SimTelFile(filename) as f:
Expand Down

0 comments on commit 88eb930

Please sign in to comment.