(Re-)introduce energy and direction method selector.#339
Merged
GernotMaier merged 7 commits intov492-14-xgb-ghfrom Jan 11, 2026
Merged
(Re-)introduce energy and direction method selector.#339GernotMaier merged 7 commits intov492-14-xgb-ghfrom
GernotMaier merged 7 commits intov492-14-xgb-ghfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request introduces configurable energy and direction reconstruction method selectors, allowing users to choose between three methods for each: DispBDT (0), LT Tables/Intersection Method (1), and XGB stereo (2). The PR also refactors the codebase to consistently use CData methods for retrieving reconstruction variables, removing intermediate helper methods from VGammaHadronCuts.
Changes:
- Adds
DIRECTIONRECONSTRUCTIONMETHODparameter and expands energy reconstruction method support to include XGB stereo (method 2) - Refactors code to use
CData::get_Erec(),get_Xoff(),get_Yoff()methods consistently across the codebase - Removes intermediate helper methods from
VGammaHadronCutsthat wrapped CData calls
Reviewed changes
Copilot reviewed 26 out of 26 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/CData.cpp | Updates reconstruction method getters and adds new methods for chi2 and dE |
| inc/CData.h | Updates method signatures to require method parameter |
| src/VGammaHadronCuts.cpp | Removes helper methods, uses CData directly, adds stereo method support |
| inc/VGammaHadronCuts.h | Adds reconstruction method members and updates method signatures |
| src/VAnaSumRunParameter.cpp | Adds direction method parameter and validation with error messages |
| inc/VAnaSumRunParameter.h | Adds direction reconstruction method member |
| src/VInstrumentResponseFunctionRunParameter.cpp | Adds direction method parameter reading |
| inc/VInstrumentResponseFunctionRunParameter.h | Adds direction reconstruction method member |
| src/VInstrumentResponseFunction.cpp | Updates to handle both reconstruction methods |
| inc/VInstrumentResponseFunction.h | Renames method to setStereoReconstructionMethod |
| src/VInstrumentResponseFunctionData.cpp | Uses direction method for offset calculations |
| inc/VInstrumentResponseFunctionData.h | Adds direction method setter |
| src/VEffectiveAreaCalculator.cpp | Removes fIgnoreEnergyReconstruction logic, adds direction method |
| inc/VEffectiveAreaCalculator.h | Updates fill signature and removes obsolete setter |
| src/VTMVAEvaluator.cpp | Uses energy reconstruction method for evaluations |
| inc/VTMVAEvaluator.h | Adds energy method member and updates constructor |
| src/VStereoAnalysis.cpp | Refactored to use CData methods directly |
| src/VRadialAcceptance.cpp | Uses direction method for acceptance calculations |
| inc/VRadialAcceptance.h | Adds direction method member and setter with updated default |
| src/VDataMCComparision.cpp | Adds method support for histogram filling |
| inc/VDataMCComparision.h | Adds reconstruction method members |
| src/makeEffectiveArea.cpp | Passes both methods to fill function |
| src/makeRadialAcceptance.cpp | Initializes cuts with both methods |
| src/compareDatawithMC.cpp | Adds method variables and setter calls |
| inc/VTMVARunDataEnergyCut.h | Adds direction method member and updates ClassDef |
| docs/changes/339.feature.md | Documents the new feature |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow to choose energy and direction reconstruction methods:
Consistently use
CDatamethods to get variables.