Skip to content

Commit

Permalink
[TMVA] Specify ownership of histograms in the ROCCalc documentation
Browse files Browse the repository at this point in the history
Less risky alternative to #4685.
  • Loading branch information
guitargeek committed Jan 10, 2025
1 parent e7cc7df commit 8790874
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tmva/tmva/inc/TMVA/ROCCalc.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ namespace TMVA {

void ApplySignalAndBackgroundStyle( TH1* sig, TH1* bkg, TH1* any = nullptr );

/// Get a pointer to the signal Pdf as an histogram.
/// The histogram is owned by the ROCCalc instance, so it will only live as long as the ROCCalc.
/// If you want a new histogram object that you manage yourself, please use `GetMvaSpdf()->Clone()`.
TH1* GetMvaSpdf(){return fmvaSpdf;}
/// Get a pointer to the background Pdf as a histogram.
/// The histogram is owned by the ROCCalc instance, so it will only live as long as the ROCCalc.
/// If you want a new histogram object that you manage yourself, please use `GetMvaBpdf()->Clone()`.
TH1* GetMvaBpdf(){return fmvaBpdf;}

//false if is found some error in mvaS or mvaB
Expand Down

0 comments on commit 8790874

Please sign in to comment.