Skip to content

Commit

Permalink
Add a comment about the initial upper bound
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored and tmadlener committed Jun 28, 2024
1 parent 64b7cfc commit fe9bc39
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ std::vector<CollNamePair> convertReconstructedParticles(const std::string& name,
// to ndf by a binary search
int find_ndf(double chi2, double prob) {
int lower = 0;
// Initial guess for the upper bound. If it's not enough, it will be increased
int upper = 100;
while (TMath::Prob(chi2, upper) < prob) {
lower = upper;
Expand Down

0 comments on commit fe9bc39

Please sign in to comment.