-
Notifications
You must be signed in to change notification settings - Fork 1
v492 13 mva g/h separation #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR focuses on improvements to the TMVA (Toolkit for Multivariate Analysis) gamma/hadron separation functionality, specifically enhancing interpolation from average zenith angle to average airmass calculations.
Key changes:
- Improved TMVA interpolation to use airmass-weighted zenith angle calculations instead of simple averaging
- Removed deprecated smoothing and interpolation functionality for MVA cut values
- Cleaned up unused parameters and obsolete code related to box smoothing and TMVA optimization
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/writeParticleRateFilesForTMVA.cpp | Deleted - entire file removed (164 lines) |
| src/trainTMVAforGammaHadronSeparation.cpp | Renamed method calls from getTLRunParameter to getTableLookupRunParameters for clarity |
| src/calculateCrabRateFromMC.cpp | Updated documentation, renamed function for consistency, changed pointer to stack object for VMonteCarloRateCalculator |
| src/VTMVARunData.cpp | Renamed method getTLRunParameter to getTableLookupRunParameters |
| src/VTMVAEvaluator.cpp | Major refactoring: removed smoothing/interpolation functions, updated plotting to support multiple zenith bins, improved airmass calculation, removed unused methods |
| src/VStereoMaps.cpp | Removed box smoothing feature, simplified theta2 cut logic |
| src/VGammaHadronCuts.cpp | Removed TMVACUTS parameter parsing and related unused member variables |
| src/VAnaSumRunParameter.cpp | Removed fNBoxSmooth parameter |
| macros/optimizeBDTcuts.C | Updated plotSignalAndBackgroundEfficiencies call with explicit parameters |
| inc/VTMVARunData.h | Updated method declaration and incremented ClassDef version |
| inc/VTMVAEvaluator.h | Removed smoothing-related methods and member variables, updated return type, incremented ClassDef version |
| inc/VInstrumentResponseFunctionRunParameter.h | Incremented ClassDef version |
| inc/VGammaHadronCuts.h | Removed unused TMVA optimization member variables |
| inc/VAnaSumRunParameter.h | Removed fNBoxSmooth member and incremented ClassDef version |
| docs/changes/336.feature.md | Added changelog entry describing the feature |
| Makefile | Removed build target for writeParticleRateFilesForTMVA |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.