Skip to content

Commit

Permalink
Merge pull request #96 from rest-for-physics/jgalan_dataset_updates
Browse files Browse the repository at this point in the history
Fixing pipeline
  • Loading branch information
jgalan committed Jun 13, 2024
2 parents f6cfc9a + 156dc52 commit 3f61a62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,4 +289,5 @@ jobs:
run: |
source ${{ env.REST_PATH }}/thisREST.sh
cd ${{ env.AXION_LIB_PATH }}/pipeline/sensitivity/
wget https://rest-for-physics.github.io/axionlib-data/solarFlux/Primakoff_LennertHoof_202203.dat
restRoot -b -q Validation.C
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 3f61a62

Please sign in to comment.