Skip to content

Conversation

@GernotMaier
Copy link
Member

No description provided.

@GernotMaier GernotMaier self-assigned this Dec 24, 2025
@GernotMaier GernotMaier marked this pull request as ready for review January 3, 2026 14:50
@GernotMaier GernotMaier requested a review from Copilot January 3, 2026 14:50
Copy link
Contributor

Copilot AI left a 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.

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.

2 participants