From bbffd741c5ba2a89922171f614fb30c607ed937f Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Wed, 12 Jun 2024 16:56:34 +0200 Subject: [PATCH] Fixing axion sensitivity validation: --- pipeline/sensitivity/Validation.C | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pipeline/sensitivity/Validation.C b/pipeline/sensitivity/Validation.C index 9e7b25fb..f380bd15 100644 --- a/pipeline/sensitivity/Validation.C +++ b/pipeline/sensitivity/Validation.C @@ -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;