Skip to content

Commit

Permalink
[math] Clarify meaning of TFoam::GetIntNorm parameters
Browse files Browse the repository at this point in the history
Fixes #14528
  • Loading branch information
ferdymercury authored and guitargeek committed Apr 4, 2024
1 parent af0e1ab commit 0f5eb94
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions math/foam/src/TFoam.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1222,17 +1222,19 @@ void TFoam::GetIntegMC(Double_t &mcResult, Double_t &mcError)
/// and content of the histograms in order to get proper absolute normalization
/// of the integrand and distributions.
/// It can be called after initialization, before or during the MC run.
/// \param IntNorm variable where the integral will be stored
/// \param ErrInt variable where the absolute error of the integral will be stored if internal rejection is active, otherwise set to 0.

void TFoam::GetIntNorm(Double_t& IntNorm, Double_t& Errel )
void TFoam::GetIntNorm(Double_t& IntNorm, Double_t& ErrInt )
{
if(fOptRej == 1) { // Wt=1 events, internal rejection
Double_t intMC,errMC;
GetIntegMC(intMC,errMC);
IntNorm = intMC;
Errel = errMC;
ErrInt = errMC;
} else { // Wted events, NO internal rejection
IntNorm = fPrime;
Errel = 0;
ErrInt = 0;
}
}

Expand Down

0 comments on commit 0f5eb94

Please sign in to comment.