-
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.
* Draft for processing override * Set logging to info when setting up the context * Add alt fields and extend the docstring. --------- Co-authored-by: Diego Ramírez García <[email protected]>
- Loading branch information
1 parent
fd40b75
commit 205afa5
Showing
4 changed files
with
54 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,32 @@ | ||
import strax | ||
import straxen | ||
|
||
export, __all__ = strax.exporter() | ||
|
||
|
||
@export | ||
class CorrectedAreasMC(straxen.CorrectedAreas): | ||
"""Corrected areas plugin for MC data. | ||
This plugin overwrites the (alt_)cs1 and (alt_)cs2 fields with the | ||
not-time- corrected values as the effects of time dependent single- | ||
electron gain, extraction efficiency and photo ionization are not | ||
simulated in fuse. | ||
Applying corrections for these effects to simulated data would lead | ||
to incorrect results. This plugins should only be used for simulated | ||
data! | ||
""" | ||
|
||
__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"] | ||
|
||
result["alt_cs1"] = result["alt_cs1_wo_timecorr"] | ||
result["alt_cs2"] = result["alt_cs2_wo_timecorr"] | ||
|
||
return result |