Skip to content

Add elife to cs2 corrections#368

Merged
cfuselli merged 2 commits into
mainfrom
elife-cs2
Jan 27, 2026
Merged

Add elife to cs2 corrections#368
cfuselli merged 2 commits into
mainfrom
elife-cs2

Conversation

@cfuselli

@cfuselli cfuselli commented Jan 27, 2026

Copy link
Copy Markdown
Member

Adding also elife to the cs2 corrections.

In #363 and #364 from last month we changed the way the cs2 field in fuse is overwritten from straxen corrected areas. We do not want to include time dependent corrections but we do want to include the elife correction (because its from a model, not from relative time). We also include xy and peak bias corrections.

In the past we used to set cs2 of fuse to cs2_wo_timecorr, and this included both xy and elife (see here) (note the peak bias correction did not exist yet).

Not with this PR we set cs2 in fuse to cs2_w_bias_xy_elife.

@dachengx dachengx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cfuselli Thank you very much for the fix. I was again confused by variable names.

Comment thread fuse/plugins/processing/corrected_areas.py Outdated
@coveralls

coveralls commented Jan 27, 2026

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 21399061284

Details

  • 1 of 4 (25.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 72.469%

Changes Missing Coverage Covered Lines Changed/Added Lines %
fuse/plugins/processing/corrected_areas.py 1 4 25.0%
Totals Coverage Status
Change from base Build 20714122987: 0.0%
Covered Lines: 2656
Relevant Lines: 3665

💛 - Coveralls

@cfuselli cfuselli merged commit 61dc22f into main Jan 27, 2026
6 checks passed
@cfuselli cfuselli deleted the elife-cs2 branch January 27, 2026 14:05
mhliu0001 pushed a commit that referenced this pull request Jan 28, 2026
* Add elife to cs2 corrections

* Update condition for cs2 and alt_cs2 assignment
cfuselli added a commit that referenced this pull request Jan 29, 2026
…G4 (#361)

* Modified load_root_file for supporting multiple primary positions in G4 root files.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add elife to cs2 corrections (#368)

* Add elife to cs2 corrections

* Update condition for cs2 and alt_cs2 assignment

* Release 1.6.2 (#369)

* Bump version: 1.6.1 → 1.6.2

* Update HISTORY.md for version 1.6.2

* Update HISTORY.md to remove changelog link

Removed the full changelog link from the HISTORY.md file.

* Fix root input to accept both 1D primary per event and 2D

* bump plugin version

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saad el Morabit <selmorab@nikhef.nl>
Co-authored-by: Carlo Fuselli <cfuselli@nikhef.nl>
Co-authored-by: Minghao Liu <mhliu0001@sina.com>
cfuselli added a commit that referenced this pull request Jan 29, 2026
* Add elife to cs2 corrections

* Update condition for cs2 and alt_cs2 assignment
cfuselli added a commit that referenced this pull request Jan 29, 2026
…G4 (#361)

* Modified load_root_file for supporting multiple primary positions in G4 root files.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add elife to cs2 corrections (#368)

* Add elife to cs2 corrections

* Update condition for cs2 and alt_cs2 assignment

* Release 1.6.2 (#369)

* Bump version: 1.6.1 → 1.6.2

* Update HISTORY.md for version 1.6.2

* Update HISTORY.md to remove changelog link

Removed the full changelog link from the HISTORY.md file.

* Fix root input to accept both 1D primary per event and 2D

* bump plugin version

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saad el Morabit <selmorab@nikhef.nl>
Co-authored-by: Carlo Fuselli <cfuselli@nikhef.nl>
Co-authored-by: Minghao Liu <mhliu0001@sina.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants