Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningSE committed Oct 20, 2023
1 parent 2394221 commit 79053be
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions fuse/plugins/detector_physics/secondary_scintillation.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,6 @@ def setup(self):
log.debug(f"Running SecondaryScintillation version {self.__version__} in debug mode")
else:
log.setLevel('WARNING')

#Are these if cases needed?? -> If no remove, if yes, correct the code
#if self.s2_correction_map_file:
# self.s2_correction_map = make_map(self.s2_correction_map_file, fmt = 'json')
#else:

if self.deterministic_seed:
hash_string = strax.deterministic_hash((self.run_id, self.lineage))
Expand All @@ -185,25 +180,6 @@ def setup(self):
)

self.pmt_mask = np.array(self.gains)

#Are these if cases needed?? -> If no remove, if yes, correct the code
#if self.s2_correction_map_file:
# self.s2_correction_map = make_map(self.s2_correction_map_file, fmt = 'json')
#else:

# self.pmt_mask = np.array(self.gains) > 0 # Converted from to pe (from cmt by default)

# self.s2_pattern_map = make_patternmap(self.s2_pattern_map_file, fmt='pkl', pmt_mask=self.pmt_mask)


# s2cmap = deepcopy(self.s2_pattern_map)
# Lower the LCE by removing contribution from dead PMTs
# AT: masking is a bit redundant due to PMT mask application in make_patternmap
# s2cmap.data['map'] = np.sum(s2cmap.data['map'][:][:], axis=2, keepdims=True, where=self.pmt_mask)
# Scale by median value
# s2cmap.data['map'] = s2cmap.data['map'] / np.median(s2cmap.data['map'][s2cmap.data['map'] > 0])
# s2cmap.__init__(s2cmap.data)
# self.s2_correction_map = s2cmap

def compute(self, interactions_in_roi, individual_electrons):

Expand Down

0 comments on commit 79053be

Please sign in to comment.