Skip to content

Commit

Permalink
Fixing axion sensitivity validation:
Browse files Browse the repository at this point in the history
  • Loading branch information
jgalan committed Jun 12, 2024
1 parent f6cfc9a commit bbffd74
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pipeline/sensitivity/Validation.C
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@ Int_t Validation() {
return 1;
}

std::cout << sens.GetCurve()[0] << std::endl;
if (sens.GetCurve().size() != 2) {
std::cout << "Error! The generated sensitivity curve should have 2 nodes!" << std::endl;
return 2;
}

if (sens.getcurve()[0] != 0.000715751) {
std::cout << "error! the first point on the sensitivity curve should have 0.000715751!" << std::endl;
std::cout << "present value: " << sens.getcurve[0] << std::endl;
if (sens.GetCurve()[0] < 0.00071575 || sens.GetCurve()[0] > 0.00071576 ) {
std::cout << "error! the first point on the sensitivity curve should be 0.000715751!" << std::endl;
std::cout << "present value: " << sens.GetCurve()[0] << std::endl;
return 3;
}

if (sens.getcurve()[1] != 0.613593) {
if (sens.GetCurve()[1] < 0.6135 || sens.GetCurve()[1] > 0.6136 ) {
std::cout << "error! the second point on the sensitivity curve should be 0.613593!" << std::endl;
std::cout << "present value: " << sens.getcurve[1] << std::endl;
std::cout << "present value: " << sens.GetCurve()[1] << std::endl;
return 4;
}
return 0;
Expand Down

0 comments on commit bbffd74

Please sign in to comment.