-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import corrected_areas | ||
from .corrected_areas import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import strax | ||
import straxen | ||
|
||
export, __all__ = strax.exporter() | ||
|
||
|
||
@export | ||
class CorrectedAreasMC(straxen.CorrectedAreas): | ||
"""Corrected areas plugin for MC data. | ||
This plugin overwrites the cs1 and cs2 fields with the not-time- | ||
corrected values as the effects are not simulated in the MC. | ||
""" | ||
|
||
__version__ = "0.0.1" | ||
child_plugin = True | ||
|
||
def compute(self, events): | ||
result = super().compute(events) | ||
result["cs1"] = result["cs1_wo_timecorr"] | ||
result["cs2"] = result["cs2_wo_timecorr"] | ||
|
||
return result |