Skip to content

Commit

Permalink
Merge pull request #306 from rest-for-physics/jgalan_fix_pipeline
Browse files Browse the repository at this point in the history
ValidateTrees.C rounding to 2-decimal digits
  • Loading branch information
DavidDiezIb authored Sep 21, 2022
2 parents d8eda7d + 84ce686 commit 04540b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pipeline/ValidateTrees.C
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ Int_t ValidateTrees(const char* validationFilename, const char* inputFilename =
}

for (int m = 0; m < (*inputObservableVector).size(); m++) {
if ((Int_t)(1000. * (*inputObservableVector)[m]) !=
(Int_t)(1000. * (*validationObservableVector)[m])) {
if (std::abs((*inputObservableVector)[m] - (*validationObservableVector)[m]) > 0.01) {
cout << "Double Observable with index " << m << " in entry " << n
<< " is not the same value!!" << endl;
printf(" value: %.15f, should be: %.15f\n", (*inputObservableVector)[m],
Expand Down

0 comments on commit 04540b6

Please sign in to comment.